Skip to content
This repository was archived by the owner on Aug 24, 2025. It is now read-only.

Commit 7150a47

Browse files
Samuel Weisermattcaswell
authored andcommitted
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 openssl#5170)
1 parent 011f82e commit 7150a47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crypto/rsa/rsa_gen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static int rsa_builtin_keygen(RSA *rsa, int bits, BIGNUM *e_value,
8989
if (BN_copy(rsa->e, e_value) == NULL)
9090
goto err;
9191

92-
BN_set_flags(rsa->e, BN_FLG_CONSTTIME);
92+
BN_set_flags(r2, BN_FLG_CONSTTIME);
9393
/* generate p and q */
9494
for (;;) {
9595
if (!BN_generate_prime_ex(rsa->p, bitsp, 0, NULL, NULL, cb))

0 commit comments

Comments
 (0)