Merge pull request #8001 from ejohnstown/ecc-test-fix

ECC Test Fix
master
Daniel Pouzzner 2024-09-20 20:53:28 -05:00 committed by GitHub
commit bc6881974d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -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