forked from wolfSSL/wolfssl
Merge pull request #3383 from kaleb-himes/ACVP_TESTING_UPDATE
In ACVP testing NIST needs to see failed decryption output
This commit is contained in:
@ -7463,7 +7463,12 @@ int wc_AesCcmDecrypt(Aes* aes, byte* out, const byte* in, word32 inSz,
|
||||
/* If the authTag check fails, don't keep the decrypted data.
|
||||
* Unfortunately, you need the decrypted data to calculate the
|
||||
* check value. */
|
||||
XMEMSET(out, 0, inSz);
|
||||
#if defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2) && \
|
||||
defined(ACVP_VECTOR_TESTING)
|
||||
WOLFSSL_MSG("Preserve output for vector responses");
|
||||
#else
|
||||
XMEMSET(out, 0, inSz);
|
||||
#endif
|
||||
result = AES_CCM_AUTH_E;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user