Restore sanity to < SEED_BLOCK_SZ

This commit is contained in:
kaleb-himes
2026-01-22 09:09:29 -07:00
parent 20b2fd200f
commit 20fc2de29d

View File

@@ -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;
}