Lines Matching refs:primes

488 int RSA_set0_multi_prime_params(RSA *r, BIGNUM *primes[], BIGNUM *exps[],  in RSA_set0_multi_prime_params()  argument
495 if (primes == NULL || exps == NULL || coeffs == NULL || pnum == 0) in RSA_set0_multi_prime_params()
509 if (primes[i] != NULL && exps[i] != NULL && coeffs[i] != NULL) { in RSA_set0_multi_prime_params()
513 pinfo->r = primes[i]; in RSA_set0_multi_prime_params()
584 int RSA_get0_multi_prime_factors(const RSA *r, const BIGNUM *primes[]) in RSA_get0_multi_prime_factors() argument
598 primes[i] = pinfo->r; in RSA_get0_multi_prime_factors()
756 int ossl_rsa_set0_all_params(RSA *r, STACK_OF(BIGNUM) *primes, in DEFINE_STACK_OF()
765 if (primes == NULL || exps == NULL || coeffs == NULL) in DEFINE_STACK_OF()
768 pnum = sk_BIGNUM_num(primes); in DEFINE_STACK_OF()
774 if (!RSA_set0_factors(r, sk_BIGNUM_value(primes, 0), in DEFINE_STACK_OF()
775 sk_BIGNUM_value(primes, 1))) in DEFINE_STACK_OF()
786 sk_BIGNUM_delete(primes, 0); in DEFINE_STACK_OF()
787 sk_BIGNUM_delete(primes, 0); in DEFINE_STACK_OF()
816 BIGNUM *prime = sk_BIGNUM_pop(primes); in DEFINE_STACK_OF()
874 int ossl_rsa_get0_all_params(RSA *r, STACK_OF(BIGNUM_const) *primes, in DEFINE_SPECIAL_STACK_OF_CONST()
890 sk_BIGNUM_const_push(primes, RSA_get0_p(r)); in DEFINE_SPECIAL_STACK_OF_CONST()
891 sk_BIGNUM_const_push(primes, RSA_get0_q(r)); in DEFINE_SPECIAL_STACK_OF_CONST()
900 sk_BIGNUM_const_push(primes, pinfo->r); in DEFINE_SPECIAL_STACK_OF_CONST()
1362 int EVP_PKEY_CTX_set_rsa_keygen_primes(EVP_PKEY_CTX *ctx, int primes) in EVP_PKEY_CTX_set_rsa_keygen_primes() argument
1365 size_t primes2 = primes; in EVP_PKEY_CTX_set_rsa_keygen_primes()