projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Flag RSA secret BNs as consttime on keygen and checks
[openssl.git]
/
crypto
/
bn
/
bn_rsa_fips186_4.c
diff --git
a/crypto/bn/bn_rsa_fips186_4.c
b/crypto/bn/bn_rsa_fips186_4.c
index 935320ff2d6687b022eac59903ae8062973e53ca..a8b0a69aee148918aaf38c2538183f2ccb702223 100644
(file)
--- a/
crypto/bn/bn_rsa_fips186_4.c
+++ b/
crypto/bn/bn_rsa_fips186_4.c
@@
-109,6
+109,7
@@
static int bn_rsa_fips186_4_find_aux_prob_prime(const BIGNUM *Xp1,
if (BN_copy(p1, Xp1) == NULL)
return 0;
+ BN_set_flags(p1, BN_FLG_CONSTTIME);
/* Find the first odd number >= Xp1 that is probably prime */
for(;;) {