Lines Matching refs:BIGNUM
163 static int bn_mont_ctx_set_N_and_n0(BN_MONT_CTX *mont, const BIGNUM *mod) { in bn_mont_ctx_set_N_and_n0()
208 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx) { in BN_MONT_CTX_set()
236 BN_MONT_CTX *BN_MONT_CTX_new_for_modulus(const BIGNUM *mod, BN_CTX *ctx) { in BN_MONT_CTX_new_for_modulus()
246 BN_MONT_CTX *BN_MONT_CTX_new_consttime(const BIGNUM *mod, BN_CTX *ctx) { in BN_MONT_CTX_new_consttime()
265 const BIGNUM *mod, BN_CTX *bn_ctx) { in BN_MONT_CTX_set_locked()
283 int BN_to_montgomery(BIGNUM *ret, const BIGNUM *a, const BN_MONT_CTX *mont, in BN_to_montgomery()
319 static int BN_from_montgomery_word(BIGNUM *ret, BIGNUM *r, in BN_from_montgomery_word()
326 const BIGNUM *n = &mont->N; in BN_from_montgomery_word()
343 int BN_from_montgomery(BIGNUM *r, const BIGNUM *a, const BN_MONT_CTX *mont, in BN_from_montgomery()
346 BIGNUM *t; in BN_from_montgomery()
363 int bn_one_to_montgomery(BIGNUM *r, const BN_MONT_CTX *mont, BN_CTX *ctx) { in bn_one_to_montgomery()
366 const BIGNUM *n = &mont->N; in bn_one_to_montgomery()
383 static int bn_mod_mul_montgomery_fallback(BIGNUM *r, const BIGNUM *a, in bn_mod_mul_montgomery_fallback()
384 const BIGNUM *b, in bn_mod_mul_montgomery_fallback()
390 BIGNUM *tmp = BN_CTX_get(ctx); in bn_mod_mul_montgomery_fallback()
417 int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, in BN_mod_mul_montgomery()
448 int bn_less_than_montgomery_R(const BIGNUM *bn, const BN_MONT_CTX *mont) { in bn_less_than_montgomery_R()