Lines Matching refs:pinfo
15 void ossl_rsa_multip_info_free_ex(RSA_PRIME_INFO *pinfo) in ossl_rsa_multip_info_free_ex() argument
18 BN_clear_free(pinfo->pp); in ossl_rsa_multip_info_free_ex()
19 OPENSSL_free(pinfo); in ossl_rsa_multip_info_free_ex()
22 void ossl_rsa_multip_info_free(RSA_PRIME_INFO *pinfo) in ossl_rsa_multip_info_free() argument
25 BN_clear_free(pinfo->r); in ossl_rsa_multip_info_free()
26 BN_clear_free(pinfo->d); in ossl_rsa_multip_info_free()
27 BN_clear_free(pinfo->t); in ossl_rsa_multip_info_free()
28 ossl_rsa_multip_info_free_ex(pinfo); in ossl_rsa_multip_info_free()
33 RSA_PRIME_INFO *pinfo; in ossl_rsa_multip_info_new() local
36 if ((pinfo = OPENSSL_zalloc(sizeof(RSA_PRIME_INFO))) == NULL) in ossl_rsa_multip_info_new()
38 if ((pinfo->r = BN_secure_new()) == NULL) in ossl_rsa_multip_info_new()
40 if ((pinfo->d = BN_secure_new()) == NULL) in ossl_rsa_multip_info_new()
42 if ((pinfo->t = BN_secure_new()) == NULL) in ossl_rsa_multip_info_new()
44 if ((pinfo->pp = BN_secure_new()) == NULL) in ossl_rsa_multip_info_new()
47 return pinfo; in ossl_rsa_multip_info_new()
50 BN_free(pinfo->r); in ossl_rsa_multip_info_new()
51 BN_free(pinfo->d); in ossl_rsa_multip_info_new()
52 BN_free(pinfo->t); in ossl_rsa_multip_info_new()
53 BN_free(pinfo->pp); in ossl_rsa_multip_info_new()
54 OPENSSL_free(pinfo); in ossl_rsa_multip_info_new()
61 RSA_PRIME_INFO *pinfo; in ossl_rsa_multip_calc_product() local
79 pinfo = sk_RSA_PRIME_INFO_value(rsa->prime_infos, i); in ossl_rsa_multip_calc_product()
80 if (pinfo->pp == NULL) { in ossl_rsa_multip_calc_product()
81 pinfo->pp = BN_secure_new(); in ossl_rsa_multip_calc_product()
82 if (pinfo->pp == NULL) in ossl_rsa_multip_calc_product()
85 if (!BN_mul(pinfo->pp, p1, p2, ctx)) in ossl_rsa_multip_calc_product()
88 p1 = pinfo->pp; in ossl_rsa_multip_calc_product()
89 p2 = pinfo->r; in ossl_rsa_multip_calc_product()