Skip to content

Commit 1c3816d

Browse files
committed
Use seedSz < SEED_BLOCK_SZ
1 parent d3d2105 commit 1c3816d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wolfcrypt/src/random.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ int wc_RNG_TestSeed(const byte* seed, word32 seedSz)
754754
word32 seedIdx = 0;
755755
word32 scratchSz = 0;
756756

757-
if (seed == NULL || seedSz < sizeof(word32))
757+
if (seed == NULL || seedSz < SEED_BLOCK_SZ)
758758
return BAD_FUNC_ARG;
759759

760760
scratchSz = min(SEED_BLOCK_SZ, seedSz - SEED_BLOCK_SZ);

0 commit comments

Comments
 (0)