Lines Matching defs:r0
48 static int cc_rsa_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa, BN_CTX *ctx);
1012 cc_rsa_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx)
1109 if (!rsa->meth->bn_mod_exp(r0, r1, dmp1, rsa->p, ctx, rsa->_method_mod_p)) {
1113 if (!BN_sub(r0, r0, m1)) {
1117 /* This will help stop the size of r0 increasing, which does
1119 if (BN_is_negative(r0)) {
1120 if (!BN_add(r0, r0, rsa->p)) {
1125 if (!BN_mul(r1, r0, rsa->iqmp, ctx)) {
1136 if (!BN_mod(r0, pr1, rsa->p, ctx)) {
1141 * adding 'p' if r0 is negative above to leave the result still
1147 if (BN_is_negative(r0)) {
1148 if (!BN_add(r0, r0, rsa->p)) {
1152 if (!BN_mul(r1, r0, rsa->q, ctx)) {
1155 if (!BN_add(r0, r1, m1)) {
1160 if (!rsa->meth->bn_mod_exp(vrfy, r0, rsa->e, rsa->n, ctx,
1194 if (!rsa->meth->bn_mod_exp(r0, I, d, rsa->n, ctx,
1460 BIGNUM *r0 = NULL, *r1 = NULL, *r2 = NULL, *r3 = NULL, *tmp;
1471 r0 = BN_CTX_get(ctx);
1568 if (!BN_mul(r0, r1, r2, ctx)) {
1573 BN_with_flags(pr0, r0, BN_FLG_CONSTTIME);
1575 pr0 = r0;