mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
When the ECC PCT verify result is 0, the PCT fails.
This commit is contained in:
committed by
Daniel Pouzzner
parent
175bab9a6f
commit
b54459ace3
@ -8341,6 +8341,9 @@ static int _ecc_pairwise_consistency_test(ecc_key* key, WC_RNG* rng)
|
||||
err = wc_ecc_verify_hash(sig, sigLen,
|
||||
digest, WC_SHA256_DIGEST_SIZE, &res, key);
|
||||
|
||||
if (res == 0)
|
||||
err = ECC_PCT_E;
|
||||
|
||||
if (dynRng) {
|
||||
wc_rng_free(rng);
|
||||
}
|
||||
|
Reference in New Issue
Block a user