Home
last modified time | relevance | path

Searched refs:ameth (Results 1 - 25 of 68) sorted by relevance

123

/third_party/node/deps/openssl/openssl/crypto/asn1/
H A Dameth_lib.c27 const EVP_PKEY_ASN1_METHOD *, ameth);
36 const EVP_PKEY_ASN1_METHOD *, ameth);
110 const EVP_PKEY_ASN1_METHOD *ameth = NULL; in EVP_PKEY_asn1_find_str() local
117 ameth = ENGINE_pkey_asn1_find_str(&e, str, len); in EVP_PKEY_asn1_find_str()
118 if (ameth) { in EVP_PKEY_asn1_find_str()
123 ameth = NULL; in EVP_PKEY_asn1_find_str()
126 return ameth; in EVP_PKEY_asn1_find_str()
132 ameth = EVP_PKEY_asn1_get0(i); in EVP_PKEY_asn1_find_str()
133 if (ameth->pkey_flags & ASN1_PKEY_ALIAS) in EVP_PKEY_asn1_find_str()
135 if ((int)strlen(ameth in EVP_PKEY_asn1_find_str()
142 EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth) EVP_PKEY_asn1_add0() argument
183 EVP_PKEY_ASN1_METHOD *ameth; EVP_PKEY_asn1_add_alias() local
195 EVP_PKEY_asn1_get0_info(int *ppkey_id, int *ppkey_base_id, int *ppkey_flags, const char **pinfo, const char **ppem_str, const EVP_PKEY_ASN1_METHOD *ameth) EVP_PKEY_asn1_get0_info() argument
223 EVP_PKEY_ASN1_METHOD *ameth = OPENSSL_zalloc(sizeof(*ameth)); EVP_PKEY_asn1_new() local
273 EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth) EVP_PKEY_asn1_free() argument
282 EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth, int (*pub_decode) (EVP_PKEY *pk, const X509_PUBKEY *pub), int (*pub_encode) (X509_PUBKEY *pub, const EVP_PKEY *pk), int (*pub_cmp) (const EVP_PKEY *a, const EVP_PKEY *b), int (*pub_print) (BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx), int (*pkey_size) (const EVP_PKEY *pk), int (*pkey_bits) (const EVP_PKEY *pk)) EVP_PKEY_asn1_set_public() argument
303 EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth, int (*priv_decode) (EVP_PKEY *pk, const PKCS8_PRIV_KEY_INFO *p8inf), int (*priv_encode) (PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pk), int (*priv_print) (BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx)) EVP_PKEY_asn1_set_private() argument
319 EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth, int (*param_decode) (EVP_PKEY *pkey, const unsigned char **pder, int derlen), int (*param_encode) (const EVP_PKEY *pkey, unsigned char **pder), int (*param_missing) (const EVP_PKEY *pk), int (*param_copy) (EVP_PKEY *to, const EVP_PKEY *from), int (*param_cmp) (const EVP_PKEY *a, const EVP_PKEY *b), int (*param_print) (BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx)) EVP_PKEY_asn1_set_param() argument
342 EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth, void (*pkey_free) (EVP_PKEY *pkey)) EVP_PKEY_asn1_set_free() argument
348 EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth, int (*pkey_ctrl) (EVP_PKEY *pkey, int op, long arg1, void *arg2)) EVP_PKEY_asn1_set_ctrl() argument
355 EVP_PKEY_asn1_set_security_bits(EVP_PKEY_ASN1_METHOD *ameth, int (*pkey_security_bits) (const EVP_PKEY *pk)) EVP_PKEY_asn1_set_security_bits() argument
362 EVP_PKEY_asn1_set_item(EVP_PKEY_ASN1_METHOD *ameth, int (*item_verify) (EVP_MD_CTX *ctx, const ASN1_ITEM *it, const void *data, const X509_ALGOR *a, const ASN1_BIT_STRING *sig, EVP_PKEY *pkey), int (*item_sign) (EVP_MD_CTX *ctx, const ASN1_ITEM *it, const void *data, X509_ALGOR *alg1, X509_ALGOR *alg2, ASN1_BIT_STRING *sig)) EVP_PKEY_asn1_set_item() argument
380 EVP_PKEY_asn1_set_siginf(EVP_PKEY_ASN1_METHOD *ameth, int (*siginf_set) (X509_SIG_INFO *siginf, const X509_ALGOR *alg, const ASN1_STRING *sig)) EVP_PKEY_asn1_set_siginf() argument
388 EVP_PKEY_asn1_set_check(EVP_PKEY_ASN1_METHOD *ameth, int (*pkey_check) (const EVP_PKEY *pk)) EVP_PKEY_asn1_set_check() argument
394 EVP_PKEY_asn1_set_public_check(EVP_PKEY_ASN1_METHOD *ameth, int (*pkey_pub_check) (const EVP_PKEY *pk)) EVP_PKEY_asn1_set_public_check() argument
400 EVP_PKEY_asn1_set_param_check(EVP_PKEY_ASN1_METHOD *ameth, int (*pkey_param_check) (const EVP_PKEY *pk)) EVP_PKEY_asn1_set_param_check() argument
406 EVP_PKEY_asn1_set_set_priv_key(EVP_PKEY_ASN1_METHOD *ameth, int (*set_priv_key) (EVP_PKEY *pk, const unsigned char *priv, size_t len)) EVP_PKEY_asn1_set_set_priv_key() argument
415 EVP_PKEY_asn1_set_set_pub_key(EVP_PKEY_ASN1_METHOD *ameth, int (*set_pub_key) (EVP_PKEY *pk, const unsigned char *pub, size_t len)) EVP_PKEY_asn1_set_set_pub_key() argument
423 EVP_PKEY_asn1_set_get_priv_key(EVP_PKEY_ASN1_METHOD *ameth, int (*get_priv_key) (const EVP_PKEY *pk, unsigned char *priv, size_t *len)) EVP_PKEY_asn1_set_get_priv_key() argument
431 EVP_PKEY_asn1_set_get_pub_key(EVP_PKEY_ASN1_METHOD *ameth, int (*get_pub_key) (const EVP_PKEY *pk, unsigned char *pub, size_t *len)) EVP_PKEY_asn1_set_get_pub_key() argument
[all...]
H A Di2d_evp.c84 if (a->ameth != NULL && a->ameth->param_encode != NULL) in i2d_KeyParams()
85 return a->ameth->param_encode(a, pp); in i2d_KeyParams()
106 if (a->ameth != NULL && a->ameth->old_priv_encode != NULL) { in i2d_PrivateKey()
107 return a->ameth->old_priv_encode(a, pp); in i2d_PrivateKey()
109 if (a->ameth != NULL && a->ameth->priv_encode != NULL) { in i2d_PrivateKey()
H A Dd2i_param.c32 if (ret->ameth == NULL || ret->ameth->param_decode == NULL) { in d2i_KeyParams()
37 if (!ret->ameth->param_decode(ret, pp, length)) in d2i_KeyParams()
/third_party/openssl/crypto/asn1/
H A Dameth_lib.c27 const EVP_PKEY_ASN1_METHOD *, ameth);
36 const EVP_PKEY_ASN1_METHOD *, ameth);
110 const EVP_PKEY_ASN1_METHOD *ameth = NULL; in EVP_PKEY_asn1_find_str() local
117 ameth = ENGINE_pkey_asn1_find_str(&e, str, len); in EVP_PKEY_asn1_find_str()
118 if (ameth) { in EVP_PKEY_asn1_find_str()
123 ameth = NULL; in EVP_PKEY_asn1_find_str()
126 return ameth; in EVP_PKEY_asn1_find_str()
132 ameth = EVP_PKEY_asn1_get0(i); in EVP_PKEY_asn1_find_str()
133 if (ameth->pkey_flags & ASN1_PKEY_ALIAS) in EVP_PKEY_asn1_find_str()
135 if ((int)strlen(ameth in EVP_PKEY_asn1_find_str()
142 EVP_PKEY_asn1_add0(const EVP_PKEY_ASN1_METHOD *ameth) EVP_PKEY_asn1_add0() argument
183 EVP_PKEY_ASN1_METHOD *ameth; EVP_PKEY_asn1_add_alias() local
195 EVP_PKEY_asn1_get0_info(int *ppkey_id, int *ppkey_base_id, int *ppkey_flags, const char **pinfo, const char **ppem_str, const EVP_PKEY_ASN1_METHOD *ameth) EVP_PKEY_asn1_get0_info() argument
223 EVP_PKEY_ASN1_METHOD *ameth = OPENSSL_zalloc(sizeof(*ameth)); EVP_PKEY_asn1_new() local
273 EVP_PKEY_asn1_free(EVP_PKEY_ASN1_METHOD *ameth) EVP_PKEY_asn1_free() argument
282 EVP_PKEY_asn1_set_public(EVP_PKEY_ASN1_METHOD *ameth, int (*pub_decode) (EVP_PKEY *pk, const X509_PUBKEY *pub), int (*pub_encode) (X509_PUBKEY *pub, const EVP_PKEY *pk), int (*pub_cmp) (const EVP_PKEY *a, const EVP_PKEY *b), int (*pub_print) (BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx), int (*pkey_size) (const EVP_PKEY *pk), int (*pkey_bits) (const EVP_PKEY *pk)) EVP_PKEY_asn1_set_public() argument
303 EVP_PKEY_asn1_set_private(EVP_PKEY_ASN1_METHOD *ameth, int (*priv_decode) (EVP_PKEY *pk, const PKCS8_PRIV_KEY_INFO *p8inf), int (*priv_encode) (PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pk), int (*priv_print) (BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx)) EVP_PKEY_asn1_set_private() argument
319 EVP_PKEY_asn1_set_param(EVP_PKEY_ASN1_METHOD *ameth, int (*param_decode) (EVP_PKEY *pkey, const unsigned char **pder, int derlen), int (*param_encode) (const EVP_PKEY *pkey, unsigned char **pder), int (*param_missing) (const EVP_PKEY *pk), int (*param_copy) (EVP_PKEY *to, const EVP_PKEY *from), int (*param_cmp) (const EVP_PKEY *a, const EVP_PKEY *b), int (*param_print) (BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx)) EVP_PKEY_asn1_set_param() argument
342 EVP_PKEY_asn1_set_free(EVP_PKEY_ASN1_METHOD *ameth, void (*pkey_free) (EVP_PKEY *pkey)) EVP_PKEY_asn1_set_free() argument
348 EVP_PKEY_asn1_set_ctrl(EVP_PKEY_ASN1_METHOD *ameth, int (*pkey_ctrl) (EVP_PKEY *pkey, int op, long arg1, void *arg2)) EVP_PKEY_asn1_set_ctrl() argument
355 EVP_PKEY_asn1_set_security_bits(EVP_PKEY_ASN1_METHOD *ameth, int (*pkey_security_bits) (const EVP_PKEY *pk)) EVP_PKEY_asn1_set_security_bits() argument
362 EVP_PKEY_asn1_set_item(EVP_PKEY_ASN1_METHOD *ameth, int (*item_verify) (EVP_MD_CTX *ctx, const ASN1_ITEM *it, const void *data, const X509_ALGOR *a, const ASN1_BIT_STRING *sig, EVP_PKEY *pkey), int (*item_sign) (EVP_MD_CTX *ctx, const ASN1_ITEM *it, const void *data, X509_ALGOR *alg1, X509_ALGOR *alg2, ASN1_BIT_STRING *sig)) EVP_PKEY_asn1_set_item() argument
380 EVP_PKEY_asn1_set_siginf(EVP_PKEY_ASN1_METHOD *ameth, int (*siginf_set) (X509_SIG_INFO *siginf, const X509_ALGOR *alg, const ASN1_STRING *sig)) EVP_PKEY_asn1_set_siginf() argument
388 EVP_PKEY_asn1_set_check(EVP_PKEY_ASN1_METHOD *ameth, int (*pkey_check) (const EVP_PKEY *pk)) EVP_PKEY_asn1_set_check() argument
394 EVP_PKEY_asn1_set_public_check(EVP_PKEY_ASN1_METHOD *ameth, int (*pkey_pub_check) (const EVP_PKEY *pk)) EVP_PKEY_asn1_set_public_check() argument
400 EVP_PKEY_asn1_set_param_check(EVP_PKEY_ASN1_METHOD *ameth, int (*pkey_param_check) (const EVP_PKEY *pk)) EVP_PKEY_asn1_set_param_check() argument
406 EVP_PKEY_asn1_set_set_priv_key(EVP_PKEY_ASN1_METHOD *ameth, int (*set_priv_key) (EVP_PKEY *pk, const unsigned char *priv, size_t len)) EVP_PKEY_asn1_set_set_priv_key() argument
415 EVP_PKEY_asn1_set_set_pub_key(EVP_PKEY_ASN1_METHOD *ameth, int (*set_pub_key) (EVP_PKEY *pk, const unsigned char *pub, size_t len)) EVP_PKEY_asn1_set_set_pub_key() argument
423 EVP_PKEY_asn1_set_get_priv_key(EVP_PKEY_ASN1_METHOD *ameth, int (*get_priv_key) (const EVP_PKEY *pk, unsigned char *priv, size_t *len)) EVP_PKEY_asn1_set_get_priv_key() argument
431 EVP_PKEY_asn1_set_get_pub_key(EVP_PKEY_ASN1_METHOD *ameth, int (*get_pub_key) (const EVP_PKEY *pk, unsigned char *pub, size_t *len)) EVP_PKEY_asn1_set_get_pub_key() argument
[all...]
H A Di2d_evp.c84 if (a->ameth != NULL && a->ameth->param_encode != NULL) in i2d_KeyParams()
85 return a->ameth->param_encode(a, pp); in i2d_KeyParams()
106 if (a->ameth != NULL && a->ameth->old_priv_encode != NULL) { in i2d_PrivateKey()
107 return a->ameth->old_priv_encode(a, pp); in i2d_PrivateKey()
109 if (a->ameth != NULL && a->ameth->priv_encode != NULL) { in i2d_PrivateKey()
H A Dd2i_param.c32 if (ret->ameth == NULL || ret->ameth->param_decode == NULL) { in d2i_KeyParams()
37 if (!ret->ameth->param_decode(ret, pp, length)) in d2i_KeyParams()
/third_party/node/deps/openssl/openssl/crypto/engine/
H A Dtb_asnmth.c145 EVP_PKEY_ASN1_METHOD *ameth; in ENGINE_get_pkey_asn1_meth_str() local
152 e->pkey_asn1_meths(e, &ameth, NULL, nids[i]); in ENGINE_get_pkey_asn1_meth_str()
153 if (ameth != NULL in ENGINE_get_pkey_asn1_meth_str()
154 && ((int)strlen(ameth->pem_str) == len) in ENGINE_get_pkey_asn1_meth_str()
155 && OPENSSL_strncasecmp(ameth->pem_str, str, len) == 0) in ENGINE_get_pkey_asn1_meth_str()
156 return ameth; in ENGINE_get_pkey_asn1_meth_str()
163 const EVP_PKEY_ASN1_METHOD *ameth; member
172 if (lk->ameth) in look_str_cb()
176 EVP_PKEY_ASN1_METHOD *ameth; in look_str_cb() local
177 e->pkey_asn1_meths(e, &ameth, NUL in look_str_cb()
[all...]
/third_party/openssl/crypto/engine/
H A Dtb_asnmth.c145 EVP_PKEY_ASN1_METHOD *ameth; in ENGINE_get_pkey_asn1_meth_str() local
152 e->pkey_asn1_meths(e, &ameth, NULL, nids[i]); in ENGINE_get_pkey_asn1_meth_str()
153 if (ameth != NULL in ENGINE_get_pkey_asn1_meth_str()
154 && ((int)strlen(ameth->pem_str) == len) in ENGINE_get_pkey_asn1_meth_str()
155 && OPENSSL_strncasecmp(ameth->pem_str, str, len) == 0) in ENGINE_get_pkey_asn1_meth_str()
156 return ameth; in ENGINE_get_pkey_asn1_meth_str()
163 const EVP_PKEY_ASN1_METHOD *ameth; member
172 if (lk->ameth) in look_str_cb()
176 EVP_PKEY_ASN1_METHOD *ameth; in look_str_cb() local
177 e->pkey_asn1_meths(e, &ameth, NUL in look_str_cb()
[all...]
/third_party/node/deps/openssl/openssl/crypto/evp/
H A Dp_lib.c68 if (pkey->ameth != NULL && pkey->ameth->pkey_bits != NULL) in EVP_PKEY_get_bits()
69 size = pkey->ameth->pkey_bits(pkey); in EVP_PKEY_get_bits()
80 if (pkey->ameth != NULL && pkey->ameth->pkey_security_bits != NULL) in EVP_PKEY_get_security_bits()
81 size = pkey->ameth->pkey_security_bits(pkey); in EVP_PKEY_get_security_bits()
211 if (from->ameth != NULL && from->ameth->param_copy != NULL) in EVP_PKEY_copy_parameters()
212 ok = from->ameth->param_copy(to, from); in EVP_PKEY_copy_parameters()
223 else if (pkey->ameth ! in EVP_PKEY_missing_parameters()
385 const EVP_PKEY_ASN1_METHOD *ameth = NULL; new_raw_key_int() local
972 const EVP_PKEY_ASN1_METHOD *ameth; EVP_PKEY_type() local
1496 const EVP_PKEY_ASN1_METHOD *ameth = NULL; pkey_set_type() local
1695 const EVP_PKEY_ASN1_METHOD *ameth = pkey->ameth; EVP_PKEY_dup() local
1728 const EVP_PKEY_ASN1_METHOD *ameth = x->ameth; evp_pkey_free_legacy() local
[all...]
H A Dpmeth_check.c70 /* use default public key check function in ameth */ in evp_pkey_public_check_combined()
71 if (pkey->ameth == NULL || pkey->ameth->pkey_public_check == NULL) in evp_pkey_public_check_combined()
74 return pkey->ameth->pkey_public_check(pkey); in evp_pkey_public_check_combined()
115 /* use default param check function in ameth */ in evp_pkey_param_check_combined()
116 if (pkey->ameth == NULL || pkey->ameth->pkey_param_check == NULL) in evp_pkey_param_check_combined()
119 return pkey->ameth->pkey_param_check(pkey); in evp_pkey_param_check_combined()
183 /* use default check function in ameth */ in EVP_PKEY_pairwise_check()
184 if (pkey->ameth in EVP_PKEY_pairwise_check()
[all...]
H A Devp_pkey.c46 if (pkey->ameth->priv_decode_ex != NULL) { in evp_pkcs82pkey_legacy()
47 if (!pkey->ameth->priv_decode_ex(pkey, p8, libctx, propq)) in evp_pkcs82pkey_legacy()
49 } else if (pkey->ameth->priv_decode != NULL) { in evp_pkcs82pkey_legacy()
50 if (!pkey->ameth->priv_decode(pkey, p8)) { in evp_pkcs82pkey_legacy()
137 if (pkey->ameth != NULL) { in EVP_PKEY2PKCS8()
138 if (pkey->ameth->priv_encode != NULL) { in EVP_PKEY2PKCS8()
139 if (!pkey->ameth->priv_encode(p8, pkey)) { in EVP_PKEY2PKCS8()
226 const EVP_PKEY_ASN1_METHOD *ameth; in EVP_PKEY_get0_type_name() local
233 ameth = EVP_PKEY_get0_asn1(key); in EVP_PKEY_get0_type_name()
234 if (ameth ! in EVP_PKEY_get0_type_name()
[all...]
/third_party/openssl/crypto/evp/
H A Dp_lib.c68 if (pkey->ameth != NULL && pkey->ameth->pkey_bits != NULL) in EVP_PKEY_get_bits()
69 size = pkey->ameth->pkey_bits(pkey); in EVP_PKEY_get_bits()
80 if (pkey->ameth != NULL && pkey->ameth->pkey_security_bits != NULL) in EVP_PKEY_get_security_bits()
81 size = pkey->ameth->pkey_security_bits(pkey); in EVP_PKEY_get_security_bits()
211 if (from->ameth != NULL && from->ameth->param_copy != NULL) in EVP_PKEY_copy_parameters()
212 ok = from->ameth->param_copy(to, from); in EVP_PKEY_copy_parameters()
223 else if (pkey->ameth ! in EVP_PKEY_missing_parameters()
385 const EVP_PKEY_ASN1_METHOD *ameth = NULL; new_raw_key_int() local
970 const EVP_PKEY_ASN1_METHOD *ameth; EVP_PKEY_type() local
1493 const EVP_PKEY_ASN1_METHOD *ameth = NULL; pkey_set_type() local
1692 const EVP_PKEY_ASN1_METHOD *ameth = pkey->ameth; EVP_PKEY_dup() local
1725 const EVP_PKEY_ASN1_METHOD *ameth = x->ameth; evp_pkey_free_legacy() local
[all...]
H A Dpmeth_check.c70 /* use default public key check function in ameth */ in evp_pkey_public_check_combined()
71 if (pkey->ameth == NULL || pkey->ameth->pkey_public_check == NULL) in evp_pkey_public_check_combined()
74 return pkey->ameth->pkey_public_check(pkey); in evp_pkey_public_check_combined()
115 /* use default param check function in ameth */ in evp_pkey_param_check_combined()
116 if (pkey->ameth == NULL || pkey->ameth->pkey_param_check == NULL) in evp_pkey_param_check_combined()
119 return pkey->ameth->pkey_param_check(pkey); in evp_pkey_param_check_combined()
183 /* use default check function in ameth */ in EVP_PKEY_pairwise_check()
184 if (pkey->ameth in EVP_PKEY_pairwise_check()
[all...]
H A Devp_pkey.c46 if (pkey->ameth->priv_decode_ex != NULL) { in evp_pkcs82pkey_legacy()
47 if (!pkey->ameth->priv_decode_ex(pkey, p8, libctx, propq)) in evp_pkcs82pkey_legacy()
49 } else if (pkey->ameth->priv_decode != NULL) { in evp_pkcs82pkey_legacy()
50 if (!pkey->ameth->priv_decode(pkey, p8)) { in evp_pkcs82pkey_legacy()
137 if (pkey->ameth != NULL) { in EVP_PKEY2PKCS8()
138 if (pkey->ameth->priv_encode != NULL) { in EVP_PKEY2PKCS8()
139 if (!pkey->ameth->priv_encode(p8, pkey)) { in EVP_PKEY2PKCS8()
226 const EVP_PKEY_ASN1_METHOD *ameth; in EVP_PKEY_get0_type_name() local
233 ameth = EVP_PKEY_get0_asn1(key); in EVP_PKEY_get0_type_name()
234 if (ameth ! in EVP_PKEY_get0_type_name()
[all...]
/third_party/node/deps/openssl/openssl/apps/lib/
H A Dengine.c140 const EVP_PKEY_ASN1_METHOD *ameth; in get_legacy_pkey_id() local
145 ameth = EVP_PKEY_asn1_find_str(&tmpeng, algname, -1); in get_legacy_pkey_id()
150 if (ameth == NULL && e != NULL) in get_legacy_pkey_id()
151 ameth = ENGINE_get_pkey_asn1_meth_str(e, algname, -1); in get_legacy_pkey_id()
156 ameth = NULL; in get_legacy_pkey_id()
159 if (ameth == NULL) in get_legacy_pkey_id()
162 EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, ameth); in get_legacy_pkey_id()
/third_party/openssl/apps/lib/
H A Dengine.c140 const EVP_PKEY_ASN1_METHOD *ameth; in get_legacy_pkey_id() local
145 ameth = EVP_PKEY_asn1_find_str(&tmpeng, algname, -1); in get_legacy_pkey_id()
150 if (ameth == NULL && e != NULL) in get_legacy_pkey_id()
151 ameth = ENGINE_get_pkey_asn1_meth_str(e, algname, -1); in get_legacy_pkey_id()
156 ameth = NULL; in get_legacy_pkey_id()
159 if (ameth == NULL) in get_legacy_pkey_id()
162 EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, ameth); in get_legacy_pkey_id()
/third_party/node/deps/openssl/openssl/crypto/pem/
H A Dpem_pkey.c175 const EVP_PKEY_ASN1_METHOD *ameth; in pem_read_bio_key_legacy() local
176 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen); in pem_read_bio_key_legacy()
177 if (ameth == NULL || ameth->old_priv_decode == NULL) in pem_read_bio_key_legacy()
179 ret = ossl_d2i_PrivateKey_legacy(ameth->pkey_id, x, &p, len, libctx, in pem_read_bio_key_legacy()
192 || !ret->ameth->param_decode in pem_read_bio_key_legacy()
193 || !ret->ameth->param_decode(ret, &p, len)) { in pem_read_bio_key_legacy()
323 if (x != NULL && (x->ameth == NULL || x->ameth->priv_encode != NULL)) in PEM_write_cb_ex_fnsig()
356 if (x->ameth in PEM_write_bio_PrivateKey_traditional()
[all...]
/third_party/openssl/crypto/pem/
H A Dpem_pkey.c175 const EVP_PKEY_ASN1_METHOD *ameth; in pem_read_bio_key_legacy() local
176 ameth = EVP_PKEY_asn1_find_str(NULL, nm, slen); in pem_read_bio_key_legacy()
177 if (ameth == NULL || ameth->old_priv_decode == NULL) in pem_read_bio_key_legacy()
179 ret = ossl_d2i_PrivateKey_legacy(ameth->pkey_id, x, &p, len, libctx, in pem_read_bio_key_legacy()
192 || !ret->ameth->param_decode in pem_read_bio_key_legacy()
193 || !ret->ameth->param_decode(ret, &p, len)) { in pem_read_bio_key_legacy()
323 if (x != NULL && (x->ameth == NULL || x->ameth->priv_encode != NULL)) in PEM_write_cb_ex_fnsig()
356 if (x->ameth in PEM_write_bio_PrivateKey_traditional()
[all...]
/third_party/openssl/test/
H A Dpkey_meth_test.c28 const EVP_PKEY_ASN1_METHOD *ameth; in test_asn1_meths() local
31 ameth = EVP_PKEY_asn1_get0(i); in test_asn1_meths()
32 EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, NULL, NULL, ameth); in test_asn1_meths()
43 ameth = EVP_PKEY_asn1_get0(i); in test_asn1_meths()
44 EVP_PKEY_asn1_get0_info(&pkey_id, NULL, NULL, &info, NULL, ameth); in test_asn1_meths()
/third_party/node/deps/openssl/openssl/crypto/ec/
H A Decx_meth.c47 if (!X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in ecx_pub_encode()
66 ecx = ossl_ecx_key_op(palg, p, pklen, pkey->ameth->pkey_id, in ecx_pub_decode()
70 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_pub_decode()
94 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_priv_decode_ex()
122 if (!PKCS8_pkey_set0(p8, OBJ_nid2obj(pkey->ameth->pkey_id), 0, in ecx_priv_encode()
139 if (IS25519(pkey->ameth->pkey_id)) { in ecx_bits()
141 } else if(ISX448(pkey->ameth->pkey_id)) { in ecx_bits()
150 if (IS25519(pkey->ameth->pkey_id)) { in ecx_security_bits()
172 const char *nm = OBJ_nid2ln(pkey->ameth->pkey_id); in ecx_key_print()
222 ECX_KEY *ecx = ossl_ecx_key_op(NULL, arg2, arg1, pkey->ameth in ecx_ctrl()
[all...]
/third_party/openssl/crypto/ec/
H A Decx_meth.c47 if (!X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in ecx_pub_encode()
66 ecx = ossl_ecx_key_op(palg, p, pklen, pkey->ameth->pkey_id, in ecx_pub_decode()
70 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_pub_decode()
94 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, ecx); in ecx_priv_decode_ex()
122 if (!PKCS8_pkey_set0(p8, OBJ_nid2obj(pkey->ameth->pkey_id), 0, in ecx_priv_encode()
139 if (IS25519(pkey->ameth->pkey_id)) { in ecx_bits()
141 } else if(ISX448(pkey->ameth->pkey_id)) { in ecx_bits()
150 if (IS25519(pkey->ameth->pkey_id)) { in ecx_security_bits()
172 const char *nm = OBJ_nid2ln(pkey->ameth->pkey_id); in ecx_key_print()
222 ECX_KEY *ecx = ossl_ecx_key_op(NULL, arg2, arg1, pkey->ameth in ecx_ctrl()
[all...]
/third_party/node/deps/openssl/openssl/crypto/dh/
H A Ddh_ameth.c38 int is_dhx = (pkey->ameth == &ossl_dhx_asn1_meth); in d2i_dhp()
50 if (pkey->ameth == &ossl_dhx_asn1_meth) in i2d_dhp()
102 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, dh); in dh_pub_decode()
147 if (X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in dh_pub_encode()
171 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, dh); in dh_priv_decode()
215 if (!PKCS8_pkey_set0(p8, OBJ_nid2obj(pkey->ameth->pkey_id), 0, in dh_priv_encode()
235 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, dh); in dh_param_decode()
318 a->ameth != &ossl_dhx_asn1_meth); in dh_cmp_parameters()
354 from->ameth == &ossl_dhx_asn1_meth); in dh_copy_parameters()
/third_party/openssl/crypto/dh/
H A Ddh_ameth.c38 int is_dhx = (pkey->ameth == &ossl_dhx_asn1_meth); in d2i_dhp()
50 if (pkey->ameth == &ossl_dhx_asn1_meth) in i2d_dhp()
102 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, dh); in dh_pub_decode()
147 if (X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in dh_pub_encode()
171 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, dh); in dh_priv_decode()
215 if (!PKCS8_pkey_set0(p8, OBJ_nid2obj(pkey->ameth->pkey_id), 0, in dh_priv_encode()
235 EVP_PKEY_assign(pkey, pkey->ameth->pkey_id, dh); in dh_param_decode()
318 a->ameth != &ossl_dhx_asn1_meth); in dh_cmp_parameters()
354 from->ameth == &ossl_dhx_asn1_meth); in dh_copy_parameters()
/third_party/node/deps/openssl/openssl/crypto/x509/
H A Dx509_set.c201 const EVP_PKEY_ASN1_METHOD *ameth; in x509_sig_info_init() local
218 ameth = EVP_PKEY_asn1_find(NULL, pknid); in x509_sig_info_init()
219 if (ameth == NULL || ameth->siginf_set == NULL in x509_sig_info_init()
220 || !ameth->siginf_set(siginf, alg, sig)) { in x509_sig_info_init()
/third_party/openssl/crypto/x509/
H A Dx509_set.c201 const EVP_PKEY_ASN1_METHOD *ameth; in x509_sig_info_init() local
218 ameth = EVP_PKEY_asn1_find(NULL, pknid); in x509_sig_info_init()
219 if (ameth == NULL || ameth->siginf_set == NULL in x509_sig_info_init()
220 || !ameth->siginf_set(siginf, alg, sig)) { in x509_sig_info_init()

Completed in 16 milliseconds

123