Home
last modified time | relevance | path

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

/openssl-master/crypto/dsa/
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()
279 if (ptype == 2) in do_dsa_print()
284 if (ptype > 0) in do_dsa_print()
289 if (ptype == 2) in do_dsa_print()
[all …]
A Ddsa_backend.c125 int ptype; in ossl_dsa_key_from_pkcs8() local
138 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in ossl_dsa_key_from_pkcs8()
142 if (privkey->type == V_ASN1_NEG_INTEGER || ptype != V_ASN1_SEQUENCE) in ossl_dsa_key_from_pkcs8()
/openssl-master/crypto/dh/
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()
247 if (ptype == 2) in do_dh_print()
252 if (ptype > 0) in do_dh_print()
258 || (ptype > 0 && pub_key == NULL)) { in do_dh_print()
263 if (ptype == 2) in do_dh_print()
[all …]
A Ddh_backend.c187 int ptype; in ossl_dh_key_from_pkcs8() local
198 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in ossl_dh_key_from_pkcs8()
200 if (ptype != V_ASN1_SEQUENCE) in ossl_dh_key_from_pkcs8()
/openssl-master/crypto/asn1/
A Dx_algor.c31 int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval)
36 if (ptype != V_ASN1_UNDEF) {
46 if (ptype == 0)
48 if (ptype == V_ASN1_UNDEF) {
52 ASN1_TYPE_set(alg->parameter, ptype, pval);
A Dp8_pkey.c40 int ptype, void *pval, unsigned char *penc, int penclen)
46 if (!X509_ALGOR_set0(priv->pkeyalg, aobj, ptype, pval))
/openssl-master/crypto/pem/
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-master/doc/man3/
A DX509_ALGOR_dup.pod12 int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype, void *pval);
24 associated parameter type to B<ptype> with value B<pval>. If B<ptype> is
25 B<V_ASN1_UNDEF> the parameter is omitted, otherwise B<ptype> and B<pval> have
A DX509_PUBKEY_new.pod36 int ptype, void *pval,
/openssl-master/crypto/ec/
A Dec_ameth.c73 int ptype; in eckey_pub_encode() local
77 if (!eckey_param2type(&ptype, &pval, ec_key)) { in eckey_pub_encode()
92 ptype, pval, penc, penclen)) in eckey_pub_encode()
95 if (ptype == V_ASN1_OBJECT) in eckey_pub_encode()
169 int eplen, ptype; in eckey_priv_encode() local
173 if (!eckey_param2type(&ptype, &pval, &ec_key)) { in eckey_priv_encode()
205 ptype, pval, ep, eplen)) { in eckey_priv_encode()
A Dec_backend.c734 int ptype = 0; in ossl_x509_algor_is_sm2() local
737 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in ossl_x509_algor_is_sm2()
739 if (ptype == V_ASN1_OBJECT) in ossl_x509_algor_is_sm2()
742 if (ptype == V_ASN1_SEQUENCE) { in ossl_x509_algor_is_sm2()
764 int ptype = 0; in ossl_ec_key_param_from_x509_algor() local
769 X509_ALGOR_get0(NULL, &ptype, &pval, palg); in ossl_ec_key_param_from_x509_algor()
775 if (ptype == V_ASN1_SEQUENCE) { in ossl_ec_key_param_from_x509_algor()
785 } else if (ptype == V_ASN1_OBJECT) { in ossl_ec_key_param_from_x509_algor()
A Decx_backend.c154 int ptype; in ossl_ecx_key_op() local
157 X509_ALGOR_get0(NULL, &ptype, NULL, palg); in ossl_ecx_key_op()
158 if (ptype != V_ASN1_UNDEF) { in ossl_ecx_key_op()
A Decx_meth.c547 int ptype; in ecd_item_verify() local
551 X509_ALGOR_get0(&obj, &ptype, NULL, sigalg); in ecd_item_verify()
553 if ((nid != NID_ED25519 && nid != NID_ED448) || ptype != V_ASN1_UNDEF) { in ecd_item_verify()
/openssl-master/crypto/x509/
A Dv3_genn.c184 void *GENERAL_NAME_get0_value(const GENERAL_NAME *a, int *ptype) in GENERAL_NAME_get0_value() argument
186 if (ptype) in GENERAL_NAME_get0_value()
187 *ptype = a->type; in GENERAL_NAME_get0_value()
A Dx_pubkey.c981 int ptype, void *pval, in X509_PUBKEY_set0_param() argument
984 if (!X509_ALGOR_set0(pub->algor, aobj, ptype, pval)) in X509_PUBKEY_set0_param()
/openssl-master/crypto/evp/
A Devp_pbe.c289 int EVP_PBE_get(int *ptype, int *ppbe_nid, size_t num) in EVP_PBE_get() argument
297 if (ptype) in EVP_PBE_get()
298 *ptype = tpbe->pbe_type; in EVP_PBE_get()
/openssl-master/engines/
A De_capi.c1160 if (!CryptEnumProviders(idx, NULL, 0, ptype, NULL, &len)) { in capi_get_provname()
1173 if (!CryptEnumProviders(idx, NULL, 0, ptype, name, &len)) { in capi_get_provname()
1191 *ptype); in capi_get_provname()
1198 DWORD idx, ptype; in capi_list_providers() local
1204 ret = capi_get_provname(ctx, &provname, &ptype, idx); in capi_list_providers()
1209 BIO_printf(out, "%lu. %s, type %lu\n", idx, provname, ptype); in capi_list_providers()
1502 const WCHAR *provname, DWORD ptype, in capi_get_key() argument
1511 if (ptype == PROV_RSA_FULL && use_aes_csp && in capi_get_key()
1514 ptype = PROV_RSA_AES; in capi_get_key()
1525 _contname, _provname, ptype); in capi_get_key()
[all …]
/openssl-master/crypto/cms/
A Dcms_ec.c18 static EVP_PKEY *pkey_type2param(int ptype, const void *pval, in pkey_type2param() argument
25 if (ptype == V_ASN1_SEQUENCE) { in pkey_type2param()
42 } else if (ptype == V_ASN1_OBJECT) { in pkey_type2param()
/openssl-master/test/helpers/
A Dssl_test_ctx.c521 __owur static int parse_expected_key_type(int *ptype, const char *value) in parse_expected_key_type() argument
541 *ptype = nid; in parse_expected_key_type()
582 __owur static int parse_expected_sign_hash(int *ptype, const char *value) in parse_expected_sign_hash() argument
593 *ptype = nid; in parse_expected_sign_hash()
/openssl-master/include/openssl/
A Dx509.h.in470 int X509_ALGOR_set0(X509_ALGOR *alg, ASN1_OBJECT *aobj, int ptype,
1056 int version, int ptype, void *pval,
1072 int ptype, void *pval,
A Dx509v3.h.in560 void *GENERAL_NAME_get0_value(const GENERAL_NAME *a, int *ptype);
A Devp.h1542 int EVP_PBE_get(int *ptype, int *ppbe_nid, size_t num);

Completed in 60 milliseconds