Skip to content

Commit a8fca08

Browse files
committed
add edge case unit test where cost=22, block=8
1 parent 86abe79 commit a8fca08

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

wolfcrypt/test/test.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27553,6 +27553,11 @@ WOLFSSL_TEST_SUBROUTINE wc_test_ret_t scrypt_test(void)
2755327553
return WC_TEST_RET_ENC_EC(ret);
2755427554
if (XMEMCMP(derived, verify4, sizeof(verify4)) != 0)
2755527555
return WC_TEST_RET_ENC_NC;
27556+
27557+
ret = wc_scrypt(derived,(byte*)"pleaseletmein", 13,
27558+
(byte*)"SodiumChloride", 14, 22, 8, 1, sizeof(derived));
27559+
if (ret != WC_NO_ERR_TRACE(BAD_FUNC_ARG))
27560+
return WC_TEST_RET_ENC_EC(ret);
2755627561
#endif
2755727562
#else
2755827563
#ifdef SCRYPT_TEST_ALL

0 commit comments

Comments
 (0)