Lines Matching refs:pnum
489 BIGNUM *coeffs[], int pnum) in RSA_set0_multi_prime_params() argument
495 if (primes == NULL || exps == NULL || coeffs == NULL || pnum == 0) in RSA_set0_multi_prime_params()
498 prime_infos = sk_RSA_PRIME_INFO_new_reserve(NULL, pnum); in RSA_set0_multi_prime_params()
505 for (i = 0; i < pnum; i++) { in RSA_set0_multi_prime_params()
576 int pnum; in RSA_get_multi_prime_extra_count() local
578 pnum = sk_RSA_PRIME_INFO_num(r->prime_infos); in RSA_get_multi_prime_extra_count()
579 if (pnum <= 0) in RSA_get_multi_prime_extra_count()
580 pnum = 0; in RSA_get_multi_prime_extra_count()
581 return pnum; in RSA_get_multi_prime_extra_count()
586 int pnum, i; in RSA_get0_multi_prime_factors() local
589 if ((pnum = RSA_get_multi_prime_extra_count(r)) == 0) in RSA_get0_multi_prime_factors()
596 for (i = 0; i < pnum; i++) { in RSA_get0_multi_prime_factors()
621 int pnum; in RSA_get0_multi_prime_crt_params() local
623 if ((pnum = RSA_get_multi_prime_extra_count(r)) == 0) in RSA_get0_multi_prime_crt_params()
632 for (i = 0; i < pnum; i++) { in RSA_get0_multi_prime_crt_params()
763 int pnum; in DEFINE_STACK_OF() local
768 pnum = sk_BIGNUM_num(primes); in DEFINE_STACK_OF()
771 if (pnum < 2) in DEFINE_STACK_OF()
789 if (pnum == sk_BIGNUM_num(exps) in DEFINE_STACK_OF()
790 && pnum == sk_BIGNUM_num(coeffs) + 1) { in DEFINE_STACK_OF()
807 if (pnum > 2) { in DEFINE_STACK_OF()
811 prime_infos = sk_RSA_PRIME_INFO_new_reserve(NULL, pnum); in DEFINE_STACK_OF()
815 for (i = 2; i < pnum; i++) { in DEFINE_STACK_OF()
860 r->version = pnum > 2 ? RSA_ASN1_VERSION_MULTI : RSA_ASN1_VERSION_DEFAULT; in DEFINE_STACK_OF()
880 int i, pnum; in DEFINE_SPECIAL_STACK_OF_CONST() local
897 pnum = RSA_get_multi_prime_extra_count(r); in DEFINE_SPECIAL_STACK_OF_CONST()
898 for (i = 0; i < pnum; i++) { in DEFINE_SPECIAL_STACK_OF_CONST()