From 133291f8e73892dfd00923d278be74229ac07401 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Mon, 14 Feb 2011 16:44:29 +0000 Subject: New function BN_nist_mod_func which returns an appropriate function if the passed prime is a NIST prime. --- crypto/bn/bn.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crypto/bn/bn.h') diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h index 5897d2b314..0a66a2ea0c 100644 --- a/crypto/bn/bn.h +++ b/crypto/bn/bn.h @@ -674,6 +674,8 @@ const BIGNUM *BN_get0_nist_prime_256(void); const BIGNUM *BN_get0_nist_prime_384(void); const BIGNUM *BN_get0_nist_prime_521(void); +int (*BN_nist_mod_func(const BIGNUM *p))(BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx); + /* library internal functions */ #define bn_expand(a,bits) ((((((bits+BN_BITS2-1))/BN_BITS2)) <= (a)->dmax)?\ -- cgit v1.2.3