Home | History | Annotate | Download | only in bn

Lines Matching full:bignum

120 int BN_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
123 BIGNUM *v,*rr;
164 int BN_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m,
239 int BN_mod_exp_recp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
240 const BIGNUM *m, BN_CTX *ctx)
244 BIGNUM *aa;
246 BIGNUM *val[TABLE_SIZE];
372 int BN_mod_exp_mont(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
373 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
377 BIGNUM *d,*r;
378 const BIGNUM *aa;
380 BIGNUM *val[TABLE_SIZE];
522 * as cache lines are concerned. The following functions are used to transfer a BIGNUM
525 static int MOD_EXP_CTIME_COPY_TO_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int width)
545 static int MOD_EXP_CTIME_COPY_FROM_PREBUF(BIGNUM *b, int top, unsigned char *buf, int idx, int width)
572 int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
573 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
577 BIGNUM *r;
578 const BIGNUM *aa;
585 BIGNUM *computeTemp=NULL, *am=NULL;
605 /* Initialize BIGNUM context and allocate intermediate result */
681 * * word in the internal BIGNUM structure. Going past the end will
725 int BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG a, const BIGNUM *p,
726 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont)
732 BIGNUM *d, *r, *t;
733 BIGNUM *swap_tmp;
876 int BN_mod_exp_simple(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
877 const BIGNUM *m, BN_CTX *ctx)
881 BIGNUM *d;
883 BIGNUM *val[TABLE_SIZE];