We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a9cc880 + 735c0f6 commit bc68819Copy full SHA for bc68819
1 file changed
wolfcrypt/src/ecc.c
@@ -10229,7 +10229,8 @@ static int _ecc_pairwise_consistency_test(ecc_key* key, WC_RNG* rng)
10229
10230
if (!err && (flags & WC_ECC_FLAG_DEC_SIGN)) {
10231
#ifndef WOLFSSL_SMALL_STACK
10232
- byte sig[MAX_ECC_BYTES + WC_SHA256_DIGEST_SIZE];
+ #define SIG_SZ ((MAX_ECC_BYTES * 2) + SIG_HEADER_SZ + ECC_MAX_PAD_SZ)
10233
+ byte sig[SIG_SZ + WC_SHA256_DIGEST_SIZE];
10234
#else
10235
byte* sig;
10236
#endif
0 commit comments