Home
last modified time | relevance | path

Searched refs:key_id (Results 1 - 25 of 279) sorted by relevance

12345678910>>...12

/kernel/linux/linux-5.10/lib/
H A Dtest_objagg.c18 static int key_id_index(unsigned int key_id) in key_id_index() argument
20 if (key_id >= NUM_KEYS) { in key_id_index()
24 return key_id; in key_id_index()
48 unsigned int key_id) in world_obj_get()
54 key.id = key_id; in world_obj_get()
57 pr_err("Key %u: Failed to get object.\n", key_id); in world_obj_get()
60 if (!world->key_refs[key_id_index(key_id)]) { in world_obj_get()
61 world->objagg_objs[key_id_index(key_id)] = objagg_obj; in world_obj_get()
62 } else if (world->objagg_objs[key_id_index(key_id)] != objagg_obj) { in world_obj_get()
64 key_id); in world_obj_get()
46 world_obj_get(struct world *world, struct objagg *objagg, unsigned int key_id) world_obj_get() argument
76 world_obj_put(struct world *world, struct objagg *objagg, unsigned int key_id) world_obj_put() argument
151 test_nodelta_obj_get(struct world *world, struct objagg *objagg, unsigned int key_id, bool should_create_root) test_nodelta_obj_get() argument
204 test_nodelta_obj_put(struct world *world, struct objagg *objagg, unsigned int key_id, bool should_destroy_root) test_nodelta_obj_put() argument
403 unsigned int key_id; global() member
412 unsigned int key_id; global() member
566 unsigned int key_id = action_item->key_id; check_expect() local
630 unsigned int key_id; obj_to_key_id() local
764 unsigned int key_id = action_item->key_id; test_delta_action_item() local
[all...]
/kernel/linux/linux-6.6/lib/
H A Dtest_objagg.c18 static int key_id_index(unsigned int key_id) in key_id_index() argument
20 if (key_id >= NUM_KEYS) { in key_id_index()
24 return key_id; in key_id_index()
48 unsigned int key_id) in world_obj_get()
54 key.id = key_id; in world_obj_get()
57 pr_err("Key %u: Failed to get object.\n", key_id); in world_obj_get()
60 if (!world->key_refs[key_id_index(key_id)]) { in world_obj_get()
61 world->objagg_objs[key_id_index(key_id)] = objagg_obj; in world_obj_get()
62 } else if (world->objagg_objs[key_id_index(key_id)] != objagg_obj) { in world_obj_get()
64 key_id); in world_obj_get()
46 world_obj_get(struct world *world, struct objagg *objagg, unsigned int key_id) world_obj_get() argument
76 world_obj_put(struct world *world, struct objagg *objagg, unsigned int key_id) world_obj_put() argument
151 test_nodelta_obj_get(struct world *world, struct objagg *objagg, unsigned int key_id, bool should_create_root) test_nodelta_obj_get() argument
204 test_nodelta_obj_put(struct world *world, struct objagg *objagg, unsigned int key_id, bool should_destroy_root) test_nodelta_obj_put() argument
403 unsigned int key_id; global() member
412 unsigned int key_id; global() member
566 unsigned int key_id = action_item->key_id; check_expect() local
630 unsigned int key_id; obj_to_key_id() local
764 unsigned int key_id = action_item->key_id; test_delta_action_item() local
[all...]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant_lib/
H A Dwpa_evp_key.c122 static EVP_PKEY *wrap_rsa(const char *key_id, const RSA *public_rsa) in wrap_rsa() argument
158 if (strlen(key_id) < sizeof(g_key_uri)) in wrap_rsa()
159 os_memcpy(g_key_uri, key_id, strlen(key_id)); in wrap_rsa()
163 static EVP_PKEY *wrap_ec(const char *key_id, EC_KEY *public_ec) in wrap_ec() argument
182 if (strlen(key_id) < sizeof(g_key_uri)) in wrap_ec()
183 os_memcpy(g_key_uri, key_id, strlen(key_id)); in wrap_ec()
187 static EVP_PKEY* get_pubkey(const char *key_id) in get_pubkey() argument
196 BIO* bio = BIO_from_cm(key_id, certificat in get_pubkey()
218 GET_EVP_PKEY(const char *key_id) GET_EVP_PKEY() argument
262 BIO_from_cm(const char *key_id, struct Credential certificate) BIO_from_cm() argument
[all...]
/third_party/libcoap/src/oscore/
H A Doscore.c151 cose->key_id.s, in oscore_prepare_e_aad()
152 cose->key_id.length); in oscore_prepare_e_aad()
218 if (cose->key_id.s != NULL) { in oscore_encode_option_value()
220 if (cose->key_id.length) { in oscore_encode_option_value()
221 memcpy(&(option_buffer[offset]), cose->key_id.s, cose->key_id.length); in oscore_encode_option_value()
222 offset += cose->key_id.length; in oscore_encode_option_value()
223 assert(rem_space > cose->key_id.length); in oscore_encode_option_value()
224 rem_space -= cose->key_id.length; in oscore_encode_option_value()
294 coap_bin_const_t key_id; in oscore_decode_option_value() local
[all...]
/kernel/linux/linux-5.10/net/sctp/
H A Dauth.c79 struct sctp_shared_key *sctp_auth_shkey_create(__u16 key_id, gfp_t gfp) in sctp_auth_shkey_create() argument
90 new->key_id = key_id; in sctp_auth_shkey_create()
363 new = sctp_auth_shkey_create(sh_key->key_id, gfp); in sctp_auth_asoc_copy_shkeys()
395 /* If the key_id is non-zero and we couldn't find an in sctp_auth_asoc_init_active_key()
398 * For key_id 0, endpoint pair shared key is a NULL key. in sctp_auth_asoc_init_active_key()
428 /* Find the endpoint pair shared key based on the key_id */
431 __u16 key_id) in sctp_auth_get_shkey()
437 if (key->key_id == key_id) { in sctp_auth_get_shkey()
429 sctp_auth_get_shkey( const struct sctp_association *asoc, __u16 key_id) sctp_auth_get_shkey() argument
713 __u16 key_id, hmac_id; sctp_auth_calculate_hmac() local
880 sctp_auth_set_active_key(struct sctp_endpoint *ep, struct sctp_association *asoc, __u16 key_id) sctp_auth_set_active_key() argument
923 sctp_auth_del_key_id(struct sctp_endpoint *ep, struct sctp_association *asoc, __u16 key_id) sctp_auth_del_key_id() argument
967 sctp_auth_deact_key_id(struct sctp_endpoint *ep, struct sctp_association *asoc, __u16 key_id) sctp_auth_deact_key_id() argument
[all...]
/kernel/linux/linux-6.6/net/sctp/
H A Dauth.c79 struct sctp_shared_key *sctp_auth_shkey_create(__u16 key_id, gfp_t gfp) in sctp_auth_shkey_create() argument
90 new->key_id = key_id; in sctp_auth_shkey_create()
363 new = sctp_auth_shkey_create(sh_key->key_id, gfp); in sctp_auth_asoc_copy_shkeys()
395 /* If the key_id is non-zero and we couldn't find an in sctp_auth_asoc_init_active_key()
398 * For key_id 0, endpoint pair shared key is a NULL key. in sctp_auth_asoc_init_active_key()
428 /* Find the endpoint pair shared key based on the key_id */
431 __u16 key_id) in sctp_auth_get_shkey()
437 if (key->key_id == key_id) { in sctp_auth_get_shkey()
429 sctp_auth_get_shkey( const struct sctp_association *asoc, __u16 key_id) sctp_auth_get_shkey() argument
713 __u16 key_id, hmac_id; sctp_auth_calculate_hmac() local
880 sctp_auth_set_active_key(struct sctp_endpoint *ep, struct sctp_association *asoc, __u16 key_id) sctp_auth_set_active_key() argument
923 sctp_auth_del_key_id(struct sctp_endpoint *ep, struct sctp_association *asoc, __u16 key_id) sctp_auth_del_key_id() argument
967 sctp_auth_deact_key_id(struct sctp_endpoint *ep, struct sctp_association *asoc, __u16 key_id) sctp_auth_deact_key_id() argument
[all...]
/third_party/ltp/testcases/kernel/syscalls/keyctl/
H A Dkeyctl07.c20 key_serial_t key_id; in try_to_read_negative_key() local
50 &key_id, sizeof(key_id))); in try_to_read_negative_key()
53 if (TST_RET != sizeof(key_id)) { in try_to_read_negative_key()
55 TST_RET, sizeof(key_id)); in try_to_read_negative_key()
63 TEST(keyctl(KEYCTL_READ, key_id, buffer, sizeof(buffer))); in try_to_read_negative_key()
/third_party/mbedtls/library/
H A Dpk_wrap.c72 mbedtls_svc_key_id_t key_id = MBEDTLS_SVC_KEY_ID_INIT; in rsa_verify_wrap() local
107 &key_id); in rsa_verify_wrap()
113 status = psa_verify_hash(key_id, psa_alg_md, hash, hash_len, in rsa_verify_wrap()
122 status = psa_destroy_key(key_id); in rsa_verify_wrap()
176 mbedtls_svc_key_id_t key_id = MBEDTLS_SVC_KEY_ID_INIT; in mbedtls_pk_psa_rsa_sign_ext() local
205 &key_id); in mbedtls_pk_psa_rsa_sign_ext()
210 status = psa_sign_hash(key_id, alg, hash, hash_len, in mbedtls_pk_psa_rsa_sign_ext()
221 status = psa_destroy_key(key_id); in mbedtls_pk_psa_rsa_sign_ext()
287 mbedtls_svc_key_id_t key_id = MBEDTLS_SVC_KEY_ID_INIT; in rsa_decrypt_wrap() local
318 &key_id); in rsa_decrypt_wrap()
370 mbedtls_svc_key_id_t key_id = MBEDTLS_SVC_KEY_ID_INIT; rsa_encrypt_wrap() local
545 mbedtls_svc_key_id_t key_id = MBEDTLS_SVC_KEY_ID_INIT; ecdsa_verify_psa() local
696 ecdsa_sign_psa(mbedtls_svc_key_id_t key_id, mbedtls_md_type_t md_alg, const unsigned char *hash, size_t hash_len, unsigned char *sig, size_t sig_size, size_t *sig_len) ecdsa_sign_psa() argument
760 mbedtls_svc_key_id_t key_id = MBEDTLS_SVC_KEY_ID_INIT; ecdsa_sign_wrap() local
938 mbedtls_svc_key_id_t key_id = prv->priv_id; eckey_check_pair_psa() local
961 mbedtls_svc_key_id_t key_id = MBEDTLS_SVC_KEY_ID_INIT; eckey_check_pair_psa() local
[all...]
H A Dpk_ecc.c111 mbedtls_svc_key_id_t key_id = MBEDTLS_SVC_KEY_ID_INIT; in mbedtls_pk_ecc_set_pubkey_from_prv()
115 status = psa_import_key(&key_attr, prv, prv_len, &key_id); in mbedtls_pk_ecc_set_pubkey_from_prv()
123 status = psa_export_public_key(key_id, pub, sizeof(pub), &pub_len); in mbedtls_pk_ecc_set_pubkey_from_prv()
124 psa_status_t destruction_status = psa_destroy_key(key_id); in mbedtls_pk_ecc_set_pubkey_from_prv()
227 mbedtls_svc_key_id_t key_id = MBEDTLS_SVC_KEY_ID_INIT; in mbedtls_pk_ecc_set_pubkey() local
235 &key_id) != PSA_SUCCESS) || in mbedtls_pk_ecc_set_pubkey()
236 (psa_destroy_key(key_id) != PSA_SUCCESS)) { in mbedtls_pk_ecc_set_pubkey()
H A Dpk.c647 mbedtls_svc_key_id_t *key_id) in import_pair_into_psa()
668 key_id)); in import_pair_into_psa()
702 return copy_into_psa(pk->priv_id, attributes, key_id); in import_pair_into_psa()
722 key_id)); in import_pair_into_psa()
731 return copy_into_psa(pk->priv_id, attributes, key_id); in import_pair_into_psa()
741 mbedtls_svc_key_id_t *key_id) in import_public_into_psa()
839 key_id)); in import_public_into_psa()
844 mbedtls_svc_key_id_t *key_id) in mbedtls_pk_import_into_psa()
848 *key_id = MBEDTLS_SVC_KEY_ID_INIT; in mbedtls_pk_import_into_psa()
858 return import_public_into_psa(pk, attributes, key_id); in mbedtls_pk_import_into_psa()
645 import_pair_into_psa(const mbedtls_pk_context *pk, const psa_key_attributes_t *attributes, mbedtls_svc_key_id_t *key_id) import_pair_into_psa() argument
739 import_public_into_psa(const mbedtls_pk_context *pk, const psa_key_attributes_t *attributes, mbedtls_svc_key_id_t *key_id) import_public_into_psa() argument
842 mbedtls_pk_import_into_psa(const mbedtls_pk_context *pk, const psa_key_attributes_t *attributes, mbedtls_svc_key_id_t *key_id) mbedtls_pk_import_into_psa() argument
864 copy_from_psa(mbedtls_svc_key_id_t key_id, mbedtls_pk_context *pk, int public_only) copy_from_psa() argument
981 mbedtls_pk_copy_from_psa(mbedtls_svc_key_id_t key_id, mbedtls_pk_context *pk) mbedtls_pk_copy_from_psa() argument
987 mbedtls_pk_copy_public_from_psa(mbedtls_svc_key_id_t key_id, mbedtls_pk_context *pk) mbedtls_pk_copy_public_from_psa() argument
1161 mbedtls_svc_key_id_t key_id = MBEDTLS_SVC_KEY_ID_INIT; mbedtls_pk_verify_ext() local
[all...]
H A Dpsa_crypto_slot_management.h35 * \param key_id Key identifier to test.
42 static inline int psa_key_id_is_volatile(psa_key_id_t key_id) in psa_key_id_is_volatile() argument
44 return (key_id >= PSA_KEY_ID_VOLATILE_MIN) && in psa_key_id_is_volatile()
45 (key_id <= PSA_KEY_ID_VOLATILE_MAX); in psa_key_id_is_volatile()
/third_party/mbedtls/tests/include/test/
H A Dpsa_crypto_helpers.h51 int mbedtls_test_uses_key_id(mbedtls_svc_key_id_t key_id);
88 * \param key_id The PSA key identifier to record.
90 #define TEST_USES_KEY_ID(key_id) \
91 TEST_ASSERT(mbedtls_test_uses_key_id(key_id))
95 #define TEST_USES_KEY_ID(key_id) ((void) (key_id))
/kernel/linux/linux-5.10/include/net/sctp/
H A Dauth.h52 __u16 key_id; member
71 struct sctp_shared_key *sctp_auth_shkey_create(__u16 key_id, gfp_t gfp);
76 __u16 key_id);
105 struct sctp_association *asoc, __u16 key_id);
107 struct sctp_association *asoc, __u16 key_id);
109 struct sctp_association *asoc, __u16 key_id);
/kernel/linux/linux-6.6/include/net/sctp/
H A Dauth.h52 __u16 key_id; member
71 struct sctp_shared_key *sctp_auth_shkey_create(__u16 key_id, gfp_t gfp);
76 __u16 key_id);
105 struct sctp_association *asoc, __u16 key_id);
107 struct sctp_association *asoc, __u16 key_id);
109 struct sctp_association *asoc, __u16 key_id);
/kernel/linux/linux-5.10/include/net/
H A Dflow_dissector.h294 enum flow_dissector_key_id key_id; member
358 enum flow_dissector_key_id key_id) in dissector_uses_key()
360 return flow_dissector->used_keys & (1 << key_id); in dissector_uses_key()
364 enum flow_dissector_key_id key_id, in skb_flow_dissector_target()
367 return ((char *)target_container) + flow_dissector->offset[key_id]; in skb_flow_dissector_target()
357 dissector_uses_key(const struct flow_dissector *flow_dissector, enum flow_dissector_key_id key_id) dissector_uses_key() argument
363 skb_flow_dissector_target(struct flow_dissector *flow_dissector, enum flow_dissector_key_id key_id, void *target_container) skb_flow_dissector_target() argument
/third_party/ffmpeg/libavutil/
H A Dencryption_info.c32 // u8[key_id_size] key_id
47 info->key_id = av_mallocz(key_id_size); in av_encryption_info_alloc()
55 if (!info->key_id || !info->iv || (!info->subsamples && subsample_count)) { in av_encryption_info_alloc()
75 memcpy(ret->key_id, info->key_id, info->key_id_size); in av_encryption_info_clone()
83 av_free(info->key_id); in av_encryption_info_free()
112 memcpy(info->key_id, buffer + 24, key_id_size); in av_encryption_info_get_side_data()
149 memcpy(cur_buffer, info->key_id, info->key_id_size); in av_encryption_info_add_side_data()
194 (info->iv_size == 0) || (info->subsample_count > AV_DRM_MAX_SUB_SAMPLE_NUM) || (info->key_id == NULL) || in av_encryption_info_add_side_data_ex()
206 memcpy(cenc_info->key_id, inf in av_encryption_info_add_side_data_ex()
[all...]
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dktls_txrx.c25 u32 key_id, u32 resync_tcp_sn) in fill_static_params()
51 MLX5_SET(tls_static_params, ctx, dek_index, key_id); in fill_static_params()
58 u32 tis_tir_num, u32 key_id, u32 resync_tcp_sn, in mlx5e_ktls_build_static_params()
78 fill_static_params(&wqe->params, info, key_id, resync_tcp_sn); in mlx5e_ktls_build_static_params()
23 fill_static_params(struct mlx5_wqe_tls_static_params_seg *params, struct tls12_crypto_info_aes_gcm_128 *info, u32 key_id, u32 resync_tcp_sn) fill_static_params() argument
55 mlx5e_ktls_build_static_params(struct mlx5e_set_tls_static_params_wqe *wqe, u16 pc, u32 sqn, struct tls12_crypto_info_aes_gcm_128 *info, u32 tis_tir_num, u32 key_id, u32 resync_tcp_sn, bool fence, enum tls_offload_ctx_dir direction) mlx5e_ktls_build_static_params() argument
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/en_accel/
H A Dktls_txrx.c25 u32 key_id, u32 resync_tcp_sn) in fill_static_params()
70 MLX5_SET(tls_static_params, ctx, dek_index, key_id); in fill_static_params()
77 u32 tis_tir_num, u32 key_id, u32 resync_tcp_sn, in mlx5e_ktls_build_static_params()
97 fill_static_params(&wqe->params, crypto_info, key_id, resync_tcp_sn); in mlx5e_ktls_build_static_params()
23 fill_static_params(struct mlx5_wqe_tls_static_params_seg *params, union mlx5e_crypto_info *crypto_info, u32 key_id, u32 resync_tcp_sn) fill_static_params() argument
74 mlx5e_ktls_build_static_params(struct mlx5e_set_tls_static_params_wqe *wqe, u16 pc, u32 sqn, union mlx5e_crypto_info *crypto_info, u32 tis_tir_num, u32 key_id, u32 resync_tcp_sn, bool fence, enum tls_offload_ctx_dir direction) mlx5e_ktls_build_static_params() argument
/third_party/mbedtls/tests/src/
H A Dpsa_crypto_helpers.c27 int mbedtls_test_uses_key_id(mbedtls_svc_key_id_t key_id) in mbedtls_test_uses_key_id() argument
30 if (MBEDTLS_SVC_KEY_ID_GET_KEY_ID(key_id) > in mbedtls_test_uses_key_id()
36 if (mbedtls_svc_key_id_equal(key_id, key_ids_used_in_test[i])) { in mbedtls_test_uses_key_id()
43 key_ids_used_in_test[num_key_ids_used] = key_id; in mbedtls_test_uses_key_id()
/third_party/node/deps/openssl/openssl/apps/lib/
H A Dengine.c105 char *make_engine_uri(ENGINE *e, const char *key_id, const char *desc) in make_engine_uri() argument
112 } else if (key_id == NULL) { in make_engine_uri()
120 + strlen(key_id) in make_engine_uri()
129 OPENSSL_strlcat(new_uri, key_id, uri_sz); in make_engine_uri()
/third_party/node/deps/openssl/openssl/crypto/engine/
H A Deng_pkey.c56 EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, in ENGINE_load_private_key() argument
77 pkey = e->load_privkey(e, key_id, ui_method, callback_data); in ENGINE_load_private_key()
127 EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id, in ENGINE_load_public_key() argument
148 pkey = e->load_pubkey(e, key_id, ui_method, callback_data); in ENGINE_load_public_key()
/third_party/openssl/crypto/engine/
H A Deng_pkey.c56 EVP_PKEY *ENGINE_load_private_key(ENGINE *e, const char *key_id, in ENGINE_load_private_key() argument
77 pkey = e->load_privkey(e, key_id, ui_method, callback_data); in ENGINE_load_private_key()
85 EVP_PKEY *ENGINE_load_public_key(ENGINE *e, const char *key_id, in ENGINE_load_public_key() argument
106 pkey = e->load_pubkey(e, key_id, ui_method, callback_data); in ENGINE_load_public_key()
/third_party/openssl/apps/lib/
H A Dengine.c105 char *make_engine_uri(ENGINE *e, const char *key_id, const char *desc) in make_engine_uri() argument
112 } else if (key_id == NULL) { in make_engine_uri()
120 + strlen(key_id) in make_engine_uri()
129 OPENSSL_strlcat(new_uri, key_id, uri_sz); in make_engine_uri()
/kernel/linux/linux-6.6/include/net/
H A Dflow_dissector.h376 enum flow_dissector_key_id key_id; member
441 enum flow_dissector_key_id key_id) in dissector_uses_key()
443 return flow_dissector->used_keys & (1ULL << key_id); in dissector_uses_key()
447 enum flow_dissector_key_id key_id, in skb_flow_dissector_target()
450 return ((char *)target_container) + flow_dissector->offset[key_id]; in skb_flow_dissector_target()
440 dissector_uses_key(const struct flow_dissector *flow_dissector, enum flow_dissector_key_id key_id) dissector_uses_key() argument
446 skb_flow_dissector_target(struct flow_dissector *flow_dissector, enum flow_dissector_key_id key_id, void *target_container) skb_flow_dissector_target() argument
/third_party/mesa3d/src/util/tests/hash_table/
H A Dclear.c35 static uint32_t key_id(const void *key) in key_id() function
87 assert(key_id(entry->key) < SIZE); in main()
101 assert(key_id(entry->key) < SIZE); in main()

Completed in 32 milliseconds

12345678910>>...12