We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d3d2105 commit 1c3816dCopy full SHA for 1c3816d
wolfcrypt/src/random.c
@@ -754,7 +754,7 @@ int wc_RNG_TestSeed(const byte* seed, word32 seedSz)
754
word32 seedIdx = 0;
755
word32 scratchSz = 0;
756
757
- if (seed == NULL || seedSz < sizeof(word32))
+ if (seed == NULL || seedSz < SEED_BLOCK_SZ)
758
return BAD_FUNC_ARG;
759
760
scratchSz = min(SEED_BLOCK_SZ, seedSz - SEED_BLOCK_SZ);
0 commit comments