Change to mitigate branch prediction attacks
[openssl.git] / crypto / dsa / dsa_key.c
index 0423f2e00cd254c103293e7c67a57dbd6f2a80d0..c4aa86bc6dce4eb7f2e034fe8486444acd410f81 100644 (file)
@@ -107,7 +107,7 @@ static int dsa_builtin_keygen(DSA *dsa)
                        {
                        BN_init(&local_prk);
                        prk = &local_prk;
-                       BN_with_flags(prk, priv_key, BN_FLG_EXP_CONSTTIME);
+                       BN_with_flags(prk, priv_key, BN_FLG_CONSTTIME);
                        }
                else
                        prk = priv_key;