From 9592d8254af90ef59344bfe3ba8096f670b04aba Mon Sep 17 00:00:00 2001 From: Kareem Date: Tue, 2 Jun 2026 15:50:42 -0700 Subject: [PATCH 1/2] Fix compilation with WOLFSSL_RNG_USE_FULL_SEED. --- wolfcrypt/src/random.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wolfcrypt/src/random.c b/wolfcrypt/src/random.c index 4631734d7cf..7b85d481d71 100644 --- a/wolfcrypt/src/random.c +++ b/wolfcrypt/src/random.c @@ -1720,11 +1720,11 @@ static int _InitRng(WC_RNG* rng, byte* nonce, word32 nonceSz, word32 seedSz = SEED_SZ; #else word32 seedSz = SEED_SZ + SEED_BLOCK_SZ; +#endif WC_DECLARE_VAR(seed, byte, MAX_SEED_SZ, rng->heap); #ifdef WOLFSSL_SMALL_STACK_CACHE int drbg_scratch_instantiated = 0; #endif -#endif #endif (void)nonce; From 586fe466bf286f67b171447fc96700db00ad7759 Mon Sep 17 00:00:00 2001 From: Kareem Date: Tue, 2 Jun 2026 15:57:01 -0700 Subject: [PATCH 2/2] Fix compilation of benchmark with MAIN_NO_ARGS defined. --- wolfcrypt/benchmark/benchmark.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/wolfcrypt/benchmark/benchmark.c b/wolfcrypt/benchmark/benchmark.c index c99fc718225..1f05e157de7 100644 --- a/wolfcrypt/benchmark/benchmark.c +++ b/wolfcrypt/benchmark/benchmark.c @@ -1298,9 +1298,6 @@ static const bench_alg bench_other_opt[] = { #endif { NULL, 0} }; -#endif /* MAIN_NO_ARGS */ - -#endif /* !WOLFSSL_BENCHMARK_ALL && !NO_MAIN_DRIVER */ #if defined(BENCH_PQ_STATEFUL_HBS) typedef struct bench_pq_hash_sig_alg { @@ -1353,6 +1350,10 @@ static const bench_pq_hash_sig_alg bench_pq_hash_sig_opt[] = { }; #endif /* BENCH_PQ_STATEFUL_HBS */ +#endif /* MAIN_NO_ARGS */ + +#endif /* !WOLFSSL_BENCHMARK_ALL && !NO_MAIN_DRIVER */ + #if !defined(WOLFSSL_BENCHMARK_ALL) && !defined(MAIN_NO_ARGS) #if defined(WOLFSSL_HAVE_MLKEM) || defined(HAVE_FALCON) || \ defined(WOLFSSL_HAVE_MLDSA)