FIPS Revalidation

1. AES-GCM encrypt IV length allowed to be 8-bits.
This commit is contained in:
John Safranek 2018-03-06 15:39:34 -08:00
parent 90a5bde0f2
commit 13ff245166
1 changed files with 2 additions and 2 deletions

View File

@ -8023,8 +8023,8 @@ int wc_AesGcmEncrypt_ex(Aes* aes, byte* out, const byte* in, word32 sz,
int ret = 0;
if (aes == NULL || out == NULL || (in == NULL && sz != 0) ||
iv == NULL || ivSz != NONCE_SZ || (authIn == NULL && authInSz != 0) ||
rng == NULL) {
iv == NULL || ivSz == 0 || (authIn == NULL && authInSz != 0) ||
rng == NULL) {
ret = BAD_FUNC_ARG;
}