Lines Matching refs:BIGNUM
194 int BN_div(BIGNUM *quotient, BIGNUM *rem, const BIGNUM *numerator, in BN_div()
195 const BIGNUM *divisor, BN_CTX *ctx) { in BN_div()
197 BIGNUM wnum; in BN_div()
222 BIGNUM *tmp = BN_CTX_get(ctx); in BN_div()
223 BIGNUM *snum = BN_CTX_get(ctx); in BN_div()
224 BIGNUM *sdiv = BN_CTX_get(ctx); in BN_div()
225 BIGNUM *res = NULL; in BN_div()
401 int BN_nnmod(BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx) { in BN_nnmod()
457 int bn_div_consttime(BIGNUM *quotient, BIGNUM *remainder, in bn_div_consttime()
458 const BIGNUM *numerator, const BIGNUM *divisor, in bn_div_consttime()
475 BIGNUM *q = quotient, *r = remainder; in bn_div_consttime()
482 BIGNUM *tmp = BN_CTX_get(ctx); in bn_div_consttime()
548 static BIGNUM *bn_scratch_space_from_ctx(size_t width, BN_CTX *ctx) { in bn_scratch_space_from_ctx()
549 BIGNUM *ret = BN_CTX_get(ctx); in bn_scratch_space_from_ctx()
564 static const BIGNUM *bn_resized_from_ctx(const BIGNUM *bn, size_t width, in bn_resized_from_ctx()
571 BIGNUM *ret = bn_scratch_space_from_ctx(width, ctx); in bn_resized_from_ctx()
580 int BN_mod_add(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, in BN_mod_add()
588 int BN_mod_add_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, in BN_mod_add_quick()
589 const BIGNUM *m) { in BN_mod_add_quick()
597 int bn_mod_add_consttime(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, in bn_mod_add_consttime()
598 const BIGNUM *m, BN_CTX *ctx) { in bn_mod_add_consttime()
602 BIGNUM *tmp = bn_scratch_space_from_ctx(m->width, ctx); in bn_mod_add_consttime()
614 int BN_mod_sub(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, in BN_mod_sub()
622 int bn_mod_sub_consttime(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, in bn_mod_sub_consttime()
623 const BIGNUM *m, BN_CTX *ctx) { in bn_mod_sub_consttime()
627 BIGNUM *tmp = bn_scratch_space_from_ctx(m->width, ctx); in bn_mod_sub_consttime()
639 int BN_mod_sub_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, in BN_mod_sub_quick()
640 const BIGNUM *m) { in BN_mod_sub_quick()
648 int BN_mod_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, in BN_mod_mul()
650 BIGNUM *t; in BN_mod_mul()
680 int BN_mod_sqr(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx) { in BN_mod_sqr()
689 int BN_mod_lshift(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m, in BN_mod_lshift()
691 BIGNUM *abs_m = NULL; in BN_mod_lshift()
712 int bn_mod_lshift_consttime(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m, in bn_mod_lshift_consttime()
725 int BN_mod_lshift_quick(BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m) { in BN_mod_lshift_quick()
733 int BN_mod_lshift1(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx) { in BN_mod_lshift1()
741 int bn_mod_lshift1_consttime(BIGNUM *r, const BIGNUM *a, const BIGNUM *m, in bn_mod_lshift1_consttime()
746 int BN_mod_lshift1_quick(BIGNUM *r, const BIGNUM *a, const BIGNUM *m) { in BN_mod_lshift1_quick()
754 BN_ULONG BN_div_word(BIGNUM *a, BN_ULONG w) { in BN_div_word()
788 BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w) { in BN_mod_word()
804 BIGNUM *tmp = BN_dup(a); in BN_mod_word()
825 int BN_mod_pow2(BIGNUM *r, const BIGNUM *a, size_t e) { in BN_mod_pow2()
860 int BN_nnmod_pow2(BIGNUM *r, const BIGNUM *a, size_t e) { in BN_nnmod_pow2()