Remove several of the old obsolete FIPS_corrupt_*() functions.
[openssl.git] / crypto / dsa / dsa_key.c
index 39cf6b790db2d875b7d8873a4b9c1deb6a39a8ff..c7589873a48628f04ee8ea56d975269e0f883075 100644 (file)
 #include <openssl/fips.h>
 #include <openssl/evp.h>
 
-static int fips_dsa_pairwise_fail = 0;
-
-void FIPS_corrupt_dsa_keygen(void)
-       {
-       fips_dsa_pairwise_fail = 1;
-       }
-
 static int fips_check_dsa(DSA *dsa)
        {
        EVP_PKEY pk;
@@ -159,8 +152,6 @@ static int dsa_builtin_keygen(DSA *dsa)
        dsa->priv_key=priv_key;
        dsa->pub_key=pub_key;
 #ifdef OPENSSL_FIPS
-       if (fips_dsa_pairwise_fail)
-               BN_add_word(dsa->pub_key, 1);
        if(!fips_check_dsa(dsa))
                {
                dsa->pub_key = NULL;