add define to skip unaligned memory tests in test.c

This commit is contained in:
Chris Conlon
2022-05-24 11:55:21 -06:00
parent 5f148c3dcc
commit 321d404d6b

View File

@ -2895,6 +2895,7 @@ WOLFSSL_TEST_SUBROUTINE int sha512_test(void)
if (XMEMCMP(hash, large_digest, WC_SHA512_DIGEST_SIZE) != 0)
ERROR_OUT(-2410, exit);
#ifndef NO_UNALIGNED_MEMORY_TEST
/* Unaligned memory access test */
for (i = 1; i < 16; i++) {
ret = wc_Sha512Update(&sha, (byte*)large_input + i,
@ -2903,6 +2904,7 @@ WOLFSSL_TEST_SUBROUTINE int sha512_test(void)
ERROR_OUT(-2411, exit);
ret = wc_Sha512Final(&sha, hash);
}
#endif
} /* END LARGE HASH TEST */
exit: