Home | History | Annotate | Download | only in bn

Lines Matching full:bignum

139 int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) {
141 BIGNUM *v, *rr;
195 BIGNUM N; /* the divisor */
196 BIGNUM Nr; /* the reciprocal */
219 static int BN_RECP_CTX_set(BN_RECP_CTX *recp, const BIGNUM *d, BN_CTX *ctx) {
234 static int BN_reciprocal(BIGNUM *r, const BIGNUM *m, int len, BN_CTX *ctx) {
236 BIGNUM *t;
259 static int BN_div_recp(BIGNUM *dv, BIGNUM *rem, const BIGNUM *m,
262 BIGNUM *a, *b, *d, *r;
362 static int BN_mod_mul_reciprocal(BIGNUM *r, const BIGNUM *x, const BIGNUM *y,
365 BIGNUM *a;
366 const BIGNUM *ca;
425 static int mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
426 const BIGNUM *m, BN_CTX *ctx) {
429 BIGNUM *aa;
431 BIGNUM *val[TABLE_SIZE];
565 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
574 int BN_mod_exp_mont(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
575 const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont) {
578 BIGNUM *d, *r;
579 const BIGNUM *aa;
581 BIGNUM *val[TABLE_SIZE];
739 * used to transfer a BIGNUM from/to that table. */
740 static int copy_to_prebuf(const BIGNUM *b, int top, unsigned char *buf, int idx,
757 static int copy_from_prebuf(BIGNUM *b, int top, unsigned char *buf, int idx,
851 int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
852 const BIGNUM *m, BN_CTX *ctx,
862 BIGNUM tmp, am;
863 BIGNUM *new_a = NULL;
1182 int BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG a, const BIGNUM *p,
1183 const BIGNUM *m, BN_CTX *ctx,
1185 BIGNUM a_bignum;
1205 int BN_mod_exp2_mont(BIGNUM *rr, const BIGNUM *a1, const BIGNUM *p1,
1206 const BIGNUM *a2, const BIGNUM *p2, const BIGNUM *m,
1208 BIGNUM tmp;