diff options
author | Felix Laurie von Massenbach <felix@erbridge.co.uk> | 2014-05-27 00:37:03 +0100 |
---|---|---|
committer | Ben Laurie <ben@links.org> | 2014-06-01 15:31:26 +0100 |
commit | b0513819e043b13692c9e923adf5aafa26cddec0 (patch) | |
tree | 2d84e04d840d932c7858e5de5df10c6db6e55010 /crypto/bn/bn_lcl.h | |
parent | b359642ffd0ae9dff8e1eb7d871356c99b093f57 (diff) | |
download | openssl-b0513819e043b13692c9e923adf5aafa26cddec0.tar.gz |
Add a method to generate a prime that is guaranteed not to be divisible by 3 or 5.
Possibly some reduction in bias, but no speed gains.
Diffstat (limited to 'crypto/bn/bn_lcl.h')
-rw-r--r-- | crypto/bn/bn_lcl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/bn/bn_lcl.h b/crypto/bn/bn_lcl.h index 40ef22b73f..fc54dcecdc 100644 --- a/crypto/bn/bn_lcl.h +++ b/crypto/bn/bn_lcl.h @@ -536,6 +536,8 @@ 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, + const BIGNUM *add, const BIGNUM *rem, BN_CTX *ctx); #ifdef __cplusplus } |