FIPS Revalidation (acceptance fixes)

1. Fixed some whitespace in api.c.
This commit is contained in:
John Safranek
2018-06-06 17:50:55 -07:00
parent a6dd93aa2e
commit 234228e5af

View File

@@ -8621,23 +8621,23 @@ static int test_wc_AesGcmEncryptDecrypt (void)
resultT, sizeof(resultT) - 5, a, sizeof(a)); resultT, sizeof(resultT) - 5, a, sizeof(a));
} }
if (gcmE == BAD_FUNC_ARG) { if (gcmE == BAD_FUNC_ARG) {
gcmE = 0; gcmE = 0;
} else { } else {
gcmE = WOLFSSL_FATAL_ERROR; gcmE = WOLFSSL_FATAL_ERROR;
} }
} }
/* This case is now considered good. Long IVs are now allowed. /* This case is now considered good. Long IVs are now allowed.
* Except for the original FIPS release, it still has an upper * Except for the original FIPS release, it still has an upper
* bound on the IV length. */ * bound on the IV length. */
#if !defined(HAVE_FIPS) || \ #if !defined(HAVE_FIPS) || \
(defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2)) (defined(HAVE_FIPS_VERSION) && (HAVE_FIPS_VERSION >= 2))
if (gcmE == 0) { if (gcmE == 0) {
gcmE = wc_AesGcmEncrypt(&aes, enc, vector, sizeof(vector), longIV, gcmE = wc_AesGcmEncrypt(&aes, enc, vector, sizeof(vector), longIV,
sizeof(longIV)/sizeof(byte), resultT, sizeof(resultT), sizeof(longIV)/sizeof(byte), resultT, sizeof(resultT),
a, sizeof(a)); a, sizeof(a));
} }
#else #else
(void)longIV; (void)longIV;
#endif /* Old FIPS */ #endif /* Old FIPS */