diff options
author | Felix Laurie von Massenbach <felix@erbridge.co.uk> | 2014-05-27 02:12:59 +0100 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2014-06-01 15:31:26 +0100 |
commit | c09ec5d2a0e368b18efc1cbf2444fdb37ca7270b (patch) | |
tree | 2ee78e4877b8f73b76040a7c9e61f0d65bc80baa /crypto/bn/bn_lcl.h | |
parent | b0513819e043b13692c9e923adf5aafa26cddec0 (diff) | |
download | openssl-c09ec5d2a0e368b18efc1cbf2444fdb37ca7270b.tar.gz |
Generate safe primes not divisible by 3, 5 or 7.
~2% speed improvement on trial division.
Diffstat (limited to 'crypto/bn/bn_lcl.h')
-rw-r--r-- | crypto/bn/bn_lcl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/bn/bn_lcl.h b/crypto/bn/bn_lcl.h index fc54dcecdc..f0cfaeaaba 100644 --- a/crypto/bn/bn_lcl.h +++ b/crypto/bn/bn_lcl.h @@ -536,7 +536,7 @@ BIGNUM *int_bn_mod_inverse(BIGNUM *in, int bn_probable_prime_dh(BIGNUM *rnd, int bits, const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx); -int bn_probable_prime_dh_coprime(BIGNUM *rnd, int bits, +int bn_probable_prime_dh_coprime_safe(BIGNUM *rnd, int bits, const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx); #ifdef __cplusplus |