/openssl/crypto/asn1/ |
H A D | x_algor.c | 31 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 D | p8_pkey.c | 40 int ptype, void *pval, unsigned char *penc, int penclen) 46 if (!X509_ALGOR_set0(priv->pkeyalg, aobj, ptype, pval))
|
/openssl/crypto/dsa/ |
H A D | dsa_ameth.c | 33 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 D | dsa_backend.c | 128 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 D | dh_ameth.c | 64 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 D | dh_backend.c | 186 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 D | pem_info.c | 65 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 D | X509_ALGOR_dup.pod | 15 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 D | X509_PUBKEY_new.pod | 44 int ptype, void *pval,
|
/openssl/crypto/ec/ |
H A D | ec_ameth.c | 72 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 D | ec_backend.c | 733 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 D | ecx_backend.c | 164 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 D | ecx_meth.c | 545 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 D | v3_genn.c | 213 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 D | x_pubkey.c | 1018 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 D | evp_pbe.c | 300 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 D | e_capi.c | 1174 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 D | cms_ec.c | 20 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 D | ssl_test_ctx.c | 519 __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 D | asn1.h | 148 X509_ALGOR *ossl_X509_ALGOR_from_nid(int nid, int ptype, void *pval);
|
/openssl/include/openssl/ |
H A D | x509.h.in | 490 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 D | x509v3.h.in | 574 void *GENERAL_NAME_get0_value(const GENERAL_NAME *a, int *ptype);
|
H A D | evp.h | 1560 int EVP_PBE_get(int *ptype, int *ppbe_nid, size_t num);
|
/openssl/test/ |
H A D | tls-provider.c | 1212 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()
|