/third_party/node/deps/openssl/openssl/crypto/evp/ |
H A D | p_lib.c | 53 static int pkey_set_type(EVP_PKEY *pkey, ENGINE *e, int type, const char *str, 62 int EVP_PKEY_get_bits(const EVP_PKEY *pkey) in EVP_PKEY_get_bits() argument 66 if (pkey != NULL) { in EVP_PKEY_get_bits() 67 size = pkey->cache.bits; in EVP_PKEY_get_bits() 68 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() 74 int EVP_PKEY_get_security_bits(const EVP_PKEY *pkey) in EVP_PKEY_get_security_bits() argument 78 if (pkey ! in EVP_PKEY_get_security_bits() 86 EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode) EVP_PKEY_save_parameters() argument 218 EVP_PKEY_missing_parameters(const EVP_PKEY *pkey) EVP_PKEY_missing_parameters() argument 383 EVP_PKEY *pkey = NULL; new_raw_key_int() local 550 EVP_PKEY_get_raw_private_key(const EVP_PKEY *pkey, unsigned char *priv, size_t *len) EVP_PKEY_get_raw_private_key() argument 582 EVP_PKEY_get_raw_public_key(const EVP_PKEY *pkey, unsigned char *pub, size_t *len) EVP_PKEY_get_raw_public_key() argument 625 EVP_PKEY *pkey = NULL; new_cmac_key_int() local 680 EVP_PKEY_set_type(EVP_PKEY *pkey, int type) EVP_PKEY_set_type() argument 685 EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len) EVP_PKEY_set_type_str() argument 691 EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *e) EVP_PKEY_set1_engine() argument 709 EVP_PKEY_get0_engine(const EVP_PKEY *pkey) EVP_PKEY_get0_engine() argument 716 detect_foreign_key(EVP_PKEY *pkey) detect_foreign_key() argument 750 EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key) EVP_PKEY_assign() argument 784 EVP_PKEY_get0(const EVP_PKEY *pkey) EVP_PKEY_get0() argument 795 EVP_PKEY_get0_hmac(const EVP_PKEY *pkey, size_t *len) EVP_PKEY_get0_hmac() argument 811 EVP_PKEY_get0_poly1305(const EVP_PKEY *pkey, size_t *len) EVP_PKEY_get0_poly1305() argument 828 EVP_PKEY_get0_siphash(const EVP_PKEY *pkey, size_t *len) EVP_PKEY_get0_siphash() argument 846 evp_pkey_get0_DSA_int(const EVP_PKEY *pkey) evp_pkey_get0_DSA_int() argument 855 EVP_PKEY_get0_DSA(const EVP_PKEY *pkey) EVP_PKEY_get0_DSA() argument 860 EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key) EVP_PKEY_set1_DSA() argument 867 EVP_PKEY_get1_DSA(EVP_PKEY *pkey) EVP_PKEY_get1_DSA() argument 878 evp_pkey_get0_ECX_KEY(const EVP_PKEY *pkey, int type) evp_pkey_get0_ECX_KEY() argument 887 evp_pkey_get1_ECX_KEY(EVP_PKEY *pkey, int type) evp_pkey_get1_ECX_KEY() argument 945 evp_pkey_get0_DH_int(const EVP_PKEY *pkey) evp_pkey_get0_DH_int() argument 954 EVP_PKEY_get0_DH(const EVP_PKEY *pkey) EVP_PKEY_get0_DH() argument 959 EVP_PKEY_get1_DH(EVP_PKEY *pkey) EVP_PKEY_get1_DH() argument 985 EVP_PKEY_get_id(const EVP_PKEY *pkey) EVP_PKEY_get_id() argument 990 EVP_PKEY_get_base_id(const EVP_PKEY *pkey) EVP_PKEY_get_base_id() argument 1049 EVP_PKEY_is_a(const EVP_PKEY *pkey, const char *name) EVP_PKEY_is_a() argument 1058 EVP_PKEY_type_names_do_all(const EVP_PKEY *pkey, void (*fn)(const char *name, void *data), void *data) EVP_PKEY_type_names_do_all() argument 1074 EVP_PKEY_can_sign(const EVP_PKEY *pkey) EVP_PKEY_can_sign() argument 1150 unsup_alg(BIO *out, const EVP_PKEY *pkey, int indent, const char *kstr) unsup_alg() argument 1158 print_pkey(const EVP_PKEY *pkey, BIO *out, int indent, int selection , const char *propquery , int (*legacy_print)(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx), ASN1_PCTX *legacy_pctx ) print_pkey() argument 1193 EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) EVP_PKEY_print_public() argument 1201 EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) EVP_PKEY_print_private() argument 1209 EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) EVP_PKEY_print_params() argument 1218 EVP_PKEY_print_public_fp(FILE *fp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) EVP_PKEY_print_public_fp() argument 1231 EVP_PKEY_print_private_fp(FILE *fp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) EVP_PKEY_print_private_fp() argument 1244 EVP_PKEY_print_params_fp(FILE *fp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) EVP_PKEY_print_params_fp() argument 1270 legacy_asn1_ctrl_to_param(EVP_PKEY *pkey, int op, int arg1, void *arg2) legacy_asn1_ctrl_to_param() argument 1319 evp_pkey_asn1_ctrl(EVP_PKEY *pkey, int op, int arg1, void *arg2) evp_pkey_asn1_ctrl() argument 1328 EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid) EVP_PKEY_get_default_digest_nid() argument 1335 EVP_PKEY_get_default_digest_name(EVP_PKEY *pkey, char *mdname, size_t mdname_sz) EVP_PKEY_get_default_digest_name() argument 1354 EVP_PKEY_get_group_name(const EVP_PKEY *pkey, char *gname, size_t gname_sz, size_t *gname_len) EVP_PKEY_get_group_name() argument 1361 EVP_PKEY_digestsign_supports_digest(EVP_PKEY *pkey, OSSL_LIB_CTX *libctx, const char *name, const char *propq) EVP_PKEY_digestsign_supports_digest() argument 1379 EVP_PKEY_set1_encoded_public_key(EVP_PKEY *pkey, const unsigned char *pub, size_t publen) EVP_PKEY_set1_encoded_public_key() argument 1399 EVP_PKEY_get1_encoded_public_key(EVP_PKEY *pkey, unsigned char **ppub) EVP_PKEY_get1_encoded_public_key() argument 1492 pkey_set_type(EVP_PKEY *pkey, ENGINE *e, int type, const char *str, int len, EVP_KEYMGMT *keymgmt) pkey_set_type() argument 1630 EVP_PKEY_set_type_by_keymgmt(EVP_PKEY *pkey, EVP_KEYMGMT *keymgmt) EVP_PKEY_set_type_by_keymgmt() argument 1659 EVP_PKEY_up_ref(EVP_PKEY *pkey) EVP_PKEY_up_ref() argument 1672 EVP_PKEY_dup(EVP_PKEY *pkey) EVP_PKEY_dup() argument 1802 EVP_PKEY_get_size(const EVP_PKEY *pkey) EVP_PKEY_get_size() argument 1816 EVP_PKEY_get0_description(const EVP_PKEY *pkey) EVP_PKEY_get0_description() argument 2146 EVP_PKEY_get_bn_param(const EVP_PKEY *pkey, const char *key_name, BIGNUM **bn) EVP_PKEY_get_bn_param() argument 2195 EVP_PKEY_get_octet_string_param(const EVP_PKEY *pkey, const char *key_name, unsigned char *buf, size_t max_buf_sz, size_t *out_len) EVP_PKEY_get_octet_string_param() argument 2214 EVP_PKEY_get_utf8_string_param(const EVP_PKEY *pkey, const char *key_name, char *str, size_t max_buf_sz, size_t *out_len) EVP_PKEY_get_utf8_string_param() argument 2241 EVP_PKEY_get_int_param(const EVP_PKEY *pkey, const char *key_name, int *out) EVP_PKEY_get_int_param() argument 2255 EVP_PKEY_get_size_t_param(const EVP_PKEY *pkey, const char *key_name, size_t *out) EVP_PKEY_get_size_t_param() argument 2269 EVP_PKEY_set_int_param(EVP_PKEY *pkey, const char *key_name, int in) EVP_PKEY_set_int_param() argument 2281 EVP_PKEY_set_size_t_param(EVP_PKEY *pkey, const char *key_name, size_t in) EVP_PKEY_set_size_t_param() argument 2293 EVP_PKEY_set_bn_param(EVP_PKEY *pkey, const char *key_name, const BIGNUM *bn) EVP_PKEY_set_bn_param() argument 2317 EVP_PKEY_set_utf8_string_param(EVP_PKEY *pkey, const char *key_name, const char *str) EVP_PKEY_set_utf8_string_param() argument 2330 EVP_PKEY_set_octet_string_param(EVP_PKEY *pkey, const char *key_name, const unsigned char *buf, size_t bsize) EVP_PKEY_set_octet_string_param() argument 2344 EVP_PKEY_settable_params(const EVP_PKEY *pkey) EVP_PKEY_settable_params() argument 2351 EVP_PKEY_set_params(EVP_PKEY *pkey, OSSL_PARAM params[]) EVP_PKEY_set_params() argument 2376 EVP_PKEY_gettable_params(const EVP_PKEY *pkey) EVP_PKEY_gettable_params() argument 2383 EVP_PKEY_get_params(const EVP_PKEY *pkey, OSSL_PARAM params[]) EVP_PKEY_get_params() argument 2398 EVP_PKEY_get_ec_point_conv_form(const EVP_PKEY *pkey) EVP_PKEY_get_ec_point_conv_form() argument 2438 EVP_PKEY_get_field_type(const EVP_PKEY *pkey) EVP_PKEY_get_field_type() argument [all...] |
H A D | pmeth_check.c | 37 keydata = evp_pkey_export_to_provider(ctx->pkey, ctx->libctx, in try_provided_check() 49 EVP_PKEY *pkey = ctx->pkey; in evp_pkey_public_check_combined() local 52 if (pkey == NULL) { in evp_pkey_public_check_combined() 61 if (pkey->type == EVP_PKEY_NONE) in evp_pkey_public_check_combined() 68 return ctx->pmeth->public_check(pkey); 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() 93 EVP_PKEY *pkey = ctx->pkey; evp_pkey_param_check_combined() local 138 EVP_PKEY *pkey = ctx->pkey; EVP_PKEY_private_check() local 162 EVP_PKEY *pkey = ctx->pkey; EVP_PKEY_pairwise_check() local [all...] |
H A D | p_legacy.c | 25 int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key) in EVP_PKEY_set1_RSA() argument 27 int ret = EVP_PKEY_assign_RSA(pkey, key); in EVP_PKEY_set1_RSA() 34 RSA *evp_pkey_get0_RSA_int(const EVP_PKEY *pkey) in evp_pkey_get0_RSA_int() argument 36 if (pkey->type != EVP_PKEY_RSA && pkey->type != EVP_PKEY_RSA_PSS) { in evp_pkey_get0_RSA_int() 40 return evp_pkey_get_legacy((EVP_PKEY *)pkey); in evp_pkey_get0_RSA_int() 43 const RSA *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey) in EVP_PKEY_get0_RSA() argument 45 return evp_pkey_get0_RSA_int(pkey); in EVP_PKEY_get0_RSA() 48 RSA *EVP_PKEY_get1_RSA(EVP_PKEY *pkey) in EVP_PKEY_get1_RSA() argument 50 RSA *ret = evp_pkey_get0_RSA_int(pkey); in EVP_PKEY_get1_RSA() 58 EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) EVP_PKEY_set1_EC_KEY() argument 69 evp_pkey_get0_EC_KEY_int(const EVP_PKEY *pkey) evp_pkey_get0_EC_KEY_int() argument 78 EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey) EVP_PKEY_get0_EC_KEY() argument 83 EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey) EVP_PKEY_get1_EC_KEY() argument [all...] |
H A D | evp_pkey.c | 27 EVP_PKEY *pkey = NULL; in evp_pkcs82pkey_legacy() local 34 if ((pkey = EVP_PKEY_new()) == NULL) { in evp_pkcs82pkey_legacy() 39 if (!EVP_PKEY_set_type(pkey, OBJ_obj2nid(algoid))) { in evp_pkcs82pkey_legacy() 46 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() 59 return pkey; in evp_pkcs82pkey_legacy() 69 EVP_PKEY *pkey = NULL; EVP_PKCS82PKEY_ex() local 103 EVP_PKEY2PKCS8(const EVP_PKEY *pkey) EVP_PKEY2PKCS8() argument [all...] |
/third_party/openssl/crypto/evp/ |
H A D | p_lib.c | 53 static int pkey_set_type(EVP_PKEY *pkey, ENGINE *e, int type, const char *str, 62 int EVP_PKEY_get_bits(const EVP_PKEY *pkey) in EVP_PKEY_get_bits() argument 66 if (pkey != NULL) { in EVP_PKEY_get_bits() 67 size = pkey->cache.bits; in EVP_PKEY_get_bits() 68 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() 74 int EVP_PKEY_get_security_bits(const EVP_PKEY *pkey) in EVP_PKEY_get_security_bits() argument 78 if (pkey ! in EVP_PKEY_get_security_bits() 86 EVP_PKEY_save_parameters(EVP_PKEY *pkey, int mode) EVP_PKEY_save_parameters() argument 218 EVP_PKEY_missing_parameters(const EVP_PKEY *pkey) EVP_PKEY_missing_parameters() argument 383 EVP_PKEY *pkey = NULL; new_raw_key_int() local 550 EVP_PKEY_get_raw_private_key(const EVP_PKEY *pkey, unsigned char *priv, size_t *len) EVP_PKEY_get_raw_private_key() argument 582 EVP_PKEY_get_raw_public_key(const EVP_PKEY *pkey, unsigned char *pub, size_t *len) EVP_PKEY_get_raw_public_key() argument 625 EVP_PKEY *pkey = NULL; new_cmac_key_int() local 680 EVP_PKEY_set_type(EVP_PKEY *pkey, int type) EVP_PKEY_set_type() argument 685 EVP_PKEY_set_type_str(EVP_PKEY *pkey, const char *str, int len) EVP_PKEY_set_type_str() argument 691 EVP_PKEY_set1_engine(EVP_PKEY *pkey, ENGINE *e) EVP_PKEY_set1_engine() argument 709 EVP_PKEY_get0_engine(const EVP_PKEY *pkey) EVP_PKEY_get0_engine() argument 716 detect_foreign_key(EVP_PKEY *pkey) detect_foreign_key() argument 748 EVP_PKEY_assign(EVP_PKEY *pkey, int type, void *key) EVP_PKEY_assign() argument 782 EVP_PKEY_get0(const EVP_PKEY *pkey) EVP_PKEY_get0() argument 793 EVP_PKEY_get0_hmac(const EVP_PKEY *pkey, size_t *len) EVP_PKEY_get0_hmac() argument 809 EVP_PKEY_get0_poly1305(const EVP_PKEY *pkey, size_t *len) EVP_PKEY_get0_poly1305() argument 826 EVP_PKEY_get0_siphash(const EVP_PKEY *pkey, size_t *len) EVP_PKEY_get0_siphash() argument 844 evp_pkey_get0_DSA_int(const EVP_PKEY *pkey) evp_pkey_get0_DSA_int() argument 853 EVP_PKEY_get0_DSA(const EVP_PKEY *pkey) EVP_PKEY_get0_DSA() argument 858 EVP_PKEY_set1_DSA(EVP_PKEY *pkey, DSA *key) EVP_PKEY_set1_DSA() argument 865 EVP_PKEY_get1_DSA(EVP_PKEY *pkey) EVP_PKEY_get1_DSA() argument 876 evp_pkey_get0_ECX_KEY(const EVP_PKEY *pkey, int type) evp_pkey_get0_ECX_KEY() argument 885 evp_pkey_get1_ECX_KEY(EVP_PKEY *pkey, int type) evp_pkey_get1_ECX_KEY() argument 943 evp_pkey_get0_DH_int(const EVP_PKEY *pkey) evp_pkey_get0_DH_int() argument 952 EVP_PKEY_get0_DH(const EVP_PKEY *pkey) EVP_PKEY_get0_DH() argument 957 EVP_PKEY_get1_DH(EVP_PKEY *pkey) EVP_PKEY_get1_DH() argument 983 EVP_PKEY_get_id(const EVP_PKEY *pkey) EVP_PKEY_get_id() argument 988 EVP_PKEY_get_base_id(const EVP_PKEY *pkey) EVP_PKEY_get_base_id() argument 1047 EVP_PKEY_is_a(const EVP_PKEY *pkey, const char *name) EVP_PKEY_is_a() argument 1056 EVP_PKEY_type_names_do_all(const EVP_PKEY *pkey, void (*fn)(const char *name, void *data), void *data) EVP_PKEY_type_names_do_all() argument 1072 EVP_PKEY_can_sign(const EVP_PKEY *pkey) EVP_PKEY_can_sign() argument 1147 unsup_alg(BIO *out, const EVP_PKEY *pkey, int indent, const char *kstr) unsup_alg() argument 1155 print_pkey(const EVP_PKEY *pkey, BIO *out, int indent, int selection , const char *propquery , int (*legacy_print)(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx), ASN1_PCTX *legacy_pctx ) print_pkey() argument 1190 EVP_PKEY_print_public(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) EVP_PKEY_print_public() argument 1198 EVP_PKEY_print_private(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) EVP_PKEY_print_private() argument 1206 EVP_PKEY_print_params(BIO *out, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) EVP_PKEY_print_params() argument 1215 EVP_PKEY_print_public_fp(FILE *fp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) EVP_PKEY_print_public_fp() argument 1228 EVP_PKEY_print_private_fp(FILE *fp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) EVP_PKEY_print_private_fp() argument 1241 EVP_PKEY_print_params_fp(FILE *fp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *pctx) EVP_PKEY_print_params_fp() argument 1267 legacy_asn1_ctrl_to_param(EVP_PKEY *pkey, int op, int arg1, void *arg2) legacy_asn1_ctrl_to_param() argument 1316 evp_pkey_asn1_ctrl(EVP_PKEY *pkey, int op, int arg1, void *arg2) evp_pkey_asn1_ctrl() argument 1325 EVP_PKEY_get_default_digest_nid(EVP_PKEY *pkey, int *pnid) EVP_PKEY_get_default_digest_nid() argument 1332 EVP_PKEY_get_default_digest_name(EVP_PKEY *pkey, char *mdname, size_t mdname_sz) EVP_PKEY_get_default_digest_name() argument 1351 EVP_PKEY_get_group_name(const EVP_PKEY *pkey, char *gname, size_t gname_sz, size_t *gname_len) EVP_PKEY_get_group_name() argument 1358 EVP_PKEY_digestsign_supports_digest(EVP_PKEY *pkey, OSSL_LIB_CTX *libctx, const char *name, const char *propq) EVP_PKEY_digestsign_supports_digest() argument 1376 EVP_PKEY_set1_encoded_public_key(EVP_PKEY *pkey, const unsigned char *pub, size_t publen) EVP_PKEY_set1_encoded_public_key() argument 1396 EVP_PKEY_get1_encoded_public_key(EVP_PKEY *pkey, unsigned char **ppub) EVP_PKEY_get1_encoded_public_key() argument 1489 pkey_set_type(EVP_PKEY *pkey, ENGINE *e, int type, const char *str, int len, EVP_KEYMGMT *keymgmt) pkey_set_type() argument 1627 EVP_PKEY_set_type_by_keymgmt(EVP_PKEY *pkey, EVP_KEYMGMT *keymgmt) EVP_PKEY_set_type_by_keymgmt() argument 1656 EVP_PKEY_up_ref(EVP_PKEY *pkey) EVP_PKEY_up_ref() argument 1669 EVP_PKEY_dup(EVP_PKEY *pkey) EVP_PKEY_dup() argument 1799 EVP_PKEY_get_size(const EVP_PKEY *pkey) EVP_PKEY_get_size() argument 1813 EVP_PKEY_get0_description(const EVP_PKEY *pkey) EVP_PKEY_get0_description() argument 2143 EVP_PKEY_get_bn_param(const EVP_PKEY *pkey, const char *key_name, BIGNUM **bn) EVP_PKEY_get_bn_param() argument 2192 EVP_PKEY_get_octet_string_param(const EVP_PKEY *pkey, const char *key_name, unsigned char *buf, size_t max_buf_sz, size_t *out_len) EVP_PKEY_get_octet_string_param() argument 2211 EVP_PKEY_get_utf8_string_param(const EVP_PKEY *pkey, const char *key_name, char *str, size_t max_buf_sz, size_t *out_len) EVP_PKEY_get_utf8_string_param() argument 2238 EVP_PKEY_get_int_param(const EVP_PKEY *pkey, const char *key_name, int *out) EVP_PKEY_get_int_param() argument 2252 EVP_PKEY_get_size_t_param(const EVP_PKEY *pkey, const char *key_name, size_t *out) EVP_PKEY_get_size_t_param() argument 2266 EVP_PKEY_set_int_param(EVP_PKEY *pkey, const char *key_name, int in) EVP_PKEY_set_int_param() argument 2278 EVP_PKEY_set_size_t_param(EVP_PKEY *pkey, const char *key_name, size_t in) EVP_PKEY_set_size_t_param() argument 2290 EVP_PKEY_set_bn_param(EVP_PKEY *pkey, const char *key_name, const BIGNUM *bn) EVP_PKEY_set_bn_param() argument 2314 EVP_PKEY_set_utf8_string_param(EVP_PKEY *pkey, const char *key_name, const char *str) EVP_PKEY_set_utf8_string_param() argument 2327 EVP_PKEY_set_octet_string_param(EVP_PKEY *pkey, const char *key_name, const unsigned char *buf, size_t bsize) EVP_PKEY_set_octet_string_param() argument 2341 EVP_PKEY_settable_params(const EVP_PKEY *pkey) EVP_PKEY_settable_params() argument 2348 EVP_PKEY_set_params(EVP_PKEY *pkey, OSSL_PARAM params[]) EVP_PKEY_set_params() argument 2373 EVP_PKEY_gettable_params(const EVP_PKEY *pkey) EVP_PKEY_gettable_params() argument 2380 EVP_PKEY_get_params(const EVP_PKEY *pkey, OSSL_PARAM params[]) EVP_PKEY_get_params() argument 2395 EVP_PKEY_get_ec_point_conv_form(const EVP_PKEY *pkey) EVP_PKEY_get_ec_point_conv_form() argument 2435 EVP_PKEY_get_field_type(const EVP_PKEY *pkey) EVP_PKEY_get_field_type() argument [all...] |
H A D | pmeth_check.c | 37 keydata = evp_pkey_export_to_provider(ctx->pkey, ctx->libctx, in try_provided_check() 49 EVP_PKEY *pkey = ctx->pkey; in evp_pkey_public_check_combined() local 52 if (pkey == NULL) { in evp_pkey_public_check_combined() 61 if (pkey->type == EVP_PKEY_NONE) in evp_pkey_public_check_combined() 68 return ctx->pmeth->public_check(pkey); 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() 93 EVP_PKEY *pkey = ctx->pkey; evp_pkey_param_check_combined() local 138 EVP_PKEY *pkey = ctx->pkey; EVP_PKEY_private_check() local 162 EVP_PKEY *pkey = ctx->pkey; EVP_PKEY_pairwise_check() local [all...] |
H A D | p_legacy.c | 25 int EVP_PKEY_set1_RSA(EVP_PKEY *pkey, RSA *key) in EVP_PKEY_set1_RSA() argument 27 int ret = EVP_PKEY_assign_RSA(pkey, key); in EVP_PKEY_set1_RSA() 34 RSA *evp_pkey_get0_RSA_int(const EVP_PKEY *pkey) in evp_pkey_get0_RSA_int() argument 36 if (pkey->type != EVP_PKEY_RSA && pkey->type != EVP_PKEY_RSA_PSS) { in evp_pkey_get0_RSA_int() 40 return evp_pkey_get_legacy((EVP_PKEY *)pkey); in evp_pkey_get0_RSA_int() 43 const RSA *EVP_PKEY_get0_RSA(const EVP_PKEY *pkey) in EVP_PKEY_get0_RSA() argument 45 return evp_pkey_get0_RSA_int(pkey); in EVP_PKEY_get0_RSA() 48 RSA *EVP_PKEY_get1_RSA(EVP_PKEY *pkey) in EVP_PKEY_get1_RSA() argument 50 RSA *ret = evp_pkey_get0_RSA_int(pkey); in EVP_PKEY_get1_RSA() 58 EVP_PKEY_set1_EC_KEY(EVP_PKEY *pkey, EC_KEY *key) EVP_PKEY_set1_EC_KEY() argument 69 evp_pkey_get0_EC_KEY_int(const EVP_PKEY *pkey) evp_pkey_get0_EC_KEY_int() argument 78 EVP_PKEY_get0_EC_KEY(const EVP_PKEY *pkey) EVP_PKEY_get0_EC_KEY() argument 83 EVP_PKEY_get1_EC_KEY(EVP_PKEY *pkey) EVP_PKEY_get1_EC_KEY() argument [all...] |
/third_party/libwebsockets/lib/tls/mbedtls/wrapper/library/ |
H A D | ssl_pkey.c | 28 EVP_PKEY *pkey; in __EVP_PKEY_new() local 30 pkey = ssl_mem_zalloc(sizeof(EVP_PKEY)); in __EVP_PKEY_new() 31 if (!pkey) { in __EVP_PKEY_new() 32 SSL_DEBUG(SSL_PKEY_ERROR_LEVEL, "no enough memory > (pkey)"); in __EVP_PKEY_new() 37 pkey->method = ipk->method; in __EVP_PKEY_new() 39 pkey->method = EVP_PKEY_method(); in __EVP_PKEY_new() 42 ret = EVP_PKEY_METHOD_CALL(new, pkey, ipk, rngctx); in __EVP_PKEY_new() 48 return pkey; in __EVP_PKEY_new() 51 ssl_mem_free(pkey); in __EVP_PKEY_new() 67 void EVP_PKEY_free(EVP_PKEY *pkey) in EVP_PKEY_free() argument 87 EVP_PKEY *pkey; d2i_PrivateKey() local 126 SSL_CTX_use_PrivateKey(SSL_CTX *ctx, EVP_PKEY *pkey) SSL_CTX_use_PrivateKey() argument 145 SSL_use_PrivateKey(SSL *ssl, EVP_PKEY *pkey) SSL_use_PrivateKey() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/dh/ |
H A D | dh_ameth.c | 34 static DH *d2i_dhp(const EVP_PKEY *pkey, const unsigned char **pp, in d2i_dhp() argument 38 int is_dhx = (pkey->ameth == &ossl_dhx_asn1_meth); in d2i_dhp() 48 static int i2d_dhp(const EVP_PKEY *pkey, const DH *a, unsigned char **pp) in i2d_dhp() argument 50 if (pkey->ameth == &ossl_dhx_asn1_meth) in i2d_dhp() 55 static void int_dh_free(EVP_PKEY *pkey) in int_dh_free() argument 57 DH_free(pkey->pkey.dh); in int_dh_free() 60 static int dh_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in dh_pub_decode() argument 85 if ((dh = d2i_dhp(pkey, &pm, pmlen)) == NULL) { in dh_pub_decode() 102 EVP_PKEY_assign(pkey, pke in dh_pub_decode() 111 dh_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) dh_pub_encode() argument 164 dh_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) dh_priv_decode() argument 177 dh_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) dh_priv_encode() argument 227 dh_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) dh_param_decode() argument 239 dh_param_encode(const EVP_PKEY *pkey, unsigned char **pder) dh_param_encode() argument 300 int_dh_size(const EVP_PKEY *pkey) int_dh_size() argument 305 dh_bits(const EVP_PKEY *pkey) dh_bits() argument 310 dh_security_bits(const EVP_PKEY *pkey) dh_security_bits() argument 374 dh_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) dh_param_print() argument 380 dh_public_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) dh_public_print() argument 386 dh_private_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) dh_private_print() argument 397 dh_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) dh_pkey_ctrl() argument 419 dhx_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) dhx_pkey_ctrl() argument 428 dh_pkey_public_check(const EVP_PKEY *pkey) dh_pkey_public_check() argument 440 dh_pkey_param_check(const EVP_PKEY *pkey) dh_pkey_param_check() argument 447 dh_pkey_dirty_cnt(const EVP_PKEY *pkey) dh_pkey_dirty_cnt() argument 513 EVP_PKEY *pkey = EVP_PKEY_CTX_get0_pkey(pctx); dh_pkey_import_from_type() local [all...] |
/third_party/openssl/crypto/dh/ |
H A D | dh_ameth.c | 34 static DH *d2i_dhp(const EVP_PKEY *pkey, const unsigned char **pp, in d2i_dhp() argument 38 int is_dhx = (pkey->ameth == &ossl_dhx_asn1_meth); in d2i_dhp() 48 static int i2d_dhp(const EVP_PKEY *pkey, const DH *a, unsigned char **pp) in i2d_dhp() argument 50 if (pkey->ameth == &ossl_dhx_asn1_meth) in i2d_dhp() 55 static void int_dh_free(EVP_PKEY *pkey) in int_dh_free() argument 57 DH_free(pkey->pkey.dh); in int_dh_free() 60 static int dh_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in dh_pub_decode() argument 85 if ((dh = d2i_dhp(pkey, &pm, pmlen)) == NULL) { in dh_pub_decode() 102 EVP_PKEY_assign(pkey, pke in dh_pub_decode() 111 dh_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) dh_pub_encode() argument 164 dh_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) dh_priv_decode() argument 177 dh_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) dh_priv_encode() argument 227 dh_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) dh_param_decode() argument 239 dh_param_encode(const EVP_PKEY *pkey, unsigned char **pder) dh_param_encode() argument 300 int_dh_size(const EVP_PKEY *pkey) int_dh_size() argument 305 dh_bits(const EVP_PKEY *pkey) dh_bits() argument 310 dh_security_bits(const EVP_PKEY *pkey) dh_security_bits() argument 374 dh_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) dh_param_print() argument 380 dh_public_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) dh_public_print() argument 386 dh_private_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) dh_private_print() argument 397 dh_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) dh_pkey_ctrl() argument 419 dhx_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) dhx_pkey_ctrl() argument 428 dh_pkey_public_check(const EVP_PKEY *pkey) dh_pkey_public_check() argument 440 dh_pkey_param_check(const EVP_PKEY *pkey) dh_pkey_param_check() argument 447 dh_pkey_dirty_cnt(const EVP_PKEY *pkey) dh_pkey_dirty_cnt() argument 513 EVP_PKEY *pkey = EVP_PKEY_CTX_get0_pkey(pctx); dh_pkey_import_from_type() local [all...] |
/third_party/node/deps/openssl/openssl/crypto/ec/ |
H A D | ec_ameth.c | 68 static int eckey_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in eckey_pub_encode() argument 70 const EC_KEY *ec_key = pkey->pkey.ec; in eckey_pub_encode() 100 static int eckey_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in eckey_pub_decode() argument 123 EVP_PKEY_assign_EC_KEY(pkey, eckey); in eckey_pub_decode() 134 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec); in eckey_pub_cmp() 135 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec), in eckey_pub_cmp() 136 *pb = EC_KEY_get0_public_key(b->pkey.ec); in eckey_pub_cmp() 148 static int eckey_priv_decode_ex(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8, in eckey_priv_decode_ex() argument 156 EVP_PKEY_assign_EC_KEY(pkey, ecke in eckey_priv_decode_ex() 162 eckey_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) eckey_priv_encode() argument 205 int_ec_size(const EVP_PKEY *pkey) int_ec_size() argument 210 ec_bits(const EVP_PKEY *pkey) ec_bits() argument 215 ec_security_bits(const EVP_PKEY *pkey) ec_security_bits() argument 232 ec_missing_parameters(const EVP_PKEY *pkey) ec_missing_parameters() argument 272 int_ec_free(EVP_PKEY *pkey) int_ec_free() argument 346 eckey_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) eckey_param_decode() argument 357 eckey_param_encode(const EVP_PKEY *pkey, unsigned char **pder) eckey_param_encode() argument 362 eckey_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) eckey_param_print() argument 368 eckey_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) eckey_pub_print() argument 374 eckey_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) eckey_priv_print() argument 380 old_ec_priv_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) old_ec_priv_decode() argument 391 old_ec_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) old_ec_priv_encode() argument 396 ec_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) ec_pkey_ctrl() argument 423 ec_pkey_check(const EVP_PKEY *pkey) ec_pkey_check() argument 436 ec_pkey_public_check(const EVP_PKEY *pkey) ec_pkey_public_check() argument 452 ec_pkey_param_check(const EVP_PKEY *pkey) ec_pkey_param_check() argument 466 ec_pkey_dirty_cnt(const EVP_PKEY *pkey) ec_pkey_dirty_cnt() argument 612 EVP_PKEY *pkey = EVP_PKEY_CTX_get0_pkey(pctx); ec_pkey_import_from() local [all...] |
H A D | ecx_meth.c | 31 static int ecx_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in ecx_pub_encode() argument 33 const ECX_KEY *ecxkey = pkey->pkey.ecx; in ecx_pub_encode() 41 penc = OPENSSL_memdup(ecxkey->pubkey, KEYLEN(pkey)); in ecx_pub_encode() 47 if (!X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in ecx_pub_encode() 48 V_ASN1_UNDEF, NULL, penc, KEYLEN(pkey))) { in ecx_pub_encode() 56 static int ecx_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in ecx_pub_decode() argument 66 ecx = ossl_ecx_key_op(palg, p, pklen, pkey->ameth->pkey_id, in ecx_pub_decode() 70 EVP_PKEY_assign(pkey, pkey in ecx_pub_decode() 86 ecx_priv_decode_ex(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8, OSSL_LIB_CTX *libctx, const char *propq) ecx_priv_decode_ex() argument 100 ecx_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) ecx_priv_encode() argument 132 ecx_size(const EVP_PKEY *pkey) ecx_size() argument 137 ecx_bits(const EVP_PKEY *pkey) ecx_bits() argument 148 ecx_security_bits(const EVP_PKEY *pkey) ecx_security_bits() argument 157 ecx_free(EVP_PKEY *pkey) ecx_free() argument 168 ecx_key_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx, ecx_key_op_t op) ecx_key_print() argument 205 ecx_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) ecx_priv_print() argument 211 ecx_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) ecx_pub_print() argument 217 ecx_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) ecx_ctrl() argument 247 ecd_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) ecd_ctrl() argument 261 ecx_set_priv_key(EVP_PKEY *pkey, const unsigned char *priv, size_t len) ecx_set_priv_key() argument 280 ecx_set_pub_key(EVP_PKEY *pkey, const unsigned char *pub, size_t len) ecx_set_pub_key() argument 298 ecx_get_priv_key(const EVP_PKEY *pkey, unsigned char *priv, size_t *len) ecx_get_priv_key() argument 319 ecx_get_pub_key(const EVP_PKEY *pkey, unsigned char *pub, size_t *len) ecx_get_pub_key() argument 339 ecx_pkey_dirty_cnt(const EVP_PKEY *pkey) ecx_pkey_dirty_cnt() argument 390 EVP_PKEY *pkey = EVP_PKEY_CTX_get0_pkey(pctx); ecx_generic_import_from() local 532 ecd_size25519(const EVP_PKEY *pkey) ecd_size25519() argument 537 ecd_size448(const EVP_PKEY *pkey) ecd_size448() argument 542 ecd_item_verify(EVP_MD_CTX *ctx, const ASN1_ITEM *it, const void *asn, const X509_ALGOR *sigalg, const ASN1_BIT_STRING *str, EVP_PKEY *pkey) ecd_item_verify() argument 712 pkey_ecx_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) pkey_ecx_keygen() argument 936 s390x_pkey_ecx_keygen25519(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) s390x_pkey_ecx_keygen25519() argument 977 s390x_pkey_ecx_keygen448(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) s390x_pkey_ecx_keygen448() argument 1019 s390x_pkey_ecd_keygen25519(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) s390x_pkey_ecd_keygen25519() argument 1081 s390x_pkey_ecd_keygen448(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) s390x_pkey_ecd_keygen448() argument [all...] |
/third_party/openssl/crypto/ec/ |
H A D | ec_ameth.c | 68 static int eckey_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in eckey_pub_encode() argument 70 const EC_KEY *ec_key = pkey->pkey.ec; in eckey_pub_encode() 100 static int eckey_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in eckey_pub_decode() argument 123 EVP_PKEY_assign_EC_KEY(pkey, eckey); in eckey_pub_decode() 134 const EC_GROUP *group = EC_KEY_get0_group(b->pkey.ec); in eckey_pub_cmp() 135 const EC_POINT *pa = EC_KEY_get0_public_key(a->pkey.ec), in eckey_pub_cmp() 136 *pb = EC_KEY_get0_public_key(b->pkey.ec); in eckey_pub_cmp() 148 static int eckey_priv_decode_ex(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8, in eckey_priv_decode_ex() argument 156 EVP_PKEY_assign_EC_KEY(pkey, ecke in eckey_priv_decode_ex() 162 eckey_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) eckey_priv_encode() argument 205 int_ec_size(const EVP_PKEY *pkey) int_ec_size() argument 210 ec_bits(const EVP_PKEY *pkey) ec_bits() argument 215 ec_security_bits(const EVP_PKEY *pkey) ec_security_bits() argument 232 ec_missing_parameters(const EVP_PKEY *pkey) ec_missing_parameters() argument 272 int_ec_free(EVP_PKEY *pkey) int_ec_free() argument 346 eckey_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) eckey_param_decode() argument 357 eckey_param_encode(const EVP_PKEY *pkey, unsigned char **pder) eckey_param_encode() argument 362 eckey_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) eckey_param_print() argument 368 eckey_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) eckey_pub_print() argument 374 eckey_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) eckey_priv_print() argument 380 old_ec_priv_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) old_ec_priv_decode() argument 391 old_ec_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) old_ec_priv_encode() argument 396 ec_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) ec_pkey_ctrl() argument 423 ec_pkey_check(const EVP_PKEY *pkey) ec_pkey_check() argument 436 ec_pkey_public_check(const EVP_PKEY *pkey) ec_pkey_public_check() argument 452 ec_pkey_param_check(const EVP_PKEY *pkey) ec_pkey_param_check() argument 466 ec_pkey_dirty_cnt(const EVP_PKEY *pkey) ec_pkey_dirty_cnt() argument 612 EVP_PKEY *pkey = EVP_PKEY_CTX_get0_pkey(pctx); ec_pkey_import_from() local [all...] |
H A D | ecx_meth.c | 31 static int ecx_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in ecx_pub_encode() argument 33 const ECX_KEY *ecxkey = pkey->pkey.ecx; in ecx_pub_encode() 41 penc = OPENSSL_memdup(ecxkey->pubkey, KEYLEN(pkey)); in ecx_pub_encode() 47 if (!X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in ecx_pub_encode() 48 V_ASN1_UNDEF, NULL, penc, KEYLEN(pkey))) { in ecx_pub_encode() 56 static int ecx_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in ecx_pub_decode() argument 66 ecx = ossl_ecx_key_op(palg, p, pklen, pkey->ameth->pkey_id, in ecx_pub_decode() 70 EVP_PKEY_assign(pkey, pkey in ecx_pub_decode() 86 ecx_priv_decode_ex(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8, OSSL_LIB_CTX *libctx, const char *propq) ecx_priv_decode_ex() argument 100 ecx_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) ecx_priv_encode() argument 132 ecx_size(const EVP_PKEY *pkey) ecx_size() argument 137 ecx_bits(const EVP_PKEY *pkey) ecx_bits() argument 148 ecx_security_bits(const EVP_PKEY *pkey) ecx_security_bits() argument 157 ecx_free(EVP_PKEY *pkey) ecx_free() argument 168 ecx_key_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx, ecx_key_op_t op) ecx_key_print() argument 205 ecx_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) ecx_priv_print() argument 211 ecx_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) ecx_pub_print() argument 217 ecx_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) ecx_ctrl() argument 247 ecd_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) ecd_ctrl() argument 261 ecx_set_priv_key(EVP_PKEY *pkey, const unsigned char *priv, size_t len) ecx_set_priv_key() argument 280 ecx_set_pub_key(EVP_PKEY *pkey, const unsigned char *pub, size_t len) ecx_set_pub_key() argument 298 ecx_get_priv_key(const EVP_PKEY *pkey, unsigned char *priv, size_t *len) ecx_get_priv_key() argument 319 ecx_get_pub_key(const EVP_PKEY *pkey, unsigned char *pub, size_t *len) ecx_get_pub_key() argument 339 ecx_pkey_dirty_cnt(const EVP_PKEY *pkey) ecx_pkey_dirty_cnt() argument 390 EVP_PKEY *pkey = EVP_PKEY_CTX_get0_pkey(pctx); ecx_generic_import_from() local 532 ecd_size25519(const EVP_PKEY *pkey) ecd_size25519() argument 537 ecd_size448(const EVP_PKEY *pkey) ecd_size448() argument 542 ecd_item_verify(EVP_MD_CTX *ctx, const ASN1_ITEM *it, const void *asn, const X509_ALGOR *sigalg, const ASN1_BIT_STRING *str, EVP_PKEY *pkey) ecd_item_verify() argument 712 pkey_ecx_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) pkey_ecx_keygen() argument 936 s390x_pkey_ecx_keygen25519(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) s390x_pkey_ecx_keygen25519() argument 977 s390x_pkey_ecx_keygen448(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) s390x_pkey_ecx_keygen448() argument 1019 s390x_pkey_ecd_keygen25519(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) s390x_pkey_ecd_keygen25519() argument 1081 s390x_pkey_ecd_keygen448(EVP_PKEY_CTX *ctx, EVP_PKEY *pkey) s390x_pkey_ecd_keygen448() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/dsa/ |
H A D | dsa_ameth.c | 29 static int dsa_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in dsa_pub_decode() argument 77 EVP_PKEY_assign_DSA(pkey, dsa); in dsa_pub_decode() 87 static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in dsa_pub_encode() argument 97 dsa = pkey->pkey.dsa; in dsa_pub_encode() 98 if (pkey->save_parameters in dsa_pub_encode() 150 static int dsa_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) in dsa_priv_decode() argument 157 EVP_PKEY_assign_DSA(pkey, dsa); in dsa_priv_decode() 163 static int dsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) in dsa_priv_encode() argument 170 if (pkey in dsa_priv_encode() 218 int_dsa_size(const EVP_PKEY *pkey) int_dsa_size() argument 223 dsa_bits(const EVP_PKEY *pkey) dsa_bits() argument 228 dsa_security_bits(const EVP_PKEY *pkey) dsa_security_bits() argument 233 dsa_missing_parameters(const EVP_PKEY *pkey) dsa_missing_parameters() argument 267 int_dsa_free(EVP_PKEY *pkey) int_dsa_free() argument 320 dsa_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) dsa_param_decode() argument 333 dsa_param_encode(const EVP_PKEY *pkey, unsigned char **pder) dsa_param_encode() argument 338 dsa_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) dsa_param_print() argument 344 dsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) dsa_pub_print() argument 350 dsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) dsa_priv_print() argument 356 old_dsa_priv_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) old_dsa_priv_decode() argument 370 old_dsa_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) old_dsa_priv_encode() argument 412 dsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) dsa_pkey_ctrl() argument 424 dsa_pkey_dirty_cnt(const EVP_PKEY *pkey) dsa_pkey_dirty_cnt() argument 482 EVP_PKEY *pkey = EVP_PKEY_CTX_get0_pkey(pctx); dsa_pkey_import_from() local [all...] |
/third_party/openssl/crypto/dsa/ |
H A D | dsa_ameth.c | 29 static int dsa_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in dsa_pub_decode() argument 77 EVP_PKEY_assign_DSA(pkey, dsa); in dsa_pub_decode() 87 static int dsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in dsa_pub_encode() argument 97 dsa = pkey->pkey.dsa; in dsa_pub_encode() 98 if (pkey->save_parameters in dsa_pub_encode() 150 static int dsa_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) in dsa_priv_decode() argument 157 EVP_PKEY_assign_DSA(pkey, dsa); in dsa_priv_decode() 163 static int dsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) in dsa_priv_encode() argument 170 if (pkey in dsa_priv_encode() 218 int_dsa_size(const EVP_PKEY *pkey) int_dsa_size() argument 223 dsa_bits(const EVP_PKEY *pkey) dsa_bits() argument 228 dsa_security_bits(const EVP_PKEY *pkey) dsa_security_bits() argument 233 dsa_missing_parameters(const EVP_PKEY *pkey) dsa_missing_parameters() argument 267 int_dsa_free(EVP_PKEY *pkey) int_dsa_free() argument 320 dsa_param_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) dsa_param_decode() argument 333 dsa_param_encode(const EVP_PKEY *pkey, unsigned char **pder) dsa_param_encode() argument 338 dsa_param_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) dsa_param_print() argument 344 dsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) dsa_pub_print() argument 350 dsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) dsa_priv_print() argument 356 old_dsa_priv_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) old_dsa_priv_decode() argument 370 old_dsa_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) old_dsa_priv_encode() argument 412 dsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) dsa_pkey_ctrl() argument 424 dsa_pkey_dirty_cnt(const EVP_PKEY *pkey) dsa_pkey_dirty_cnt() argument 482 EVP_PKEY *pkey = EVP_PKEY_CTX_get0_pkey(pctx); dsa_pkey_import_from() local [all...] |
/third_party/mbedtls/programs/ |
H A D | Makefile | 38 pkey/dh_client \ 39 pkey/dh_genprime \ 40 pkey/dh_server \ 41 pkey/ecdh_curve25519 \ 42 pkey/ecdsa \ 43 pkey/gen_key \ 44 pkey/key_app \ 45 pkey/key_app_writer \ 46 pkey/mpi_demo \ 47 pkey/pk_decryp [all...] |
/third_party/node/deps/openssl/openssl/crypto/x509/ |
H A D | x_pubkey.c | 35 EVP_PKEY *pkey; member 92 EVP_PKEY_free(pubkey->pkey); 161 EVP_PKEY_free(pubkey->pkey); 162 pubkey->pkey = NULL; 175 if ((ret = x509_pubkey_decode(&pubkey->pkey, pubkey)) == -1) { 208 OSSL_DECODER_CTX_new_for_pkey(&pubkey->pkey, 300 if (a->pkey != NULL) { in X509_PUBKEY_dup() 302 pubkey->pkey = EVP_PKEY_dup(a->pkey); in X509_PUBKEY_dup() 303 if (pubkey->pkey in X509_PUBKEY_dup() 317 X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey) X509_PUBKEY_set() argument 400 EVP_PKEY *pkey; x509_pubkey_decode() local 603 EVP_PKEY *pkey; d2i_RSA_PUBKEY() local 644 EVP_PKEY *pkey; ossl_d2i_DH_PUBKEY() local 685 EVP_PKEY *pkey; ossl_d2i_DHx_PUBKEY() local 728 EVP_PKEY *pkey; d2i_DSA_PUBKEY() local 794 EVP_PKEY *pkey; d2i_EC_PUBKEY() local 838 EVP_PKEY *pkey; ossl_d2i_ED25519_PUBKEY() local 879 EVP_PKEY *pkey; ossl_d2i_ED448_PUBKEY() local 921 EVP_PKEY *pkey; ossl_d2i_X25519_PUBKEY() local 963 EVP_PKEY *pkey; ossl_d2i_X448_PUBKEY() local [all...] |
/third_party/openssl/crypto/x509/ |
H A D | x_pubkey.c | 35 EVP_PKEY *pkey; member 92 EVP_PKEY_free(pubkey->pkey); 161 EVP_PKEY_free(pubkey->pkey); 162 pubkey->pkey = NULL; 175 if ((ret = x509_pubkey_decode(&pubkey->pkey, pubkey)) == -1) { 208 OSSL_DECODER_CTX_new_for_pkey(&pubkey->pkey, 300 if (a->pkey != NULL) { in X509_PUBKEY_dup() 302 pubkey->pkey = EVP_PKEY_dup(a->pkey); in X509_PUBKEY_dup() 303 if (pubkey->pkey in X509_PUBKEY_dup() 317 X509_PUBKEY_set(X509_PUBKEY **x, EVP_PKEY *pkey) X509_PUBKEY_set() argument 400 EVP_PKEY *pkey; x509_pubkey_decode() local 603 EVP_PKEY *pkey; d2i_RSA_PUBKEY() local 644 EVP_PKEY *pkey; ossl_d2i_DH_PUBKEY() local 685 EVP_PKEY *pkey; ossl_d2i_DHx_PUBKEY() local 728 EVP_PKEY *pkey; d2i_DSA_PUBKEY() local 794 EVP_PKEY *pkey; d2i_EC_PUBKEY() local 838 EVP_PKEY *pkey; ossl_d2i_ED25519_PUBKEY() local 879 EVP_PKEY *pkey; ossl_d2i_ED448_PUBKEY() local 921 EVP_PKEY *pkey; ossl_d2i_X25519_PUBKEY() local 963 EVP_PKEY *pkey; ossl_d2i_X448_PUBKEY() local [all...] |
/third_party/node/deps/openssl/openssl/crypto/pkcs12/ |
H A D | p12_kiss.c | 18 EVP_PKEY **pkey, STACK_OF(X509) *ocerts); 21 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts); 24 EVP_PKEY **pkey, STACK_OF(X509) *ocerts); 29 * should point to a valid STACK structure. pkey and/or cert may be NULL; 33 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, in PKCS12_parse() argument 39 if (pkey != NULL) in PKCS12_parse() 40 *pkey = NULL; in PKCS12_parse() 82 if (!parse_pk12(p12, pass, -1, pkey, ocerts)) { in PKCS12_parse() 93 if (pkey != NULL && *pkey ! in PKCS12_parse() 136 parse_pk12(PKCS12 *p12, const char *pass, int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts) parse_pk12() argument 184 parse_bag(PKCS12_SAFEBAG *bag, const char *pass, int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts) parse_bag() argument [all...] |
/third_party/openssl/crypto/pkcs12/ |
H A D | p12_kiss.c | 18 EVP_PKEY **pkey, STACK_OF(X509) *ocerts); 21 int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts); 24 EVP_PKEY **pkey, STACK_OF(X509) *ocerts); 29 * should point to a valid STACK structure. pkey and/or cert may be NULL; 33 int PKCS12_parse(PKCS12 *p12, const char *pass, EVP_PKEY **pkey, X509 **cert, in PKCS12_parse() argument 39 if (pkey != NULL) in PKCS12_parse() 40 *pkey = NULL; in PKCS12_parse() 82 if (!parse_pk12(p12, pass, -1, pkey, ocerts)) { in PKCS12_parse() 93 if (pkey != NULL && *pkey ! in PKCS12_parse() 136 parse_pk12(PKCS12 *p12, const char *pass, int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts) parse_pk12() argument 184 parse_bag(PKCS12_SAFEBAG *bag, const char *pass, int passlen, EVP_PKEY **pkey, STACK_OF(X509) *ocerts) parse_bag() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/rsa/ |
H A D | rsa_ameth.c | 28 /* Set any parameters associated with pkey */ 29 static int rsa_param_encode(const EVP_PKEY *pkey, in rsa_param_encode() argument 32 const RSA *rsa = pkey->pkey.rsa; in rsa_param_encode() 53 static int rsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in rsa_pub_encode() argument 60 if (!rsa_param_encode(pkey, &str, &strtype)) in rsa_pub_encode() 62 penclen = i2d_RSAPublicKey(pkey->pkey.rsa, &penc); in rsa_pub_encode() 67 if (X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in rsa_pub_encode() 76 static int rsa_pub_decode(EVP_PKEY *pkey, cons argument 129 old_rsa_priv_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) old_rsa_priv_decode() argument 140 old_rsa_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) old_rsa_priv_encode() argument 145 rsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) rsa_priv_encode() argument 173 rsa_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) rsa_priv_decode() argument 185 int_rsa_size(const EVP_PKEY *pkey) int_rsa_size() argument 190 rsa_bits(const EVP_PKEY *pkey) rsa_bits() argument 195 rsa_security_bits(const EVP_PKEY *pkey) rsa_security_bits() argument 200 int_rsa_free(EVP_PKEY *pkey) int_rsa_free() argument 300 pkey_rsa_print(BIO *bp, const EVP_PKEY *pkey, int off, int priv) pkey_rsa_print() argument 389 rsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) rsa_pub_print() argument 395 rsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) rsa_priv_print() argument 420 rsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) rsa_pkey_ctrl() argument 523 ossl_rsa_pss_to_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pkctx, const X509_ALGOR *sigalg, EVP_PKEY *pkey) ossl_rsa_pss_to_ctx() argument 615 rsa_item_verify(EVP_MD_CTX *ctx, const ASN1_ITEM *it, const void *asn, const X509_ALGOR *sigalg, const ASN1_BIT_STRING *sig, EVP_PKEY *pkey) rsa_item_verify() argument 758 rsa_pkey_check(const EVP_PKEY *pkey) rsa_pkey_check() argument 763 rsa_pkey_dirty_cnt(const EVP_PKEY *pkey) rsa_pkey_dirty_cnt() argument 832 EVP_PKEY *pkey = EVP_PKEY_CTX_get0_pkey(pctx); rsa_int_import_from() local [all...] |
/third_party/openssl/crypto/rsa/ |
H A D | rsa_ameth.c | 28 /* Set any parameters associated with pkey */ 29 static int rsa_param_encode(const EVP_PKEY *pkey, in rsa_param_encode() argument 32 const RSA *rsa = pkey->pkey.rsa; in rsa_param_encode() 53 static int rsa_pub_encode(X509_PUBKEY *pk, const EVP_PKEY *pkey) in rsa_pub_encode() argument 60 if (!rsa_param_encode(pkey, &str, &strtype)) in rsa_pub_encode() 62 penclen = i2d_RSAPublicKey(pkey->pkey.rsa, &penc); in rsa_pub_encode() 65 if (X509_PUBKEY_set0_param(pk, OBJ_nid2obj(pkey->ameth->pkey_id), in rsa_pub_encode() 73 static int rsa_pub_decode(EVP_PKEY *pkey, cons argument 126 old_rsa_priv_decode(EVP_PKEY *pkey, const unsigned char **pder, int derlen) old_rsa_priv_decode() argument 137 old_rsa_priv_encode(const EVP_PKEY *pkey, unsigned char **pder) old_rsa_priv_encode() argument 142 rsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey) rsa_priv_encode() argument 170 rsa_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8) rsa_priv_decode() argument 182 int_rsa_size(const EVP_PKEY *pkey) int_rsa_size() argument 187 rsa_bits(const EVP_PKEY *pkey) rsa_bits() argument 192 rsa_security_bits(const EVP_PKEY *pkey) rsa_security_bits() argument 197 int_rsa_free(EVP_PKEY *pkey) int_rsa_free() argument 297 pkey_rsa_print(BIO *bp, const EVP_PKEY *pkey, int off, int priv) pkey_rsa_print() argument 386 rsa_pub_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) rsa_pub_print() argument 392 rsa_priv_print(BIO *bp, const EVP_PKEY *pkey, int indent, ASN1_PCTX *ctx) rsa_priv_print() argument 417 rsa_pkey_ctrl(EVP_PKEY *pkey, int op, long arg1, void *arg2) rsa_pkey_ctrl() argument 520 ossl_rsa_pss_to_ctx(EVP_MD_CTX *ctx, EVP_PKEY_CTX *pkctx, const X509_ALGOR *sigalg, EVP_PKEY *pkey) ossl_rsa_pss_to_ctx() argument 612 rsa_item_verify(EVP_MD_CTX *ctx, const ASN1_ITEM *it, const void *asn, const X509_ALGOR *sigalg, const ASN1_BIT_STRING *sig, EVP_PKEY *pkey) rsa_item_verify() argument 723 rsa_pkey_check(const EVP_PKEY *pkey) rsa_pkey_check() argument 728 rsa_pkey_dirty_cnt(const EVP_PKEY *pkey) rsa_pkey_dirty_cnt() argument 797 EVP_PKEY *pkey = EVP_PKEY_CTX_get0_pkey(pctx); rsa_int_import_from() local [all...] |
/third_party/openssl/demos/pkey/ |
H A D | EVP_PKEY_RSA_keygen.c | 38 EVP_PKEY *pkey = NULL; in generate_rsa_key_long() local 87 if (EVP_PKEY_generate(genctx, &pkey) <= 0) { in generate_rsa_key_long() 92 /* pkey is now set to an object representing the generated key pair. */ in generate_rsa_key_long() 96 return pkey; in generate_rsa_key_long() 110 EVP_PKEY *pkey = NULL; in generate_rsa_key_short() local 113 pkey = EVP_PKEY_Q_keygen(libctx, propq, "RSA", (size_t)bits); in generate_rsa_key_short() 115 if (pkey == NULL) in generate_rsa_key_short() 118 return pkey; in generate_rsa_key_short() 124 static int dump_key(const EVP_PKEY *pkey) in dump_key() argument 137 if (EVP_PKEY_get_bn_param(pkey, OSSL_PKEY_PARAM_RSA_ in dump_key() 244 EVP_PKEY *pkey = NULL; main() local [all...] |
/third_party/node/deps/openssl/openssl/crypto/engine/ |
H A D | eng_pkey.c | 59 EVP_PKEY *pkey; in ENGINE_load_private_key() local 77 pkey = e->load_privkey(e, key_id, ui_method, callback_data); in ENGINE_load_private_key() 78 if (pkey == NULL) { in ENGINE_load_private_key() 83 switch (EVP_PKEY_get_id(pkey)) { in ENGINE_load_private_key() 86 RSA *rsa = EVP_PKEY_get1_RSA(pkey); in ENGINE_load_private_key() 87 EVP_PKEY_set1_RSA(pkey, rsa); in ENGINE_load_private_key() 95 EC_KEY *ec = EVP_PKEY_get1_EC_KEY(pkey); in ENGINE_load_private_key() 96 EVP_PKEY_set1_EC_KEY(pkey, ec); in ENGINE_load_private_key() 104 DSA *dsa = EVP_PKEY_get1_DSA(pkey); in ENGINE_load_private_key() 105 EVP_PKEY_set1_DSA(pkey, ds in ENGINE_load_private_key() 130 EVP_PKEY *pkey; ENGINE_load_public_key() local [all...] |