Lines Matching refs:r0
32 static int rsa_ossl_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa,
37 static int rsa_ossl_s390x_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa,
805 static int rsa_ossl_mod_exp(BIGNUM *r0, const BIGNUM *I, RSA *rsa, BN_CTX *ctx) in rsa_ossl_mod_exp() argument
918 || !bn_mul_fixed_top(r0, r1, rsa->q, ctx) in rsa_ossl_mod_exp()
919 || !bn_mod_add_fixed_top(r0, r0, m1, rsa->n)) in rsa_ossl_mod_exp()
972 if (!rsa->meth->bn_mod_exp(r0, r1, dmp1, rsa->p, ctx, in rsa_ossl_mod_exp()
1023 if (!BN_sub(r0, r0, m1)) in rsa_ossl_mod_exp()
1029 if (BN_is_negative(r0)) in rsa_ossl_mod_exp()
1030 if (!BN_add(r0, r0, rsa->p)) in rsa_ossl_mod_exp()
1033 if (!BN_mul(r1, r0, rsa->iqmp, ctx)) in rsa_ossl_mod_exp()
1042 if (!BN_mod(r0, pr1, rsa->p, ctx)) { in rsa_ossl_mod_exp()
1057 if (BN_is_negative(r0)) in rsa_ossl_mod_exp()
1058 if (!BN_add(r0, r0, rsa->p)) in rsa_ossl_mod_exp()
1060 if (!BN_mul(r1, r0, rsa->q, ctx)) in rsa_ossl_mod_exp()
1062 if (!BN_add(r0, r1, m1)) in rsa_ossl_mod_exp()
1075 if (!BN_sub(r1, m[i], r0)) { in rsa_ossl_mod_exp()
1101 if (!BN_add(r0, r0, r1)) { in rsa_ossl_mod_exp()
1113 if (!BN_mod_exp_mont(vrfy, r0, rsa->e, rsa->n, ctx, in rsa_ossl_mod_exp()
1117 bn_correct_top(r0); in rsa_ossl_mod_exp()
1118 if (!rsa->meth->bn_mod_exp(vrfy, r0, rsa->e, rsa->n, ctx, in rsa_ossl_mod_exp()
1131 bn_correct_top(r0); in rsa_ossl_mod_exp()
1152 if (!rsa->meth->bn_mod_exp(r0, I, d, rsa->n, ctx, in rsa_ossl_mod_exp()
1169 bn_correct_top(r0); in rsa_ossl_mod_exp()
1201 static int rsa_ossl_s390x_mod_exp(BIGNUM *r0, const BIGNUM *i, RSA *rsa, in rsa_ossl_s390x_mod_exp() argument
1205 if (s390x_crt(r0, i, rsa->p, rsa->q, rsa->dmp1, rsa->dmq1, rsa->iqmp) == 1) in rsa_ossl_s390x_mod_exp()
1208 return rsa_ossl_mod_exp(r0, i, rsa, ctx); in rsa_ossl_s390x_mod_exp()