Lines Matching refs:primes
479 int RSA_set0_multi_prime_params(RSA *r, BIGNUM *primes[], BIGNUM *exps[], in RSA_set0_multi_prime_params() argument
486 if (primes == NULL || exps == NULL || coeffs == NULL || pnum == 0) in RSA_set0_multi_prime_params()
500 if (primes[i] != NULL && exps[i] != NULL && coeffs[i] != NULL) { in RSA_set0_multi_prime_params()
504 pinfo->r = primes[i]; in RSA_set0_multi_prime_params()
575 int RSA_get0_multi_prime_factors(const RSA *r, const BIGNUM *primes[]) in RSA_get0_multi_prime_factors() argument
589 primes[i] = pinfo->r; in RSA_get0_multi_prime_factors()
743 int ossl_rsa_set0_all_params(RSA *r, const STACK_OF(BIGNUM) *primes, in DEFINE_STACK_OF()
752 if (primes == NULL || exps == NULL || coeffs == NULL) in DEFINE_STACK_OF()
755 pnum = sk_BIGNUM_num(primes); in DEFINE_STACK_OF()
761 if (!RSA_set0_factors(r, sk_BIGNUM_value(primes, 0), in DEFINE_STACK_OF()
762 sk_BIGNUM_value(primes, 1)) in DEFINE_STACK_OF()
781 BIGNUM *prime = sk_BIGNUM_value(primes, i); in DEFINE_STACK_OF()
841 int ossl_rsa_get0_all_params(RSA *r, STACK_OF(BIGNUM_const) *primes, in DEFINE_SPECIAL_STACK_OF_CONST()
857 sk_BIGNUM_const_push(primes, RSA_get0_p(r)); in DEFINE_SPECIAL_STACK_OF_CONST()
858 sk_BIGNUM_const_push(primes, RSA_get0_q(r)); in DEFINE_SPECIAL_STACK_OF_CONST()
867 sk_BIGNUM_const_push(primes, pinfo->r); in DEFINE_SPECIAL_STACK_OF_CONST()
1261 int EVP_PKEY_CTX_set_rsa_keygen_primes(EVP_PKEY_CTX *ctx, int primes) in EVP_PKEY_CTX_set_rsa_keygen_primes() argument
1264 size_t primes2 = primes; in EVP_PKEY_CTX_set_rsa_keygen_primes()