summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamuel Weiser <samuel.weiser@iaik.tugraz.at>2018-02-09 14:11:47 +0100
committerMatt Caswell <matt@openssl.org>2018-03-21 17:36:40 +0000
commit7150a4720af7913cae16f2e4eaf768b578c0b298 (patch)
tree2b5a81b14a5157ebe74e8565840368778244d60e
parent011f82e66f4bf131c733fd41a8390039859aafb2 (diff)
consttime flag changed
Reviewed-by: Rich Salz <rsalz@openssl.org> Reviewed-by: Kurt Roeckx <kurt@roeckx.be> Reviewed-by: Matt Caswell <matt@openssl.org> (Merged from https://github.com/openssl/openssl/pull/5170)
-rw-r--r--crypto/rsa/rsa_gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/rsa/rsa_gen.c b/crypto/rsa/rsa_gen.c
index f869f19150..4952ec3f38 100644
--- a/crypto/rsa/rsa_gen.c
+++ b/crypto/rsa/rsa_gen.c
@@ -89,7 +89,7 @@ static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value,
if (BN_copy(rsa->e, e_value) == NULL)
goto err;
- BN_set_flags(rsa->e, BN_FLG_CONSTTIME);
+ BN_set_flags(r2, BN_FLG_CONSTTIME);
/* generate p and q */
for (;;) {
if (!BN_generate_prime_ex(rsa->p, bitsp, 0, NULL, NULL, cb))