From 9cbdf04359ab4b57e721cda65e72c33e193f1e79 Mon Sep 17 00:00:00 2001 From: Juliusz Sosinowicz Date: Tue, 31 Mar 2026 12:42:07 +0200 Subject: [PATCH] fixup! Refactor: Use dynamic allocation for RSA test buffers --- wolfcrypt/test/test.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wolfcrypt/test/test.c b/wolfcrypt/test/test.c index a2fd1f2ce7..755aa94358 100644 --- a/wolfcrypt/test/test.c +++ b/wolfcrypt/test/test.c @@ -22928,7 +22928,9 @@ static wc_test_ret_t rsa_sig_test(RsaKey* key, word32 keyLen, int modLen, WC_RNG 0xa6, 0x58, 0x0a, 0x33, 0x0b, 0x84, 0x5f, 0x5f }; word32 inLen = (word32)XSTRLEN((char*)in); +#if !defined(WOLFSSL_RSA_PUBLIC_ONLY) && !defined(WOLFSSL_RSA_VERIFY_ONLY) word32 outSz = RSA_TEST_BYTES; +#endif #if !defined(WOLFSSL_NO_MALLOC) byte* out = NULL; out = (byte*)XMALLOC(RSA_TEST_BYTES, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER);