diff --git a/wolfcrypt/src/dh.c b/wolfcrypt/src/dh.c index cbcea0188..a16d181f7 100644 --- a/wolfcrypt/src/dh.c +++ b/wolfcrypt/src/dh.c @@ -1340,7 +1340,7 @@ static int wc_DhGenerateKeyPair_Sync(DhKey* key, WC_RNG* rng, ret = _ffc_validate_public_key(key, pub, *pubSz, NULL, 0, 0); if (ret == 0) { ret = _ffc_pairwise_consistency_test(key, pub, *pubSz, priv, *privSz); - if (ret != 0) ret = DHE_PCT_FIPS_E; + if (ret != 0) ret = DHE_PCT_E; } return ret; diff --git a/wolfcrypt/src/ecc.c b/wolfcrypt/src/ecc.c index 64f163e42..a75fad7d7 100644 --- a/wolfcrypt/src/ecc.c +++ b/wolfcrypt/src/ecc.c @@ -7639,7 +7639,7 @@ static int _ecc_pairwise_consistency_test(ecc_key* key) int err = 0; if (ecc_check_privkey_gen_helper(key) != 0) - err = ECC_PCT_FIPS_E; + err = ECC_PCT_E; return err; } diff --git a/wolfcrypt/src/error.c b/wolfcrypt/src/error.c index bae5293d8..88d8ba345 100644 --- a/wolfcrypt/src/error.c +++ b/wolfcrypt/src/error.c @@ -542,11 +542,11 @@ const char* wc_GetErrorString(int error) case KDF_SSH_KAT_FIPS_E: return "wolfcrypt FIPS SSH KDF Known Answer Test Failure"; - case DHE_PCT_FIPS_E: - return "wolfcrypt FIPS DHE Pairwise Consistency Test Failure"; + case DHE_PCT_E: + return "wolfcrypt DHE Pairwise Consistency Test Failure"; - case ECC_PCT_FIPS_E: - return "wolfcrypt FIPS ECDHE Pairwise Consistency Test Failure"; + case ECC_PCT_E: + return "wolfcrypt ECDHE Pairwise Consistency Test Failure"; default: return "unknown error number"; diff --git a/wolfssl/wolfcrypt/error-crypt.h b/wolfssl/wolfcrypt/error-crypt.h index ee695a2cd..dc61c480d 100644 --- a/wolfssl/wolfcrypt/error-crypt.h +++ b/wolfssl/wolfcrypt/error-crypt.h @@ -242,8 +242,8 @@ enum { KDF_TLS12_KAT_FIPS_E = -281, /* TLS12 KDF KAT failure */ KDF_TLS13_KAT_FIPS_E = -282, /* TLS13 KDF KAT failure */ KDF_SSH_KAT_FIPS_E = -283, /* SSH KDF KAT failure */ - DHE_PCT_FIPS_E = -284, /* DHE Pairwise Consistency Test failure */ - ECC_PCT_FIPS_E = -285, /* ECDHE Pairwise Consistency Test failure */ + DHE_PCT_E = -284, /* DHE Pairwise Consistency Test failure */ + ECC_PCT_E = -285, /* ECDHE Pairwise Consistency Test failure */ WC_LAST_E = -285, /* Update this to indicate last error */ MIN_CODE_E = -300 /* errors -101 - -299 */