mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-08-12 19:31:30 +02:00
Testing touch-ups to account for error code fix and MIN_AUTH_TAG_SZ update
This commit is contained in:
@@ -3387,7 +3387,7 @@ int test_wc_AesGcmEncryptDecrypt(void)
|
||||
sizeof(iv)/sizeof(byte), resultT, sizeof(resultT) + 1, a, sizeof(a)),
|
||||
WC_NO_ERR_TRACE(BAD_FUNC_ARG));
|
||||
ExpectIntEQ(wc_AesGcmEncrypt(&aes, enc, vector, sizeof(vector), iv,
|
||||
sizeof(iv)/sizeof(byte), resultT, sizeof(resultT) - 5, a, sizeof(a)),
|
||||
sizeof(iv)/sizeof(byte), resultT, sizeof(resultT) - 10, a, sizeof(a)),
|
||||
WC_NO_ERR_TRACE(BAD_FUNC_ARG));
|
||||
|
||||
#if (defined(HAVE_FIPS) && defined(HAVE_FIPS_VERSION) && \
|
||||
@@ -4936,7 +4936,7 @@ int test_wc_GmacUpdate(void)
|
||||
ExpectIntEQ(wc_GmacUpdate(NULL, iv3, sizeof(iv3), authIn3, sizeof(authIn3),
|
||||
tagOut3, sizeof(tag3)), WC_NO_ERR_TRACE(BAD_FUNC_ARG));
|
||||
ExpectIntEQ(wc_GmacUpdate(&gmac, iv3, sizeof(iv3), authIn3, sizeof(authIn3),
|
||||
tagOut3, sizeof(tag3) - 5), WC_NO_ERR_TRACE(BAD_FUNC_ARG));
|
||||
tagOut3, sizeof(tag3) - 10), WC_NO_ERR_TRACE(BAD_FUNC_ARG));
|
||||
ExpectIntEQ(wc_GmacUpdate(&gmac, iv3, sizeof(iv3), authIn3, sizeof(authIn3),
|
||||
tagOut3, sizeof(tag3) + 1), WC_NO_ERR_TRACE(BAD_FUNC_ARG));
|
||||
wc_AesFree(&gmac.aes);
|
||||
|
||||
@@ -31722,7 +31722,7 @@ static wc_test_ret_t dh_fips_generate_test(WC_RNG *rng)
|
||||
#if defined(WOLFSSL_ASYNC_CRYPT)
|
||||
ret = wc_AsyncWait(ret, &key->asyncDev, WC_ASYNC_FLAG_NONE);
|
||||
#endif
|
||||
if (ret != WC_NO_ERR_TRACE(BAD_FUNC_ARG))
|
||||
if (ret != WC_NO_ERR_TRACE(WC_KEY_SIZE_E))
|
||||
ERROR_OUT(WC_TEST_RET_ENC_EC(ret), exit_gen_test);
|
||||
}
|
||||
#endif /* !WOLFSSL_NO_DH186 && !HAVE_SELFTEST && !HAVE_FIPS */
|
||||
|
||||
Reference in New Issue
Block a user