/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant_lib/ |
H A D | wpa_evp_key.c | 122 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...] |
H A D | wpa_evp_key.h | 20 EVP_PKEY *GET_EVP_PKEY(const char *key_id);
21 BIO *BIO_from_cm(const char *key_id, struct Credential certificate);
|
/third_party/libcoap/src/oscore/ |
H A D | oscore.c | 151 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...] |
H A D | oscore_cose.c | 346 cose_encrypt0_set_key_id(cose_encrypt0_t *ptr, coap_bin_const_t *key_id) { in cose_encrypt0_set_key_id() argument 347 if (key_id) { in cose_encrypt0_set_key_id() 348 ptr->key_id = *key_id; in cose_encrypt0_set_key_id() 350 ptr->key_id.length = 0; in cose_encrypt0_set_key_id() 351 ptr->key_id.s = NULL; in cose_encrypt0_set_key_id() 357 *buffer = ptr->key_id.s; in cose_encrypt0_get_key_id() 358 return ptr->key_id.length; in cose_encrypt0_get_key_id()
|
/third_party/ltp/testcases/kernel/syscalls/keyctl/ |
H A D | keyctl07.c | 20 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 D | pk_wrap.c | 72 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 D | pk_ecc.c | 111 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 D | pk.c | 647 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 D | psa_crypto_slot_management.h | 35 * \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()
|
H A D | psa_crypto_slot_management.c | 56 psa_key_id_t key_id = MBEDTLS_SVC_KEY_ID_GET_KEY_ID(key); in psa_is_valid_key_id() local 58 if ((PSA_KEY_ID_USER_MIN <= key_id) && in psa_is_valid_key_id() 59 (key_id <= PSA_KEY_ID_USER_MAX)) { in psa_is_valid_key_id() 64 (PSA_KEY_ID_VENDOR_MIN <= key_id) && in psa_is_valid_key_id() 65 (key_id <= PSA_KEY_ID_VENDOR_MAX)) { in psa_is_valid_key_id() 84 * key with identifier key_id can only be stored in slot of index 85 * ( key_id - #PSA_KEY_ID_VOLATILE_MIN ). 110 psa_key_id_t key_id = MBEDTLS_SVC_KEY_ID_GET_KEY_ID(key); in psa_get_and_lock_key_slot_in_memory() local 114 if (psa_key_id_is_volatile(key_id)) { in psa_get_and_lock_key_slot_in_memory() 115 slot = &global_data.key_slots[key_id in psa_get_and_lock_key_slot_in_memory() [all...] |
/third_party/mbedtls/tests/include/test/ |
H A D | psa_crypto_helpers.h | 51 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))
|
/third_party/ffmpeg/libavutil/ |
H A D | encryption_info.c | 32 // 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...] |
/third_party/mbedtls/tests/src/ |
H A D | psa_crypto_helpers.c | 27 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 D | engine.c | 105 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 D | eng_pkey.c | 56 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 D | eng_pkey.c | 56 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 D | engine.c | 105 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/mesa3d/src/util/tests/hash_table/ |
H A D | clear.c | 35 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()
|
/third_party/mbedtls/include/psa/ |
H A D | crypto_values.h | 2445 * \param key_id Identifier of the key. 2448 unsigned int unused, psa_key_id_t key_id) in mbedtls_svc_key_id_make() 2452 return key_id; in mbedtls_svc_key_id_make() 2482 #define MBEDTLS_SVC_KEY_ID_GET_KEY_ID(id) ((id).MBEDTLS_PRIVATE(key_id)) 2488 * \param key_id Identifier of the key. 2491 mbedtls_key_owner_id_t owner_id, psa_key_id_t key_id) in mbedtls_svc_key_id_make() 2493 return (mbedtls_svc_key_id_t){ .MBEDTLS_PRIVATE(key_id) = key_id, in mbedtls_svc_key_id_make() 2507 return (id1.MBEDTLS_PRIVATE(key_id) == id2.MBEDTLS_PRIVATE(key_id)) in mbedtls_svc_key_id_equal() 2447 mbedtls_svc_key_id_make( unsigned int unused, psa_key_id_t key_id) mbedtls_svc_key_id_make() argument 2490 mbedtls_svc_key_id_make( mbedtls_key_owner_id_t owner_id, psa_key_id_t key_id) mbedtls_svc_key_id_make() argument [all...] |
/third_party/node/deps/openssl/openssl/engines/ |
H A D | e_ossltest.c | 376 static EVP_PKEY *load_key(ENGINE *eng, const char *key_id, int pub, in load_key() argument 382 if (OPENSSL_strncasecmp(key_id, "ot:", 3) != 0) in load_key() 384 key_id += 3; in load_key() 387 pub ? "Public" : "Private", key_id); in load_key() 388 in = BIO_new_file(key_id, "r"); in load_key() 399 static EVP_PKEY *ossltest_load_privkey(ENGINE *eng, const char *key_id, in ossltest_load_privkey() argument 402 return load_key(eng, key_id, 0, ui_method, ui_data); in ossltest_load_privkey() 405 static EVP_PKEY *ossltest_load_pubkey(ENGINE *eng, const char *key_id, in ossltest_load_pubkey() argument 408 return load_key(eng, key_id, 1, ui_method, ui_data); in ossltest_load_pubkey()
|
/third_party/openssl/engines/ |
H A D | e_ossltest.c | 376 static EVP_PKEY *load_key(ENGINE *eng, const char *key_id, int pub, in load_key() argument 382 if (OPENSSL_strncasecmp(key_id, "ot:", 3) != 0) in load_key() 384 key_id += 3; in load_key() 387 pub ? "Public" : "Private", key_id); in load_key() 388 in = BIO_new_file(key_id, "r"); in load_key() 399 static EVP_PKEY *ossltest_load_privkey(ENGINE *eng, const char *key_id, in ossltest_load_privkey() argument 402 return load_key(eng, key_id, 0, ui_method, ui_data); in ossltest_load_privkey() 405 static EVP_PKEY *ossltest_load_pubkey(ENGINE *eng, const char *key_id, in ossltest_load_pubkey() argument 408 return load_key(eng, key_id, 1, ui_method, ui_data); in ossltest_load_pubkey()
|
/third_party/ffmpeg/libavutil/tests/ |
H A D | encryption_info.c | 41 if (memcmp(a->key_id, b->key_id, a->key_id_size) != 0 || in compare_encryption_info() 82 av_assert0(info->key_id); in run_encryption_info_test() 92 memcpy(info->key_id, test_key_id, sizeof(test_key_id)); in run_encryption_info_test()
|
/third_party/mbedtls/tests/src/drivers/ |
H A D | platform_builtin_keys.c | 72 mbedtls_svc_key_id_t key_id, in mbedtls_psa_platform_get_builtin_key() 76 psa_key_id_t app_key_id = MBEDTLS_SVC_KEY_ID_GET_KEY_ID(key_id); in mbedtls_psa_platform_get_builtin_key() 71 mbedtls_psa_platform_get_builtin_key( mbedtls_svc_key_id_t key_id, psa_key_lifetime_t *lifetime, psa_drv_slot_number_t *slot_number) mbedtls_psa_platform_get_builtin_key() argument
|
/third_party/python/Doc/includes/ |
H A D | dbpickle.py | 36 type_tag, key_id = pid 39 cursor.execute("SELECT * FROM memos WHERE key=?", (str(key_id),))
|
/third_party/ltp/testcases/kernel/controllers/cpuset/cpuset_memory_test/ |
H A D | cpuset_memory_test.c | 58 static int key_id; /* used with opt_shm */ variable 106 key_id = atoi(optarg); in process_options() 257 key = ftok("/dev/null", key_id); in shm()
|