Home
last modified time | relevance | path

Searched refs:pinfo (Results 1 – 20 of 20) sorted by relevance

/openssl/crypto/rsa/
H A Drsa_mp.c19 OPENSSL_free(pinfo); in ossl_rsa_multip_info_free_ex()
33 RSA_PRIME_INFO *pinfo; in ossl_rsa_multip_info_new() local
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
88 p1 = pinfo->pp; in ossl_rsa_multip_calc_product()
[all …]
H A Drsa_chk.c27 RSA_PRIME_INFO *pinfo; in rsa_validate_keypair_multiprime() local
81 pinfo = sk_RSA_PRIME_INFO_value(key->prime_infos, idx); in rsa_validate_keypair_multiprime()
82 if (BN_check_prime(pinfo->r, ctx, cb) != 1) { in rsa_validate_keypair_multiprime()
94 pinfo = sk_RSA_PRIME_INFO_value(key->prime_infos, idx); in rsa_validate_keypair_multiprime()
95 if (!BN_mul(i, i, pinfo->r, ctx)) { in rsa_validate_keypair_multiprime()
132 pinfo = sk_RSA_PRIME_INFO_value(key->prime_infos, idx); in rsa_validate_keypair_multiprime()
133 if (!BN_sub(k, pinfo->r, BN_value_one())) { in rsa_validate_keypair_multiprime()
203 if (!BN_sub(i, pinfo->r, BN_value_one())) { in rsa_validate_keypair_multiprime()
211 if (BN_cmp(j, pinfo->d) != 0) { in rsa_validate_keypair_multiprime()
216 if (!BN_mod_inverse(i, pinfo->pp, pinfo->r, ctx)) { in rsa_validate_keypair_multiprime()
[all …]
H A Drsa_lib.c492 RSA_PRIME_INFO *pinfo; in RSA_set0_multi_prime_params() local
507 if (pinfo == NULL) in RSA_set0_multi_prime_params()
514 pinfo->d = exps[i]; in RSA_set0_multi_prime_params()
587 RSA_PRIME_INFO *pinfo; in RSA_get0_multi_prime_factors() local
598 primes[i] = pinfo->r; in RSA_get0_multi_prime_factors()
628 RSA_PRIME_INFO *pinfo; in RSA_get0_multi_prime_crt_params() 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()
[all …]
H A Drsa_gen.c264 RSA_PRIME_INFO *pinfo = NULL; in rsa_multiprime_keygen() local
354 pinfo = ossl_rsa_multip_info_new(); in rsa_multiprime_keygen()
355 if (pinfo == NULL) in rsa_multiprime_keygen()
375 prime = pinfo->r; in rsa_multiprime_keygen()
506 if (i > 1 && BN_copy(pinfo->pp, rsa->n) == NULL) in rsa_multiprime_keygen()
541 pinfo = sk_RSA_PRIME_INFO_value(prime_infos, i - 2); in rsa_multiprime_keygen()
543 if (!BN_sub(pinfo->d, pinfo->r, BN_value_one())) in rsa_multiprime_keygen()
545 if (!BN_mul(r0, r0, pinfo->d, ctx)) in rsa_multiprime_keygen()
576 BN_copy(pinfo->r, tmp); in rsa_multiprime_keygen()
579 tmp2 = BN_copy(pinfo->d, tmp); in rsa_multiprime_keygen()
[all …]
H A Drsa_ossl.c812 RSA_PRIME_INFO *pinfo; in rsa_ossl_mod_exp() local
1003 BN_with_flags(di, pinfo->d, BN_FLG_CONSTTIME); in rsa_ossl_mod_exp()
1005 if (!BN_mod(r1, cc, pinfo->r, ctx)) { in rsa_ossl_mod_exp()
1011 if (!rsa->meth->bn_mod_exp(m[i], r1, di, pinfo->r, ctx, pinfo->m)) { in rsa_ossl_mod_exp()
1080 if (!BN_mul(r2, r1, pinfo->t, ctx)) { in rsa_ossl_mod_exp()
1087 if (!BN_mod(r1, pr2, pinfo->r, ctx)) { in rsa_ossl_mod_exp()
1093 if (!BN_add(r1, r1, pinfo->r)) { in rsa_ossl_mod_exp()
1097 if (!BN_mul(r1, r1, pinfo->pp, ctx)) { in rsa_ossl_mod_exp()
1186 RSA_PRIME_INFO *pinfo; in rsa_ossl_finish() local
1189 pinfo = sk_RSA_PRIME_INFO_value(rsa->prime_infos, i); in rsa_ossl_finish()
[all …]
H A Drsa_backend.c525 const RSA_PRIME_INFO *pinfo = NULL; in ossl_rsa_dup() local
533 pinfo = sk_RSA_PRIME_INFO_value(rsa->prime_infos, i); in ossl_rsa_dup()
534 if (!rsa_bn_dup_check(&duppinfo->r, pinfo->r)) in ossl_rsa_dup()
536 if (!rsa_bn_dup_check(&duppinfo->d, pinfo->d)) in ossl_rsa_dup()
538 if (!rsa_bn_dup_check(&duppinfo->t, pinfo->t)) in ossl_rsa_dup()
H A Drsa_local.h163 void ossl_rsa_multip_info_free_ex(RSA_PRIME_INFO *pinfo);
164 void ossl_rsa_multip_info_free(RSA_PRIME_INFO *pinfo);
H A Drsa_ameth.c351 RSA_PRIME_INFO *pinfo; in pkey_rsa_print() local
354 pinfo = sk_RSA_PRIME_INFO_value(x->prime_infos, i); in pkey_rsa_print()
362 bn = pinfo->r; in pkey_rsa_print()
367 bn = pinfo->d; in pkey_rsa_print()
372 bn = pinfo->t; in pkey_rsa_print()
/openssl/crypto/x509/
H A Dv3_admis.c151 PROFESSION_INFO *pinfo = sk_PROFESSION_INFO_value(entry->professionInfos, j); in i2r_ADMISSION_SYNTAX() local
156 if (pinfo->registrationNumber != NULL) { in i2r_ADMISSION_SYNTAX()
158 || ASN1_STRING_print(bp, pinfo->registrationNumber) <= 0 in i2r_ADMISSION_SYNTAX()
163 if (pinfo->namingAuthority != NULL) { in i2r_ADMISSION_SYNTAX()
164 if (i2r_NAMING_AUTHORITY(method, pinfo->namingAuthority, bp, ind + 4) <= 0) in i2r_ADMISSION_SYNTAX()
168 if (pinfo->professionItems != NULL) { in i2r_ADMISSION_SYNTAX()
172 for (k = 0; k < sk_ASN1_STRING_num(pinfo->professionItems); k++) { in i2r_ADMISSION_SYNTAX()
173 ASN1_STRING *val = sk_ASN1_STRING_value(pinfo->professionItems, k); in i2r_ADMISSION_SYNTAX()
182 if (pinfo->professionOIDs != NULL) { in i2r_ADMISSION_SYNTAX()
185 for (k = 0; k < sk_ASN1_OBJECT_num(pinfo->professionOIDs); k++) { in i2r_ADMISSION_SYNTAX()
[all …]
H A Dv3_cpols.c418 POLICYINFO *pinfo; in i2r_certpol() local
423 pinfo = sk_POLICYINFO_value(pol, i); in i2r_certpol()
425 i2a_ASN1_OBJECT(out, pinfo->policyid); in i2r_certpol()
426 if (pinfo->qualifiers) { in i2r_certpol()
428 print_qualifiers(out, pinfo->qualifiers, indent + 2); in i2r_certpol()
/openssl/engines/
H A De_capi.c1311 CRYPT_KEY_PROV_INFO *pinfo; in capi_get_prov_info() local
1316 pinfo = OPENSSL_malloc(len); in capi_get_prov_info()
1317 if (pinfo == NULL) in capi_get_prov_info()
1324 OPENSSL_free(pinfo); in capi_get_prov_info()
1327 return pinfo; in capi_get_prov_info()
1335 if (pinfo == NULL) { in capi_dump_prov_info()
1413 OPENSSL_free(pinfo); in capi_dump_cert()
1567 if (pinfo != NULL) in capi_get_cert_key()
1568 key = capi_get_key(ctx, pinfo->pwszContainerName, pinfo->pwszProvName, in capi_get_cert_key()
1569 pinfo->dwProvType, pinfo->dwKeySpec); in capi_get_cert_key()
[all …]
/openssl/crypto/asn1/
H A Dameth_lib.c196 int *ppkey_flags, const char **pinfo, in EVP_PKEY_asn1_get0_info() argument
208 if (pinfo) in EVP_PKEY_asn1_get0_info()
209 *pinfo = ameth->info; in EVP_PKEY_asn1_get0_info()
/openssl/crypto/cmp/
H A Dcmp_ctx.c504 int OSSL_CMP_CTX_push0_policy(OSSL_CMP_CTX *ctx, POLICYINFO *pinfo) in DEFINE_OSSL_set1_certs()
506 if (ctx == NULL || pinfo == NULL) { in DEFINE_OSSL_set1_certs()
515 return sk_POLICYINFO_push(ctx->policies, pinfo); in DEFINE_OSSL_set1_certs()
/openssl/doc/man3/
H A DEVP_PKEY_asn1_get_count.pod22 int *ppkey_flags, const char **pinfo,
H A DOSSL_CMP_CTX_new.pod146 int OSSL_CMP_CTX_push0_policy(OSSL_CMP_CTX *ctx, POLICYINFO *pinfo);
/openssl/crypto/bio/
H A Dbss_dgram.c2184 struct bio_dgram_sctp_prinfo *pinfo = &(data->prinfo); in dgram_sctp_write() local
2254 prinfo->pr_policy = pinfo->pr_policy; in dgram_sctp_write()
2255 prinfo->pr_value = pinfo->pr_value; in dgram_sctp_write()
2267 sndrcvinfo->sinfo_flags |= pinfo->pr_policy; in dgram_sctp_write()
2271 sndrcvinfo->sinfo_timetolive = pinfo->pr_value; in dgram_sctp_write()
/openssl/apps/
H A Dlist.c1146 const char *pinfo, *pem_str; in list_pkey() local
1149 &pinfo, &pem_str, ameth); in list_pkey()
1155 BIO_printf(bio_out, " Name: %s\n", pinfo); in list_pkey()
H A Dcmp.c1909 POLICYINFO *pinfo; in setup_request_ctx() local
1919 if ((pinfo = POLICYINFO_new()) == NULL) { in setup_request_ctx()
1923 pinfo->policyid = policy; in setup_request_ctx()
1925 if (!OSSL_CMP_CTX_push0_policy(ctx, pinfo)) { in setup_request_ctx()
1927 POLICYINFO_free(pinfo); in setup_request_ctx()
/openssl/include/openssl/
H A Dcmp.h.in422 int OSSL_CMP_CTX_push0_policy(OSSL_CMP_CTX *ctx, POLICYINFO *pinfo);
H A Devp.h1585 int *ppkey_flags, const char **pinfo,

Completed in 82 milliseconds