mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-26 14:22:21 +01:00
Restore sanity to < SEED_BLOCK_SZ
This commit is contained in:
@@ -794,7 +794,7 @@ int wc_RNG_TestSeed(const byte* seed, word32 seedSz)
|
||||
int rctFailed = 0;
|
||||
int aptFailed = 0;
|
||||
|
||||
if (seed == NULL || seedSz == 0) {
|
||||
if (seed == NULL || seedSz < SEED_BLOCK_SZ) {
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user