Lines Matching defs:rr
135 BIGNUM *v, *rr;
145 rr = BN_CTX_get(ctx);
147 rr = r;
149 if (rr == NULL || v == NULL)
157 if (BN_copy(rr, a) == NULL)
160 if (!BN_one(rr))
168 if (!BN_mul(rr, rr, v, ctx))
172 if (r != rr)
173 BN_copy(r, rr);
391 int BN_mod_exp_mont(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
403 return BN_mod_exp_mont_consttime(rr, a, p, m, ctx, in_mont);
419 BN_zero(rr);
421 ret = BN_one(rr);
453 BN_zero(rr);
530 if (!BN_from_montgomery(rr, r, mont, ctx))
537 bn_check_top(rr);
634 int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
664 BN_zero(rr);
666 ret = BN_one(rr);
904 if (!BN_from_montgomery(rr, &tmp, mont, ctx))
919 int BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG a, const BIGNUM *p,
966 BN_zero(rr);
968 ret = BN_one(rr);
973 BN_zero(rr);
1051 if (!BN_one(rr))
1054 if (!BN_from_montgomery(rr, r, mont, ctx))
1062 bn_check_top(rr);