Lines Matching refs:factors

70     STACK_OF(BIGNUM) *factors = NULL, *exps = NULL, *coeffs = NULL;  in ossl_rsa_fromdata()
125 if (!collect_numbers(factors = sk_BIGNUM_new_null(), params, in ossl_rsa_fromdata()
139 if (sk_BIGNUM_num(factors) < 2) { in ossl_rsa_fromdata()
148 if (sk_BIGNUM_num(factors) > 2 in ossl_rsa_fromdata()
155 if (sk_BIGNUM_num(factors) == 2) { in ossl_rsa_fromdata()
157 if (!RSA_set0_factors(rsa, sk_BIGNUM_value(factors, 0), in ossl_rsa_fromdata()
158 sk_BIGNUM_value(factors, 1))) { in ossl_rsa_fromdata()
166 sk_BIGNUM_pop(factors); in ossl_rsa_fromdata()
167 sk_BIGNUM_pop(factors); in ossl_rsa_fromdata()
188 sk_BIGNUM_num(factors), in ossl_rsa_fromdata()
189 rsa->e, factors, exps, in ossl_rsa_fromdata()
199 if (!ossl_rsa_set0_all_params(rsa, factors, exps, coeffs)) { in ossl_rsa_fromdata()
216 if (sk_BIGNUM_num(factors) != 0 in ossl_rsa_fromdata()
217 && !ossl_rsa_set0_all_params(rsa, factors, exps, coeffs)) in ossl_rsa_fromdata()
221 if (sk_BIGNUM_num(factors) != 0 in ossl_rsa_fromdata()
226 sk_BIGNUM_num(factors), sk_BIGNUM_num(exps), in ossl_rsa_fromdata()
240 sk_BIGNUM_free(factors); in ossl_rsa_fromdata()
250 sk_BIGNUM_pop_free(factors, BN_clear_free); in ossl_rsa_fromdata()
264 STACK_OF(BIGNUM_const) *factors = sk_BIGNUM_const_new_null(); in DEFINE_SPECIAL_STACK_OF_CONST()
268 if (rsa == NULL || factors == NULL || exps == NULL || coeffs == NULL) in DEFINE_SPECIAL_STACK_OF_CONST()
272 ossl_rsa_get0_all_params(rsa, factors, exps, coeffs); in DEFINE_SPECIAL_STACK_OF_CONST()
285 factors) in DEFINE_SPECIAL_STACK_OF_CONST()
301 sk_BIGNUM_const_free(factors); in DEFINE_SPECIAL_STACK_OF_CONST()