lib:crypto: Zero auth_tag array in encryption test
authorJoseph Sutton <josephsutton@catalyst.net.nz>
Tue, 2 Aug 2022 03:19:02 +0000 (15:19 +1200)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 12 Sep 2022 23:07:37 +0000 (23:07 +0000)
commitf9850c776f81d596ffbd2761c85fe7a72d369bae
treeaeb557f77fd5c1cdc2365c945fcc1283639e8ddb
parent6932ccf3ccffbd9ab1907c4fb39b46c971e88d49
lib:crypto: Zero auth_tag array in encryption test

If samba_gnutls_aead_aes_256_cbc_hmac_sha512_encrypt() does not fill the
array completely, we may be comparing uninitialised bytes.

Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/crypto/tests/test_gnutls_aead_aes_256_cbc_hmac_sha512.c