Lines Matching refs:r1
93 BIGNUM *r0 = NULL, *r1 = NULL, *r2 = NULL; in DEFINE_STACK_OF() local
114 r1 = BN_CTX_get(ctx); in DEFINE_STACK_OF()
121 BN_set_flags(r1, BN_FLG_CONSTTIME); in DEFINE_STACK_OF()
124 if (BN_copy(r1, rsa->n) == NULL) in DEFINE_STACK_OF()
138 if (BN_mod_inverse(r1, r2, rsa->e, ctx) == NULL) in DEFINE_STACK_OF()
143 if (!BN_mul(r1, p, q, ctx)) in DEFINE_STACK_OF()
145 tmp = BN_dup(r1); in DEFINE_STACK_OF()
154 if (!BN_mul(r1, r1, factor, ctx)) in DEFINE_STACK_OF()
156 tmp = BN_dup(r1); in DEFINE_STACK_OF()
167 if (!BN_sub(r1, p, BN_value_one())) in DEFINE_STACK_OF()
171 if (!BN_mul(r0, r1, r2, ctx)) in DEFINE_STACK_OF()
195 if (!BN_mod(dmp1, rsa->d, r1, ctx)) in DEFINE_STACK_OF()
261 BIGNUM *r0 = NULL, *r1 = NULL, *r2 = NULL, *tmp, *tmp2, *prime; in rsa_multiprime_keygen() local
310 r1 = BN_CTX_get(ctx); in rsa_multiprime_keygen()
411 if (BN_mod_inverse(r1, r2, rsa->e, ctx) != NULL) { in rsa_multiprime_keygen()
432 if (!BN_mul(r1, rsa->p, rsa->q, ctx)) in rsa_multiprime_keygen()
436 if (!BN_mul(r1, rsa->n, prime, ctx)) in rsa_multiprime_keygen()
464 if (!BN_rshift(r2, r1, bitse - 4)) in rsa_multiprime_keygen()
508 if (BN_copy(rsa->n, r1) == NULL) in rsa_multiprime_keygen()
531 if (!BN_sub(r1, rsa->p, BN_value_one())) in rsa_multiprime_keygen()
537 if (!BN_mul(r0, r1, r2, ctx)) in rsa_multiprime_keygen()