mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
minor fixes for AES-EAX implementation and test routines.
This commit is contained in:
@ -12150,7 +12150,7 @@ int wc_AesEaxDecryptFinal(AesEax* eax,
|
|||||||
^ eax->ciphertextCmacFinal[i];
|
^ eax->ciphertextCmacFinal[i];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ConstantCompare((const byte*)authTag, authIn, authInSz) != 0) {
|
if (ConstantCompare((const byte*)authTag, authIn, (int)authInSz) != 0) {
|
||||||
ret = AES_EAX_AUTH_E;
|
ret = AES_EAX_AUTH_E;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
@ -674,7 +674,8 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t certpiv_test(void);
|
|||||||
WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aes_siv_test(void);
|
WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aes_siv_test(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WOLFSSL_AES_EAX)
|
#if defined(WOLFSSL_AES_EAX) && \
|
||||||
|
(!defined(HAVE_FIPS) || FIPS_VERSION_GE(5, 3)) && !defined(HAVE_SELFTEST)
|
||||||
WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aes_eax_test(void);
|
WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aes_eax_test(void);
|
||||||
#endif /* WOLFSSL_AES_EAX */
|
#endif /* WOLFSSL_AES_EAX */
|
||||||
|
|
||||||
@ -1439,7 +1440,8 @@ options: [-s max_relative_stack_bytes] [-m max_relative_heap_memory_bytes]\n\
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(WOLFSSL_AES_EAX)
|
#if defined(WOLFSSL_AES_EAX) && \
|
||||||
|
(!defined(HAVE_FIPS) || FIPS_VERSION_GE(5, 3)) && !defined(HAVE_SELFTEST)
|
||||||
if ( (ret = aes_eax_test()) != 0)
|
if ( (ret = aes_eax_test()) != 0)
|
||||||
TEST_FAIL("AES-EAX test failed!\n", ret);
|
TEST_FAIL("AES-EAX test failed!\n", ret);
|
||||||
else
|
else
|
||||||
@ -12996,7 +12998,8 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aesccm_test(void)
|
|||||||
#endif /* HAVE_AESCCM */
|
#endif /* HAVE_AESCCM */
|
||||||
|
|
||||||
|
|
||||||
#if defined(WOLFSSL_AES_EAX)
|
#if defined(WOLFSSL_AES_EAX) && \
|
||||||
|
(!defined(HAVE_FIPS) || FIPS_VERSION_GE(5, 3)) && !defined(HAVE_SELFTEST)
|
||||||
|
|
||||||
WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aes_eax_test(void)
|
WOLFSSL_TEST_SUBROUTINE wc_test_ret_t aes_eax_test(void)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user