Skip to content

Commit

Permalink
Merge pull request #8001 from ejohnstown/ecc-test-fix
Browse files Browse the repository at this point in the history
ECC Test Fix
  • Loading branch information
douzzer authored Sep 21, 2024
2 parents a9cc880 + 735c0f6 commit bc68819
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wolfcrypt/src/ecc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10229,7 +10229,8 @@ static int _ecc_pairwise_consistency_test(ecc_key* key, WC_RNG* rng)

if (!err && (flags & WC_ECC_FLAG_DEC_SIGN)) {
#ifndef WOLFSSL_SMALL_STACK
byte sig[MAX_ECC_BYTES + WC_SHA256_DIGEST_SIZE];
#define SIG_SZ ((MAX_ECC_BYTES * 2) + SIG_HEADER_SZ + ECC_MAX_PAD_SZ)
byte sig[SIG_SZ + WC_SHA256_DIGEST_SIZE];
#else
byte* sig;
#endif
Expand Down

0 comments on commit bc68819

Please sign in to comment.