From 7150a4720af7913cae16f2e4eaf768b578c0b298 Mon Sep 17 00:00:00 2001 From: Samuel Weiser Date: Fri, 9 Feb 2018 14:11:47 +0100 Subject: [PATCH] consttime flag changed Reviewed-by: Rich Salz Reviewed-by: Kurt Roeckx Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/5170) --- crypto/rsa/rsa_gen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) -- 2.25.1