summaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn.h
diff options
context:
space:
mode:
authorBodo Möller <bodo@openssl.org>2001-09-03 12:58:16 +0000
committerBodo Möller <bodo@openssl.org>2001-09-03 12:58:16 +0000
commit983495c4b215b7418dc3470fa8bc9c919c09c683 (patch)
tree1f22a7ae4ac1c0f6d82eb0e7745c3371f14df091 /crypto/bn/bn.h
parent931a23a5a55d153db9a0a76ee27e28af90be86e6 (diff)
Use uniformly chosen witnesses for Miller-Rabin test
(by using new BN_pseudo_rand_range function)
Diffstat (limited to 'crypto/bn/bn.h')
-rw-r--r--crypto/bn/bn.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h
index 7e4234339b..573666769f 100644
--- a/crypto/bn/bn.h
+++ b/crypto/bn/bn.h
@@ -321,6 +321,7 @@ void BN_CTX_end(BN_CTX *ctx);
int BN_rand(BIGNUM *rnd, int bits, int top,int bottom);
int BN_pseudo_rand(BIGNUM *rnd, int bits, int top,int bottom);
int BN_rand_range(BIGNUM *rnd, BIGNUM *range);
+int BN_pseudo_rand_range(BIGNUM *rnd, BIGNUM *range);
int BN_num_bits(const BIGNUM *a);
int BN_num_bits_word(BN_ULONG);
BIGNUM *BN_new(void);