diff options
Diffstat (limited to 'cipher/rsa.c')
-rw-r--r-- | cipher/rsa.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cipher/rsa.c b/cipher/rsa.c index 3f1cd722..486a34f0 100644 --- a/cipher/rsa.c +++ b/cipher/rsa.c @@ -482,6 +482,7 @@ generate_fips (RSA_secret_key *sk, unsigned int nbits, unsigned long use_e, if (!testparms) { _gcry_mpi_randomize (p, pbits, random_level); + mpi_set_bit (p, 0); } if (mpi_cmp (p, minp) < 0) { @@ -514,6 +515,7 @@ generate_fips (RSA_secret_key *sk, unsigned int nbits, unsigned long use_e, if (!testparms) { _gcry_mpi_randomize (q, pbits, random_level); + mpi_set_bit (q, 0); } if (mpi_cmp (q, minp) < 0) { |