Lines Matching refs:r2
93 BIGNUM *r0 = NULL, *r1 = NULL, *r2 = NULL; in DEFINE_STACK_OF() local
115 r2 = BN_CTX_get(ctx); in DEFINE_STACK_OF()
117 if (r2 == NULL) in DEFINE_STACK_OF()
122 BN_set_flags(r2, BN_FLG_CONSTTIME); in DEFINE_STACK_OF()
135 if (!BN_sub(r2, p, BN_value_one())) in DEFINE_STACK_OF()
137 BN_set_flags(r2, BN_FLG_CONSTTIME); in DEFINE_STACK_OF()
138 if (BN_mod_inverse(r1, r2, rsa->e, ctx) == NULL) in DEFINE_STACK_OF()
169 if (!BN_sub(r2, q, BN_value_one())) in DEFINE_STACK_OF()
171 if (!BN_mul(r0, r1, r2, ctx)) in DEFINE_STACK_OF()
201 if (!BN_mod(dmq1, rsa->d, r2, ctx)) in DEFINE_STACK_OF()
261 BIGNUM *r0 = NULL, *r1 = NULL, *r2 = NULL, *tmp, *tmp2, *prime; in rsa_multiprime_keygen() local
311 r2 = BN_CTX_get(ctx); in rsa_multiprime_keygen()
312 if (r2 == NULL) in rsa_multiprime_keygen()
407 if (!BN_sub(r2, prime, BN_value_one())) in rsa_multiprime_keygen()
410 BN_set_flags(r2, BN_FLG_CONSTTIME); in rsa_multiprime_keygen()
411 if (BN_mod_inverse(r1, r2, rsa->e, ctx) != NULL) { in rsa_multiprime_keygen()
464 if (!BN_rshift(r2, r1, bitse - 4)) in rsa_multiprime_keygen()
466 bitst = BN_get_word(r2); in rsa_multiprime_keygen()
534 if (!BN_sub(r2, rsa->q, BN_value_one())) in rsa_multiprime_keygen()
537 if (!BN_mul(r0, r1, r2, ctx)) in rsa_multiprime_keygen()