Lines Matching refs:ri
197 BN_mask_bits(t1, mont->ri); in bn_from_mont_fixed_top()
201 BN_mask_bits(t2, mont->ri); in bn_from_mont_fixed_top()
207 if (!BN_rshift(ret, t2, mont->ri)) in bn_from_mont_fixed_top()
242 ctx->ri = 0; in BN_MONT_CTX_init()
292 mont->ri = (BN_num_bits(mod) + (BN_BITS2 - 1)) / BN_BITS2 * BN_BITS2; in BN_MONT_CTX_set()
372 mont->ri = BN_num_bits(&mont->N); in BN_MONT_CTX_set()
374 if (!BN_set_bit(R, mont->ri)) in BN_MONT_CTX_set()
379 if (!BN_lshift(Ri, Ri, mont->ri)) in BN_MONT_CTX_set()
393 if (!BN_set_bit(&(mont->RR), mont->ri * 2)) in BN_MONT_CTX_set()
420 to->ri = from->ri; in BN_MONT_CTX_copy()
469 int ossl_bn_mont_ctx_set(BN_MONT_CTX *ctx, const BIGNUM *modulus, int ri, const unsigned char *rr, in ossl_bn_mont_ctx_set() argument
476 ctx->ri = ri; in ossl_bn_mont_ctx_set()
493 if (m1->ri != m2->ri) in ossl_bn_mont_ctx_eq()