Home | History | Annotate | Download | only in bn

Lines Matching refs:ctx

406 void	BN_CTX_start(BN_CTX *ctx);
407 BIGNUM *BN_CTX_get(BN_CTX *ctx);
408 void BN_CTX_end(BN_CTX *ctx);
428 int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
429 int BN_sqr(BIGNUM *r, const BIGNUM *a,BN_CTX *ctx);
442 BN_CTX *ctx);
443 #define BN_mod(rem,m,d,ctxctx))
444 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx);
445 int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx);
447 int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx);
450 const BIGNUM *m, BN_CTX *ctx);
451 int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);
452 int BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx);
454 int BN_mod_lshift(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m, BN_CTX *ctx);
470 int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,BN_CTX *ctx);
473 const BIGNUM *m,BN_CTX *ctx);
475 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
477 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont);
479 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
482 BN_CTX *ctx,BN_MONT_CTX *m_ctx);
484 const BIGNUM *m,BN_CTX *ctx);
495 int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx);
507 int BN_gcd(BIGNUM *r,const BIGNUM *a,const BIGNUM *b,BN_CTX *ctx);
508 int BN_kronecker(const BIGNUM *a,const BIGNUM *b,BN_CTX *ctx); /* returns -2 for error */
510 const BIGNUM *a, const BIGNUM *n,BN_CTX *ctx);
512 const BIGNUM *a, const BIGNUM *n,BN_CTX *ctx);
521 BN_CTX *ctx,void *cb_arg);
523 void (*callback)(int,int,void *),BN_CTX *ctx,void *cb_arg,
530 int BN_is_prime_ex(const BIGNUM *p,int nchecks, BN_CTX *ctx, BN_GENCB *cb);
531 int BN_is_prime_fasttest_ex(const BIGNUM *p,int nchecks, BN_CTX *ctx,
534 int BN_X931_generate_Xpq(BIGNUM *Xp, BIGNUM *Xq, int nbits, BN_CTX *ctx);
538 const BIGNUM *e, BN_CTX *ctx, BN_GENCB *cb);
542 const BIGNUM *e, BN_CTX *ctx,
546 void BN_MONT_CTX_init(BN_MONT_CTX *ctx);
548 BN_MONT_CTX *mont, BN_CTX *ctx);
549 #define BN_to_montgomery(r,a,mont,ctx) BN_mod_mul_montgomery(\
550 (r),(a),&((mont)->RR),(mont),(ctx))
552 BN_MONT_CTX *mont, BN_CTX *ctx);
554 int BN_MONT_CTX_set(BN_MONT_CTX *mont,const BIGNUM *mod,BN_CTX *ctx);
557 const BIGNUM *mod, BN_CTX *ctx);
565 int BN_BLINDING_update(BN_BLINDING *b,BN_CTX *ctx);
566 int BN_BLINDING_convert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);
567 int BN_BLINDING_invert(BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx);
575 const BIGNUM *e, /* const */ BIGNUM *m, BN_CTX *ctx,
577 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx),
588 int BN_RECP_CTX_set(BN_RECP_CTX *recp,const BIGNUM *rdiv,BN_CTX *ctx);
590 BN_RECP_CTX *recp,BN_CTX *ctx);
592 const BIGNUM *m, BN_CTX *ctx);
594 BN_RECP_CTX *recp, BN_CTX *ctx);
609 const BIGNUM *p, BN_CTX *ctx); /* r = (a * b) mod p */
611 BN_CTX *ctx); /* r = (a * a) mod p */
613 BN_CTX *ctx); /* r = (1 / b) mod p */
615 const BIGNUM *p, BN_CTX *ctx); /* r = (a / b) mod p */
617 const BIGNUM *p, BN_CTX *ctx); /* r = (a ^ b) mod p */
619 BN_CTX *ctx); /* r = sqrt(a) mod p */
621 BN_CTX *ctx); /* r^2 + r = a mod p */
631 const unsigned int p[], BN_CTX *ctx); /* r = (a * b) mod p */
633 BN_CTX *ctx); /* r = (a * a) mod p */
635 BN_CTX *ctx); /* r = (1 / b) mod p */
637 const unsigned int p[], BN_CTX *ctx); /* r = (a / b) mod p */
639 const unsigned int p[], BN_CTX *ctx); /* r = (a ^ b) mod p */
641 const unsigned int p[], BN_CTX *ctx); /* r = sqrt(a) mod p */
643 const unsigned int p[], BN_CTX *ctx); /* r^2 + r = a mod p */
649 int BN_nist_mod_192(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);
650 int BN_nist_mod_224(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);
651 int BN_nist_mod_256(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);
652 int BN_nist_mod_384(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);
653 int BN_nist_mod_521(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx);