Lines Matching refs:factors
84 STACK_OF(BIGNUM) *factors, in DEFINE_STACK_OF()
127 p = sk_BIGNUM_value(factors, 0); in DEFINE_STACK_OF()
128 q = sk_BIGNUM_value(factors, 1); in DEFINE_STACK_OF()
131 for (i = 0; i < sk_BIGNUM_num(factors); i++) { in DEFINE_STACK_OF()
152 factor = sk_BIGNUM_value(factors, i); in DEFINE_STACK_OF()
173 for (i = 2; i < sk_BIGNUM_num(factors); i++) { in DEFINE_STACK_OF()
174 factor = sk_BIGNUM_value(factors, i); in DEFINE_STACK_OF()
207 for (i = 2; i < sk_BIGNUM_num(factors); i++) { in DEFINE_STACK_OF()
225 if (BN_mod_inverse(iqmp, sk_BIGNUM_value(factors, 1), in DEFINE_STACK_OF()
226 sk_BIGNUM_value(factors, 0), ctx) == NULL) in DEFINE_STACK_OF()
232 for (i = 2; i < sk_BIGNUM_num(factors); i++) { in DEFINE_STACK_OF()
237 if (BN_mod_inverse(newcoeff, newpp, sk_BIGNUM_value(factors, i), in DEFINE_STACK_OF()
266 STACK_OF(BIGNUM) *factors = NULL; in rsa_multiprime_keygen()
293 factors = sk_BIGNUM_new_null(); in rsa_multiprime_keygen()
294 if (factors == NULL) in rsa_multiprime_keygen()
445 if (!sk_BIGNUM_insert(factors, tmp, sk_BIGNUM_num(factors))) in rsa_multiprime_keygen()
496 sk_BIGNUM_pop_free(factors, BN_clear_free); in rsa_multiprime_keygen()
497 factors = sk_BIGNUM_new_null(); in rsa_multiprime_keygen()
498 if (factors == NULL) in rsa_multiprime_keygen()
515 if (!sk_BIGNUM_insert(factors, tmp, sk_BIGNUM_num(factors))) in rsa_multiprime_keygen()
524 if (!sk_BIGNUM_insert(factors, sk_BIGNUM_delete(factors, 0), 1)) in rsa_multiprime_keygen()
557 factors, exps, coeffs)) in rsa_multiprime_keygen()
568 BN_clear_free(sk_BIGNUM_delete(factors, 0)); in rsa_multiprime_keygen()
569 BN_clear_free(sk_BIGNUM_delete(factors, 0)); in rsa_multiprime_keygen()
575 tmp = sk_BIGNUM_delete(factors, 0); in rsa_multiprime_keygen()
591 sk_BIGNUM_free(factors); in rsa_multiprime_keygen()