aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/bn/bn.h
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-02-12 17:38:06 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-02-12 17:38:06 +0000
commitc9a90645a5bd683e4f26895101e7a57a79a81058 (patch)
treef50989806e4debe04879e9f064f7c1090d1abf4d /crypto/bn/bn.h
parentb3310161249a848a5243952467a1f3927ad78bfa (diff)
downloadopenssl-c9a90645a5bd683e4f26895101e7a57a79a81058.tar.gz
Disable some functions in headers with no-ec2m
Diffstat (limited to 'crypto/bn/bn.h')
-rw-r--r--crypto/bn/bn.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h
index 7fe78bb774..5897d2b314 100644
--- a/crypto/bn/bn.h
+++ b/crypto/bn/bn.h
@@ -605,6 +605,8 @@ int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
BN_RECP_CTX *recp, BN_CTX *ctx);
+#ifndef OPENSSL_NO_EC2M
+
/* Functions for arithmetic over binary polynomials represented by BIGNUMs.
*
* The BIGNUM::neg property of BIGNUMs representing binary polynomials is
@@ -656,6 +658,8 @@ int BN_GF2m_mod_solve_quad_arr(BIGNUM *r, const BIGNUM *a,
int BN_GF2m_poly2arr(const BIGNUM *a, int p[], int max);
int BN_GF2m_arr2poly(const int p[], BIGNUM *a);
+#endif
+
/* faster mod functions for the 'NIST primes'
* 0 <= a < p^2 */
int BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);