When the ECC PCT verify result is 0, the PCT fails.

This commit is contained in:
John Safranek
2021-04-26 18:11:22 -07:00
parent 7ba8196a3d
commit c55c1c1a77

View File

@ -7680,6 +7680,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);
}