Home
last modified time | relevance | path

Searched refs:ptype (Results 1 – 24 of 24) sorted by relevance

/openssl/crypto/asn1/
H A Dx_algor.c31 int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval)
36 if (ptype != V_ASN1_UNDEF && alg->parameter == NULL
43 if (ptype == V_ASN1_EOC)
45 if (ptype == V_ASN1_UNDEF) {
49 ASN1_TYPE_set(alg->parameter, ptype, pval);
53 X509_ALGOR *ossl_X509_ALGOR_from_nid(int nid, int ptype, void *pval) in ossl_X509_ALGOR_from_nid() argument
62 if (X509_ALGOR_set0(alg, algo, ptype, pval)) in ossl_X509_ALGOR_from_nid()
H A Dp8_pkey.c40 int ptype, void *pval, unsigned char *penc, int penclen)
46 if (!X509_ALGOR_set0(priv->pkeyalg, aobj, ptype, pval))
/openssl/crypto/dsa/
H A Ddsa_ameth.c33 int ptype; in dsa_pub_decode() local
43 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in dsa_pub_decode()
45 if (ptype == V_ASN1_SEQUENCE) { in dsa_pub_decode()
55 } else if ((ptype == V_ASN1_NULL) || (ptype == V_ASN1_UNDEF)) { in dsa_pub_decode()
90 int ptype; in dsa_pub_encode() local
112 ptype = V_ASN1_SEQUENCE; in dsa_pub_encode()
114 ptype = V_ASN1_UNDEF; in dsa_pub_encode()
282 if (ptype == 2) in do_dsa_print()
287 if (ptype > 0) in do_dsa_print()
292 if (ptype == 2) in do_dsa_print()
[all …]
H A Ddsa_backend.c128 int ptype; in ossl_dsa_key_from_pkcs8() local
141 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in ossl_dsa_key_from_pkcs8()
145 if (privkey->type == V_ASN1_NEG_INTEGER || ptype != V_ASN1_SEQUENCE) in ossl_dsa_key_from_pkcs8()
/openssl/crypto/dh/
H A Ddh_ameth.c64 int ptype; in dh_pub_decode() local
74 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in dh_pub_decode()
76 if (ptype != V_ASN1_SEQUENCE) { in dh_pub_decode()
114 int ptype; in dh_pub_encode() local
132 ptype = V_ASN1_SEQUENCE; in dh_pub_encode()
148 ptype, str, penc, penclen)) in dh_pub_encode()
250 if (ptype == 2) in do_dh_print()
255 if (ptype > 0) in do_dh_print()
261 || (ptype > 0 && pub_key == NULL)) { in do_dh_print()
266 if (ptype == 2) in do_dh_print()
[all …]
H A Ddh_backend.c186 int ptype; in ossl_dh_key_from_pkcs8() local
197 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in ossl_dh_key_from_pkcs8()
199 if (ptype != V_ASN1_SEQUENCE) in ossl_dh_key_from_pkcs8()
/openssl/crypto/pem/
H A Dpem_info.c65 unsigned int i, raw, ptype; in STACK_OF() local
80 ptype = 0; in STACK_OF()
131 ptype = EVP_PKEY_NONE; in STACK_OF()
135 ptype = evp_pkey_name2type(name); in STACK_OF()
162 if (ptype) { in STACK_OF()
163 if (d2i_PrivateKey_ex(ptype, pp, &p, len, in STACK_OF()
/openssl/doc/man3/
H A DX509_ALGOR_dup.pod15 int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval);
27 associated parameter type to I<ptype> with value I<pval>. If I<ptype> is
28 B<V_ASN1_UNDEF> the parameter is omitted, otherwise I<ptype> and I<pval> have
H A DX509_PUBKEY_new.pod44 int ptype, void *pval,
/openssl/crypto/ec/
H A Dec_ameth.c72 int ptype; in eckey_pub_encode() local
76 if (!eckey_param2type(&ptype, &pval, ec_key)) { in eckey_pub_encode()
91 ptype, pval, penc, penclen)) in eckey_pub_encode()
94 if (ptype == V_ASN1_SEQUENCE) in eckey_pub_encode()
166 int eplen, ptype; in eckey_priv_encode() local
170 if (!eckey_param2type(&ptype, &pval, &ec_key)) { in eckey_priv_encode()
191 ptype, pval, ep, eplen)) { in eckey_priv_encode()
200 if (ptype == V_ASN1_SEQUENCE) in eckey_priv_encode()
H A Dec_backend.c733 int ptype = 0; in ossl_x509_algor_is_sm2() local
736 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in ossl_x509_algor_is_sm2()
738 if (ptype == V_ASN1_OBJECT) in ossl_x509_algor_is_sm2()
741 if (ptype == V_ASN1_SEQUENCE) { in ossl_x509_algor_is_sm2()
763 int ptype = 0; in ossl_ec_key_param_from_x509_algor() local
768 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in ossl_ec_key_param_from_x509_algor()
774 if (ptype == V_ASN1_SEQUENCE) { in ossl_ec_key_param_from_x509_algor()
784 } else if (ptype == V_ASN1_OBJECT) { in ossl_ec_key_param_from_x509_algor()
H A Decx_backend.c164 int ptype; in ossl_ecx_key_op() local
167 X509_ALGOR_get0(NULL, &ptype, NULL, palg); in ossl_ecx_key_op()
168 if (ptype != V_ASN1_UNDEF) { in ossl_ecx_key_op()
H A Decx_meth.c545 int ptype; in ecd_item_verify() local
549 X509_ALGOR_get0(&obj, &ptype, NULL, sigalg); in ecd_item_verify()
551 if ((nid != NID_ED25519 && nid != NID_ED448) || ptype != V_ASN1_UNDEF) { in ecd_item_verify()
/openssl/crypto/x509/
H A Dv3_genn.c213 void *GENERAL_NAME_get0_value(const GENERAL_NAME *a, int *ptype) in GENERAL_NAME_get0_value() argument
215 if (ptype) in GENERAL_NAME_get0_value()
216 *ptype = a->type; in GENERAL_NAME_get0_value()
H A Dx_pubkey.c1018 int ptype, void *pval, in X509_PUBKEY_set0_param() argument
1021 if (!X509_ALGOR_set0(pub->algor, aobj, ptype, pval)) in X509_PUBKEY_set0_param()
/openssl/crypto/evp/
H A Devp_pbe.c300 int EVP_PBE_get(int *ptype, int *ppbe_nid, size_t num) in EVP_PBE_get() argument
308 if (ptype) in EVP_PBE_get()
309 *ptype = tpbe->pbe_type; in EVP_PBE_get()
/openssl/engines/
H A De_capi.c1174 if (!CryptEnumProviders(idx, NULL, 0, ptype, NULL, &len)) { in capi_get_provname()
1185 if (!CryptEnumProviders(idx, NULL, 0, ptype, name, &len)) { in capi_get_provname()
1203 *ptype); in capi_get_provname()
1210 DWORD idx, ptype; in capi_list_providers() local
1216 ret = capi_get_provname(ctx, &provname, &ptype, idx); in capi_list_providers()
1221 BIO_printf(out, "%lu. %s, type %lu\n", idx, provname, ptype); in capi_list_providers()
1510 const WCHAR *provname, DWORD ptype, in capi_get_key() argument
1519 if (ptype == PROV_RSA_FULL && use_aes_csp && in capi_get_key()
1522 ptype = PROV_RSA_AES; in capi_get_key()
1533 _contname, _provname, ptype); in capi_get_key()
[all …]
/openssl/crypto/cms/
H A Dcms_ec.c20 static EVP_PKEY *pkey_type2param(int ptype, const void *pval, in pkey_type2param() argument
27 if (ptype == V_ASN1_SEQUENCE) { in pkey_type2param()
44 } else if (ptype == V_ASN1_OBJECT) { in pkey_type2param()
/openssl/test/helpers/
H A Dssl_test_ctx.c519 __owur static int parse_expected_key_type(int *ptype, const char *value) in parse_expected_key_type() argument
550 *ptype = nid; in parse_expected_key_type()
591 __owur static int parse_expected_sign_hash(int *ptype, const char *value) in parse_expected_sign_hash() argument
602 *ptype = nid; in parse_expected_sign_hash()
/openssl/include/crypto/
H A Dasn1.h148 X509_ALGOR *ossl_X509_ALGOR_from_nid(int nid, int ptype, void *pval);
/openssl/include/openssl/
H A Dx509.h.in490 int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype,
1081 int version, int ptype, void *pval,
1099 int ptype, void *pval,
H A Dx509v3.h.in574 void *GENERAL_NAME_get0_value(const GENERAL_NAME *a, int *ptype);
H A Devp.h1560 int EVP_PBE_get(int *ptype, int *ppbe_nid, size_t num);
/openssl/test/
H A Dtls-provider.c1212 int ptype; in xor_key_op() local
1215 X509_ALGOR_get0(NULL, &ptype, NULL, palg); in xor_key_op()
1216 if (ptype != V_ASN1_UNDEF || palg->algorithm == NULL) { in xor_key_op()

Completed in 61 milliseconds