summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/bn/bn.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/bn/bn.h')
-rw-r--r--src/lib/libcrypto/bn/bn.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/lib/libcrypto/bn/bn.h b/src/lib/libcrypto/bn/bn.h
index f34248ec4f..a0bc47837d 100644
--- a/src/lib/libcrypto/bn/bn.h
+++ b/src/lib/libcrypto/bn/bn.h
@@ -558,17 +558,6 @@ int BN_is_prime_ex(const BIGNUM *p,int nchecks, BN_CTX *ctx, BN_GENCB *cb);
558int BN_is_prime_fasttest_ex(const BIGNUM *p,int nchecks, BN_CTX *ctx, 558int BN_is_prime_fasttest_ex(const BIGNUM *p,int nchecks, BN_CTX *ctx,
559 int do_trial_division, BN_GENCB *cb); 559 int do_trial_division, BN_GENCB *cb);
560 560
561int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx);
562
563int BN_X931_derive_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2,
564 const BIGNUM *Xp, const BIGNUM *Xp1, const BIGNUM *Xp2,
565 const BIGNUM *e, BN_CTX *ctx, BN_GENCB *cb);
566int BN_X931_generate_prime_ex(BIGNUM *p, BIGNUM *p1, BIGNUM *p2,
567 BIGNUM *Xp1, BIGNUM *Xp2,
568 const BIGNUM *Xp,
569 const BIGNUM *e, BN_CTX *ctx,
570 BN_GENCB *cb);
571
572BN_MONT_CTX *BN_MONT_CTX_new(void ); 561BN_MONT_CTX *BN_MONT_CTX_new(void );
573void BN_MONT_CTX_init(BN_MONT_CTX *ctx); 562void BN_MONT_CTX_init(BN_MONT_CTX *ctx);
574int BN_mod_mul_montgomery(BIGNUM *r,const BIGNUM *a,const BIGNUM *b, 563int BN_mod_mul_montgomery(BIGNUM *r,const BIGNUM *a,const BIGNUM *b,
@@ -623,8 +612,6 @@ int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
623int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m, 612int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
624 BN_RECP_CTX *recp, BN_CTX *ctx); 613 BN_RECP_CTX *recp, BN_CTX *ctx);
625 614
626#ifndef OPENSSL_NO_EC2M
627
628/* Functions for arithmetic over binary polynomials represented by BIGNUMs. 615/* Functions for arithmetic over binary polynomials represented by BIGNUMs.
629 * 616 *
630 * The BIGNUM::neg property of BIGNUMs representing binary polynomials is 617 * The BIGNUM::neg property of BIGNUMs representing binary polynomials is
@@ -676,8 +663,6 @@ int BN_GF2m_mod_solve_quad_arr(BIGNUM *r, const BIGNUM *a,
676int BN_GF2m_poly2arr(const BIGNUM *a, int p[], int max); 663int BN_GF2m_poly2arr(const BIGNUM *a, int p[], int max);
677int BN_GF2m_arr2poly(const int p[], BIGNUM *a); 664int BN_GF2m_arr2poly(const int p[], BIGNUM *a);
678 665
679#endif
680
681/* faster mod functions for the 'NIST primes' 666/* faster mod functions for the 'NIST primes'
682 * 0 <= a < p^2 */ 667 * 0 <= a < p^2 */
683int BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx); 668int BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);