Lines Matching refs:pinfo
492 RSA_PRIME_INFO *pinfo; in RSA_set0_multi_prime_params() local
506 pinfo = ossl_rsa_multip_info_new(); in RSA_set0_multi_prime_params()
507 if (pinfo == NULL) in RSA_set0_multi_prime_params()
510 BN_clear_free(pinfo->r); in RSA_set0_multi_prime_params()
511 BN_clear_free(pinfo->d); in RSA_set0_multi_prime_params()
512 BN_clear_free(pinfo->t); in RSA_set0_multi_prime_params()
513 pinfo->r = primes[i]; in RSA_set0_multi_prime_params()
514 pinfo->d = exps[i]; in RSA_set0_multi_prime_params()
515 pinfo->t = coeffs[i]; in RSA_set0_multi_prime_params()
516 BN_set_flags(pinfo->r, BN_FLG_CONSTTIME); in RSA_set0_multi_prime_params()
517 BN_set_flags(pinfo->d, BN_FLG_CONSTTIME); in RSA_set0_multi_prime_params()
518 BN_set_flags(pinfo->t, BN_FLG_CONSTTIME); in RSA_set0_multi_prime_params()
520 ossl_rsa_multip_info_free(pinfo); in RSA_set0_multi_prime_params()
523 (void)sk_RSA_PRIME_INFO_push(prime_infos, pinfo); in RSA_set0_multi_prime_params()
587 RSA_PRIME_INFO *pinfo; in RSA_get0_multi_prime_factors() local
597 pinfo = sk_RSA_PRIME_INFO_value(r->prime_infos, i); in RSA_get0_multi_prime_factors()
598 primes[i] = pinfo->r; in RSA_get0_multi_prime_factors()
628 RSA_PRIME_INFO *pinfo; in RSA_get0_multi_prime_crt_params() local
633 pinfo = sk_RSA_PRIME_INFO_value(r->prime_infos, i); in RSA_get0_multi_prime_crt_params()
635 exps[i] = pinfo->d; in RSA_get0_multi_prime_crt_params()
637 coeffs[i] = pinfo->t; in RSA_get0_multi_prime_crt_params()
819 RSA_PRIME_INFO *pinfo = NULL; in DEFINE_STACK_OF() local
825 if ((pinfo = OPENSSL_zalloc(sizeof(*pinfo))) == NULL) in DEFINE_STACK_OF()
828 pinfo->r = prime; in DEFINE_STACK_OF()
829 pinfo->d = exp; in DEFINE_STACK_OF()
830 pinfo->t = coeff; in DEFINE_STACK_OF()
831 BN_set_flags(pinfo->r, BN_FLG_CONSTTIME); in DEFINE_STACK_OF()
832 BN_set_flags(pinfo->d, BN_FLG_CONSTTIME); in DEFINE_STACK_OF()
833 BN_set_flags(pinfo->t, BN_FLG_CONSTTIME); in DEFINE_STACK_OF()
834 (void)sk_RSA_PRIME_INFO_push(prime_infos, pinfo); in DEFINE_STACK_OF()
879 RSA_PRIME_INFO *pinfo; in DEFINE_SPECIAL_STACK_OF_CONST() local
899 pinfo = sk_RSA_PRIME_INFO_value(r->prime_infos, i); in DEFINE_SPECIAL_STACK_OF_CONST()
900 sk_BIGNUM_const_push(primes, pinfo->r); in DEFINE_SPECIAL_STACK_OF_CONST()
901 sk_BIGNUM_const_push(exps, pinfo->d); in DEFINE_SPECIAL_STACK_OF_CONST()
902 sk_BIGNUM_const_push(coeffs, pinfo->t); in DEFINE_SPECIAL_STACK_OF_CONST()