fix for Aarch32 aesgcm sanity checks

This commit is contained in:
Jacob Barthelmeh
2018-12-18 10:35:53 -07:00
parent 412966ed80
commit c41d02e72f

View File

@ -4198,7 +4198,7 @@ int wc_AesGcmEncrypt(Aes* aes, byte* out, const byte* in, word32 sz,
/* sanity checks */ /* sanity checks */
if (aes == NULL || (iv == NULL && ivSz > 0) || if (aes == NULL || (iv == NULL && ivSz > 0) ||
(authTag == NULL) || (authTag == NULL) ||
(authIn == NULL) || (authIn == NULL && authInSz > 0) ||
(in == NULL && sz > 0) || (in == NULL && sz > 0) ||
(out == NULL && sz > 0)) { (out == NULL && sz > 0)) {
WOLFSSL_MSG("a NULL parameter passed in when size is larger than 0"); WOLFSSL_MSG("a NULL parameter passed in when size is larger than 0");
@ -4282,7 +4282,7 @@ int wc_AesGcmDecrypt(Aes* aes, byte* out, const byte* in, word32 sz,
/* sanity checks */ /* sanity checks */
if (aes == NULL || (iv == NULL && ivSz > 0) || if (aes == NULL || (iv == NULL && ivSz > 0) ||
(authTag == NULL) || (authTag == NULL) ||
(authIn == NULL) || (authIn == NULL && authInSz > 0) ||
(in == NULL && sz > 0) || (in == NULL && sz > 0) ||
(out == NULL && sz > 0)) { (out == NULL && sz > 0)) {
WOLFSSL_MSG("a NULL parameter passed in when size is larger than 0"); WOLFSSL_MSG("a NULL parameter passed in when size is larger than 0");