Skip to content

Commit 20fc2de

Browse files
committed
Restore sanity to < SEED_BLOCK_SZ
1 parent 20b2fd2 commit 20fc2de

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ int wc_RNG_TestSeed(const byte* seed, word32 seedSz)
794794
int rctFailed = 0;
795795
int aptFailed = 0;
796796

797-
if (seed == NULL || seedSz == 0) {
797+
if (seed == NULL || seedSz < SEED_BLOCK_SZ) {
798798
return BAD_FUNC_ARG;
799799
}
800800

0 commit comments

Comments
 (0)