3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2025-01-03 10:32:33 +01:00

crypto: allow NULL 'ad' to aes_siv_decrypt

This commit is contained in:
James Prestwood 2021-12-16 10:00:02 -08:00 committed by Denis Kenzior
parent 53e68b64b2
commit 1a27cd1548

View File

@ -389,7 +389,9 @@ bool aes_siv_decrypt(const void *key, size_t key_len, const void *in,
if (in_len < 16)
return false;
if (ad)
memcpy(iov, ad, sizeof(struct iovec) * num_ad);
iov[num_ad].iov_base = (void *)out;
iov[num_ad].iov_len = in_len - 16;
num_ad++;