Skip to content

Commit 1f33b99

Browse files
Merge pull request #9215 from LinuxJedi/fix-ACVP_VECTOR_TESTING
Fix a test when using `ACVP_VECTOR_TESTING`
2 parents beaf16b + b7679db commit 1f33b99

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

wolfcrypt/test/test.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16748,10 +16748,12 @@ static wc_test_ret_t aesccm_128_test(void)
1674816748
ERROR_OUT(WC_TEST_RET_ENC_NC, out);
1674916749

1675016750
/* Clear c2 to compare against p2. p2 should be set to zero in case of
16751-
* authentication fail. */
16751+
* authentication fail. With ACVP_VECTOR_TESTING, this is not cleared */
16752+
#ifndef ACVP_VECTOR_TESTING
1675216753
XMEMSET(c2, 0, sizeof(c2));
1675316754
if (XMEMCMP(p2, c2, sizeof(p2)))
1675416755
ERROR_OUT(WC_TEST_RET_ENC_NC, out);
16756+
#endif
1675516757
#endif
1675616758

1675716759
XMEMSET(t2, 0, sizeof(t2));

0 commit comments

Comments
 (0)