Skip to content

Commit 9cbdf04

Browse files
committed
fixup! Refactor: Use dynamic allocation for RSA test buffers
1 parent 8b378bc commit 9cbdf04

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

wolfcrypt/test/test.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22928,7 +22928,9 @@ static wc_test_ret_t rsa_sig_test(RsaKey* key, word32 keyLen, int modLen, WC_RNG
2292822928
0xa6, 0x58, 0x0a, 0x33, 0x0b, 0x84, 0x5f, 0x5f
2292922929
};
2293022930
word32 inLen = (word32)XSTRLEN((char*)in);
22931+
#if !defined(WOLFSSL_RSA_PUBLIC_ONLY) && !defined(WOLFSSL_RSA_VERIFY_ONLY)
2293122932
word32 outSz = RSA_TEST_BYTES;
22933+
#endif
2293222934
#if !defined(WOLFSSL_NO_MALLOC)
2293322935
byte* out = NULL;
2293422936
out = (byte*)XMALLOC(RSA_TEST_BYTES, HEAP_HINT, DYNAMIC_TYPE_TMP_BUFFER);

0 commit comments

Comments
 (0)