/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...] |
/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...] |
/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...] |
/kernel/linux/linux-5.10/arch/powerpc/include/asm/ |
H A D | pkeys.h | 33 static inline u64 pkey_to_vmflag_bits(u16 pkey) in pkey_to_vmflag_bits() argument 35 return (((u64)pkey << VM_PKEY_SHIFT) & ARCH_VM_PKEY_FLAGS); in pkey_to_vmflag_bits() 50 #define pkey_alloc_mask(pkey) (0x1 << pkey) 54 #define __mm_pkey_allocated(mm, pkey) { \ 55 mm_pkey_allocation_map(mm) |= pkey_alloc_mask(pkey); \ 58 #define __mm_pkey_free(mm, pkey) { \ 59 mm_pkey_allocation_map(mm) &= ~pkey_alloc_mask(pkey); \ 62 #define __mm_pkey_is_allocated(mm, pkey) \ 63 (mm_pkey_allocation_map(mm) & pkey_alloc_mask(pkey)) 68 mm_pkey_is_allocated(struct mm_struct *mm, int pkey) mm_pkey_is_allocated() argument 110 mm_pkey_free(struct mm_struct *mm, int pkey) mm_pkey_free() argument 130 arch_override_mprotect_pkey(struct vm_area_struct *vma, int prot, int pkey) arch_override_mprotect_pkey() argument 148 arch_set_user_pkey_access(struct task_struct *tsk, int pkey, unsigned long init_val) arch_set_user_pkey_access() argument [all...] |
/kernel/linux/linux-6.6/arch/powerpc/include/asm/ |
H A D | pkeys.h | 33 static inline u64 pkey_to_vmflag_bits(u16 pkey) in pkey_to_vmflag_bits() argument 35 return (((u64)pkey << VM_PKEY_SHIFT) & ARCH_VM_PKEY_FLAGS); in pkey_to_vmflag_bits() 50 #define pkey_alloc_mask(pkey) (0x1 << pkey) 54 #define __mm_pkey_allocated(mm, pkey) { \ 55 mm_pkey_allocation_map(mm) |= pkey_alloc_mask(pkey); \ 58 #define __mm_pkey_free(mm, pkey) { \ 59 mm_pkey_allocation_map(mm) &= ~pkey_alloc_mask(pkey); \ 62 #define __mm_pkey_is_allocated(mm, pkey) \ 63 (mm_pkey_allocation_map(mm) & pkey_alloc_mask(pkey)) 68 mm_pkey_is_allocated(struct mm_struct *mm, int pkey) mm_pkey_is_allocated() argument 110 mm_pkey_free(struct mm_struct *mm, int pkey) mm_pkey_free() argument 130 arch_override_mprotect_pkey(struct vm_area_struct *vma, int prot, int pkey) arch_override_mprotect_pkey() argument 148 arch_set_user_pkey_access(struct task_struct *tsk, int pkey, unsigned long init_val) arch_set_user_pkey_access() 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...] |
/base/security/huks/test/unittest/huks_standard_test/interface_inner_test/alg_module_test/src/ |
H A D | openssl_rsa_helper.c | 29 int32_t SaveRsaKeyToHksBlob(EVP_PKEY *pkey, const uint32_t keySize, struct HksBlob *key) in SaveRsaKeyToHksBlob() argument 44 if (BN_bn2binpad(RSA_get0_n(EVP_PKEY_get0_RSA(pkey)), tmpBuff, keyByteLen) > 0) { in SaveRsaKeyToHksBlob() 51 if (BN_bn2binpad(RSA_get0_e(EVP_PKEY_get0_RSA(pkey)), tmpBuff, keyByteLen) > 0) { in SaveRsaKeyToHksBlob() 58 if (BN_bn2binpad(RSA_get0_d(EVP_PKEY_get0_RSA(pkey)), tmpBuff, keyByteLen) > 0) { in SaveRsaKeyToHksBlob() 88 EVP_PKEY *pkey = EVP_PKEY_new(); in GenerateRsaKey() local 89 if (pkey == NULL) { in GenerateRsaKey() 94 if (EVP_PKEY_assign_RSA(pkey, rsa) != 1) { in GenerateRsaKey() 95 EVP_PKEY_free(pkey); in GenerateRsaKey() 100 return pkey; in GenerateRsaKey() 103 bool OpensslGetx509PubKey(EVP_PKEY *pkey, struc argument 129 EVP_PKEY *pkey = d2i_PUBKEY(NULL, (const unsigned char **)&data, x509Key->size); X509ToRsaPublicKey() local 243 EVP_PKEY *pkey = EVP_PKEY_new(); EncryptRsa() local 291 EVP_PKEY *pkey = EVP_PKEY_new(); DecryptRsa() local 338 EVP_PKEY *pkey = NULL; InitRsaCtx() local 430 EVP_PKEY *pkey = EVP_PKEY_new(); OpensslSignRsa() local 492 EVP_PKEY *pkey = EVP_PKEY_new(); OpensslVerifyRsa() 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...] |
/kernel/linux/linux-6.6/crypto/asymmetric_keys/ |
H A D | public_key.c | 67 software_key_determine_akcipher(const struct public_key *pkey, in software_key_determine_akcipher() argument 79 if (strcmp(pkey->pkey_algo, "rsa") == 0) { in software_key_determine_akcipher() 89 pkey->pkey_algo); in software_key_determine_akcipher() 93 pkey->pkey_algo, hash_algo); in software_key_determine_akcipher() 106 } else if (strncmp(pkey->pkey_algo, "ecdsa", 5) == 0) { in software_key_determine_akcipher() 124 } else if (strcmp(pkey->pkey_algo, "sm2") == 0) { in software_key_determine_akcipher() 131 } else if (strcmp(pkey->pkey_algo, "ecrdsa") == 0) { in software_key_determine_akcipher() 143 if (strscpy(alg_name, pkey->pkey_algo, CRYPTO_MAX_ALG_NAME) < 0) in software_key_determine_akcipher() 161 struct public_key *pkey = params->key->payload.data[asym_crypto]; in software_key_query() local 168 ret = software_key_determine_akcipher(pkey, param in software_key_query() 276 const struct public_key *pkey = params->key->payload.data[asym_crypto]; software_key_eds_op() local 379 public_key_verify_signature(const struct public_key *pkey, const struct public_key_signature *sig) public_key_verify_signature() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/mm/ |
H A D | protection_keys.c | 7 * * how to set/clear bits in pkey registers (the rights register) 8 * * how to handle SEGV_PKUERR signals and extract pkey-relevant 17 * look for pkey "leaks" where it is still set on a VMA but "freed" back to the kernel 18 * do a plain mprotect() to a mprotect_pkey() area and make sure the pkey sticks 49 #include "pkey-helpers.h" 178 static u32 hw_pkey_get(int pkey, unsigned long flags) in hw_pkey_get() argument 182 dprintf1("%s(pkey=%d, flags=%lx) = %x / %d\n", in hw_pkey_get() 183 __func__, pkey, flags, 0, 0); in hw_pkey_get() 186 return (u32) get_pkey_bits(pkey_reg, pkey); in hw_pkey_get() 189 static int hw_pkey_set(int pkey, unsigne argument 210 pkey_disable_set(int pkey, int flags) pkey_disable_set() argument 251 pkey_disable_clear(int pkey, int flags) pkey_disable_clear() argument 280 pkey_write_allow(int pkey) pkey_write_allow() argument 284 pkey_write_deny(int pkey) pkey_write_deny() argument 288 pkey_access_allow(int pkey) pkey_access_allow() argument 292 pkey_access_deny(int pkey) pkey_access_deny() argument 461 sys_mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, unsigned long pkey) sys_mprotect_pkey() argument 535 sys_pkey_free(unsigned long pkey) sys_pkey_free() argument 587 mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, unsigned long pkey) mprotect_pkey() argument 696 malloc_pkey_with_mprotect(long size, int prot, u16 pkey) malloc_pkey_with_mprotect() argument 716 malloc_pkey_anon_huge(long size, int prot, u16 pkey) malloc_pkey_anon_huge() argument 797 malloc_pkey_hugetlb(long size, int prot, u16 pkey) malloc_pkey_hugetlb() argument 818 malloc_pkey_mmap_dax(long size, int prot, u16 pkey) malloc_pkey_mmap_dax() argument 853 malloc_pkey(long size, int prot, u16 pkey) malloc_pkey() argument 885 expected_pkey_fault(int pkey) expected_pkey_fault() argument 963 test_pkey_alloc_free_attach_pkey0(int *ptr, u16 pkey) test_pkey_alloc_free_attach_pkey0() argument 1015 test_read_of_write_disabled_region(int *ptr, u16 pkey) test_read_of_write_disabled_region() argument 1025 test_read_of_access_disabled_region(int *ptr, u16 pkey) test_read_of_access_disabled_region() argument 1037 test_read_of_access_disabled_region_with_page_already_mapped(int *ptr, u16 pkey) test_read_of_access_disabled_region_with_page_already_mapped() argument 1054 test_write_of_write_disabled_region_with_page_already_mapped(int *ptr, u16 pkey) test_write_of_write_disabled_region_with_page_already_mapped() argument 1065 test_write_of_write_disabled_region(int *ptr, u16 pkey) test_write_of_write_disabled_region() argument 1072 test_write_of_access_disabled_region(int *ptr, u16 pkey) test_write_of_access_disabled_region() argument 1080 test_write_of_access_disabled_region_with_page_already_mapped(int *ptr, u16 pkey) test_write_of_access_disabled_region_with_page_already_mapped() argument 1091 test_kernel_write_of_access_disabled_region(int *ptr, u16 pkey) test_kernel_write_of_access_disabled_region() argument 1103 test_kernel_write_of_write_disabled_region(int *ptr, u16 pkey) test_kernel_write_of_write_disabled_region() argument 1116 test_kernel_gup_of_access_disabled_region(int *ptr, u16 pkey) test_kernel_gup_of_access_disabled_region() argument 1138 test_kernel_gup_write_to_write_disabled_region(int *ptr, u16 pkey) test_kernel_gup_write_to_write_disabled_region() argument 1156 test_pkey_syscalls_on_non_allocated_pkey(int *ptr, u16 pkey) test_pkey_syscalls_on_non_allocated_pkey() argument 1179 test_pkey_syscalls_bad_args(int *ptr, u16 pkey) test_pkey_syscalls_bad_args() argument 1205 test_pkey_alloc_exhaust(int *ptr, u16 pkey) test_pkey_alloc_exhaust() argument 1311 test_pkey_init_state(int *ptr, u16 pkey) test_pkey_init_state() argument 1349 test_mprotect_with_pkey_0(int *ptr, u16 pkey) test_mprotect_with_pkey_0() argument 1373 test_ptrace_of_child(int *ptr, u16 pkey) test_ptrace_of_child() argument 1470 test_executing_on_unreadable_memory(int *ptr, u16 pkey) test_executing_on_unreadable_memory() argument 1497 test_implicit_mprotect_exec_only_memory(int *ptr, u16 pkey) test_implicit_mprotect_exec_only_memory() argument 1546 test_ptrace_modifies_pkru(int *ptr, u16 pkey) test_ptrace_modifies_pkru() argument 1668 test_mprotect_pkey_on_unsupported_cpu(int *ptr, u16 pkey) test_mprotect_pkey_on_unsupported_cpu() argument 1714 int pkey; run_tests_once() local [all...] |
/kernel/linux/linux-5.10/security/selinux/ |
H A D | ibpkey.c | 48 * sel_ib_pkey_hashfn - Hashing function for the pkey table 49 * @pkey: pkey number 52 * This is the hashing function for the pkey table, it returns the bucket 53 * number for the given pkey. 56 static unsigned int sel_ib_pkey_hashfn(u16 pkey) in sel_ib_pkey_hashfn() argument 58 return (pkey & (SEL_PKEY_HASH_SIZE - 1)); in sel_ib_pkey_hashfn() 62 * sel_ib_pkey_find - Search for a pkey record 67 * Search the pkey table and return the matching record. If an entry 74 struct sel_ib_pkey *pkey; in sel_ib_pkey_find() local 94 sel_ib_pkey_insert(struct sel_ib_pkey *pkey) sel_ib_pkey_insert() argument 133 struct sel_ib_pkey *pkey; sel_ib_pkey_sid_slow() local 184 struct sel_ib_pkey *pkey; sel_ib_pkey_sid() local 208 struct sel_ib_pkey *pkey, *pkey_tmp; sel_ib_pkey_flush() local [all...] |
/kernel/linux/linux-6.6/security/selinux/ |
H A D | ibpkey.c | 47 * sel_ib_pkey_hashfn - Hashing function for the pkey table 48 * @pkey: pkey number 51 * This is the hashing function for the pkey table, it returns the bucket 52 * number for the given pkey. 55 static unsigned int sel_ib_pkey_hashfn(u16 pkey) in sel_ib_pkey_hashfn() argument 57 return (pkey & (SEL_PKEY_HASH_SIZE - 1)); in sel_ib_pkey_hashfn() 61 * sel_ib_pkey_find - Search for a pkey record 66 * Search the pkey table and return the matching record. If an entry 73 struct sel_ib_pkey *pkey; in sel_ib_pkey_find() local 93 sel_ib_pkey_insert(struct sel_ib_pkey *pkey) sel_ib_pkey_insert() argument 132 struct sel_ib_pkey *pkey; sel_ib_pkey_sid_slow() local 183 struct sel_ib_pkey *pkey; sel_ib_pkey_sid() local 207 struct sel_ib_pkey *pkey, *pkey_tmp; sel_ib_pkey_flush() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | protection_keys.c | 7 * * how to set/clear bits in pkey registers (the rights register) 8 * * how to handle SEGV_PKUERR signals and extract pkey-relevant 17 * look for pkey "leaks" where it is still set on a VMA but "freed" back to the kernel 18 * do a plain mprotect() to a mprotect_pkey() area and make sure the pkey sticks 48 #include "pkey-helpers.h" 177 static u32 hw_pkey_get(int pkey, unsigned long flags) in hw_pkey_get() argument 181 dprintf1("%s(pkey=%d, flags=%lx) = %x / %d\n", in hw_pkey_get() 182 __func__, pkey, flags, 0, 0); in hw_pkey_get() 185 return (u32) get_pkey_bits(pkey_reg, pkey); in hw_pkey_get() 188 static int hw_pkey_set(int pkey, unsigne argument 209 pkey_disable_set(int pkey, int flags) pkey_disable_set() argument 250 pkey_disable_clear(int pkey, int flags) pkey_disable_clear() argument 279 pkey_write_allow(int pkey) pkey_write_allow() argument 283 pkey_write_deny(int pkey) pkey_write_deny() argument 287 pkey_access_allow(int pkey) pkey_access_allow() argument 291 pkey_access_deny(int pkey) pkey_access_deny() argument 469 sys_mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, unsigned long pkey) sys_mprotect_pkey() argument 543 sys_pkey_free(unsigned long pkey) sys_pkey_free() argument 595 mprotect_pkey(void *ptr, size_t size, unsigned long orig_prot, unsigned long pkey) mprotect_pkey() argument 704 malloc_pkey_with_mprotect(long size, int prot, u16 pkey) malloc_pkey_with_mprotect() argument 724 malloc_pkey_anon_huge(long size, int prot, u16 pkey) malloc_pkey_anon_huge() argument 805 malloc_pkey_hugetlb(long size, int prot, u16 pkey) malloc_pkey_hugetlb() argument 826 malloc_pkey_mmap_dax(long size, int prot, u16 pkey) malloc_pkey_mmap_dax() argument 861 malloc_pkey(long size, int prot, u16 pkey) malloc_pkey() argument 893 expected_pkey_fault(int pkey) expected_pkey_fault() argument 971 test_pkey_alloc_free_attach_pkey0(int *ptr, u16 pkey) test_pkey_alloc_free_attach_pkey0() argument 1023 test_read_of_write_disabled_region(int *ptr, u16 pkey) test_read_of_write_disabled_region() argument 1033 test_read_of_access_disabled_region(int *ptr, u16 pkey) test_read_of_access_disabled_region() argument 1045 test_read_of_access_disabled_region_with_page_already_mapped(int *ptr, u16 pkey) test_read_of_access_disabled_region_with_page_already_mapped() argument 1062 test_write_of_write_disabled_region_with_page_already_mapped(int *ptr, u16 pkey) test_write_of_write_disabled_region_with_page_already_mapped() argument 1073 test_write_of_write_disabled_region(int *ptr, u16 pkey) test_write_of_write_disabled_region() argument 1080 test_write_of_access_disabled_region(int *ptr, u16 pkey) test_write_of_access_disabled_region() argument 1088 test_write_of_access_disabled_region_with_page_already_mapped(int *ptr, u16 pkey) test_write_of_access_disabled_region_with_page_already_mapped() argument 1099 test_kernel_write_of_access_disabled_region(int *ptr, u16 pkey) test_kernel_write_of_access_disabled_region() argument 1111 test_kernel_write_of_write_disabled_region(int *ptr, u16 pkey) test_kernel_write_of_write_disabled_region() argument 1124 test_kernel_gup_of_access_disabled_region(int *ptr, u16 pkey) test_kernel_gup_of_access_disabled_region() argument 1146 test_kernel_gup_write_to_write_disabled_region(int *ptr, u16 pkey) test_kernel_gup_write_to_write_disabled_region() argument 1164 test_pkey_syscalls_on_non_allocated_pkey(int *ptr, u16 pkey) test_pkey_syscalls_on_non_allocated_pkey() argument 1187 test_pkey_syscalls_bad_args(int *ptr, u16 pkey) test_pkey_syscalls_bad_args() argument 1213 test_pkey_alloc_exhaust(int *ptr, u16 pkey) test_pkey_alloc_exhaust() argument 1285 test_mprotect_with_pkey_0(int *ptr, u16 pkey) test_mprotect_with_pkey_0() argument 1309 test_ptrace_of_child(int *ptr, u16 pkey) test_ptrace_of_child() argument 1406 test_executing_on_unreadable_memory(int *ptr, u16 pkey) test_executing_on_unreadable_memory() argument 1433 test_implicit_mprotect_exec_only_memory(int *ptr, u16 pkey) test_implicit_mprotect_exec_only_memory() argument 1481 test_mprotect_pkey_on_unsupported_cpu(int *ptr, u16 pkey) test_mprotect_pkey_on_unsupported_cpu() argument 1523 int pkey; run_tests_once() local [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...] |
/kernel/linux/linux-5.10/arch/x86/include/asm/ |
H A D | pkeys.h | 14 extern int arch_set_user_pkey_access(struct task_struct *tsk, int pkey, 36 int prot, int pkey); 38 int prot, int pkey) in arch_override_mprotect_pkey() 43 return __arch_override_mprotect_pkey(vma, prot, pkey); in arch_override_mprotect_pkey() 46 extern int __arch_set_user_pkey_access(struct task_struct *tsk, int pkey, 52 #define mm_set_pkey_allocated(mm, pkey) do { \ 53 mm_pkey_allocation_map(mm) |= (1U << pkey); \ 55 #define mm_set_pkey_free(mm, pkey) do { \ 56 mm_pkey_allocation_map(mm) &= ~(1U << pkey); \ 60 bool mm_pkey_is_allocated(struct mm_struct *mm, int pkey) in mm_pkey_is_allocated() argument 37 arch_override_mprotect_pkey(struct vm_area_struct *vma, int prot, int pkey) arch_override_mprotect_pkey() argument 113 mm_pkey_free(struct mm_struct *mm, int pkey) mm_pkey_free() argument [all...] |