From: Samuel Weiser Date: Fri, 9 Feb 2018 13:11:47 +0000 (+0100) Subject: consttime flag changed X-Git-Tag: OpenSSL_1_1_0h~12 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7150a4720af7913cae16f2e4eaf768b578c0b298;p=oweals%2Fopenssl.git consttime flag changed Reviewed-by: Rich Salz Reviewed-by: Kurt Roeckx Reviewed-by: Matt Caswell (Merged from https://github.com/openssl/openssl/pull/5170) --- 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))