Add guard around ECC PCT for builds without validate keygen.

This commit is contained in:
John Safranek 2021-03-25 10:03:22 -07:00 committed by Daniel Pouzzner
parent 7a2b661c0c
commit 9c5607a677

View File

@ -8295,6 +8295,7 @@ static int ecc_check_privkey_gen_helper(ecc_key* key)
}
#ifdef WOLFSSL_VALIDATE_ECC_KEYGEN
/* Performs a Pairwise Consistency Test on an ECC key pair. */
static int _ecc_pairwise_consistency_test(ecc_key* key)
{
@ -8305,6 +8306,7 @@ static int _ecc_pairwise_consistency_test(ecc_key* key)
return err;
}
#endif /* WOLFSSL_VALIDATE_ECC_KEYGEN */
#endif /* WOLFSSL_VALIDATE_ECC_IMPORT */