Home
last modified time | relevance | path

Searched refs:key_format (Results 1 – 25 of 27) sorted by relevance

12

/system/keymaster/km_openssl/
Dwrapped_key.cpp42 keymaster_key_format_t key_format, in build_wrapped_key() argument
55 !ASN1_INTEGER_set(wrapped_key->wrapped_key_description->key_format, key_format)) { in build_wrapped_key()
85 keymaster_key_format_t* key_format, in parse_wrapped_key() argument
87 if (!iv || !transit_key || !secure_key || !tag || !auth_list || !key_format || in parse_wrapped_key()
130 *key_format = static_cast<keymaster_key_format_t>( in parse_wrapped_key()
131 ASN1_INTEGER_get(record->wrapped_key_description->key_format)); in parse_wrapped_key()
Dopenssl_utils.cpp101 keymaster_error_t KeyMaterialToEvpKey(keymaster_key_format_t key_format, in KeyMaterialToEvpKey() argument
105 if (key_format != KM_KEY_FORMAT_PKCS8) in KeyMaterialToEvpKey()
Drsa_key_factory.cpp125 keymaster_key_format_t key_format, in UpdateImportKeyDescription() argument
135 KeyMaterialToEvpKey(key_format, key_material, keymaster_key_type(), &pkey); in UpdateImportKeyDescription()
Dec_key_factory.cpp148 keymaster_key_format_t key_format, in UpdateImportKeyDescription() argument
157 KeyMaterialToEvpKey(key_format, key_material, keymaster_key_type(), &pkey); in UpdateImportKeyDescription()
/system/keymaster/include/keymaster/
Dwrapped_key.h28 ASN1_INTEGER* key_format; member
33 ASN1_SIMPLE(KM_WRAPPED_KEY_DESCRIPTION, key_format, ASN1_INTEGER),
58 const KeymasterBlob& iv, keymaster_key_format_t key_format,
66 keymaster_key_format_t* key_format,
Dsoft_keymaster_device.h148 keymaster_key_format_t key_format,
197 keymaster_key_format_t key_format,
Dandroid_keymaster_messages.h475 keymaster_key_format_t key_format; member
518 keymaster_key_format_t key_format; member
/system/keymaster/tests/
Dwrapped_key_test.cpp89 keymaster_key_format_t key_format; in TEST() local
91 &key_format, &wrapped_key_description), in TEST()
102 EXPECT_EQ(key_format, (uint32_t)KM_KEY_FORMAT_RAW); in TEST()
117 keymaster_key_format_t key_format; in TEST() local
119 &key_format, &wrapped_key_description), in TEST()
Dandroid_keymaster_messages_test.cpp388 msg.key_format = KM_KEY_FORMAT_X509; in TEST()
393 EXPECT_EQ(msg.key_format, deserialized->key_format); in TEST()
421 msg.key_format = KM_KEY_FORMAT_X509; in TEST()
426 EXPECT_EQ(msg.key_format, deserialized->key_format); in TEST()
/system/core/trusty/keymaster/include/trusty_keymaster/legacy/
Dtrusty_keymaster_device.h57 keymaster_key_format_t key_format,
110 keymaster_key_format_t key_format,
/system/keymaster/include/keymaster/km_openssl/
Dec_key_factory.h51 keymaster_key_format_t key_format,
Dopenssl_utils.h91 keymaster_error_t KeyMaterialToEvpKey(keymaster_key_format_t key_format,
/system/keymaster/android_keymaster/
Dandroid_keymaster.cpp387 response->error = key->formatted_key_material(request.key_format, &out_key, &size); in ExportKey()
447 response->error = factory->ImportKey(request.key_description, request.key_format, in ImportKey()
495 keymaster_key_format_t key_format; in ImportWrappedKey() local
499 request.masking_key, &key_description, &key_format, &secret_key); in ImportWrappedKey()
528 factory->ImportKey(key_description, key_format, KeymasterKeyBlob(secret_key), &key_blob, in ImportWrappedKey()
Dandroid_keymaster_messages.cpp338 buf = append_uint32_to_buf(buf, end, key_format); in Serialize()
347 !copy_uint32_from_buf(buf_ptr, end, &key_format) || in Deserialize()
384 buf = append_uint32_to_buf(buf, end, key_format); in Serialize()
390 copy_uint32_from_buf(buf_ptr, end, &key_format) && in Deserialize()
/system/keymaster/include/keymaster/legacy_support/
Dkeymaster0_engine.h52 bool ImportKey(keymaster_key_format_t key_format, const KeymasterKeyBlob& to_import,
/system/security/keystore/include/keystore/
Dkeystore_client_mock.h56 keymaster_key_format_t key_format, const std::string& key_data,
Dkeystore_client.h118 KeyFormat key_format, const std::string& key_data,
Dkeystore_client_impl.h60 KeyFormat key_format, const std::string& key_data,
/system/keymaster/legacy_support/
Dkeymaster0_engine.cpp113 bool Keymaster0Engine::ImportKey(keymaster_key_format_t key_format, in ImportKey() argument
117 if (key_format != KM_KEY_FORMAT_PKCS8) in ImportKey()
/system/keymaster/contexts/
Dsoft_keymaster_device.cpp937 keymaster_key_format_t key_format, const keymaster_blob_t* key_data, in import_key() argument
952 return km1_dev->import_key(km1_dev, params, key_format, key_data, key_blob, in import_key()
958 request.key_format = key_format; in import_key()
984 keymaster_key_format_t key_format, const keymaster_blob_t* key_data, in import_key() argument
997 error = import_key(&sk_dev->km1_device_, params, key_format, key_data, key_blob, in import_key()
1004 error = import_key(&sk_dev->km1_device_, params, key_format, key_data, key_blob, nullptr); in import_key()
1032 request.key_format = export_format; in export_key()
/system/core/trusty/keymaster/3.0/
DTrustyKeymaster3Device.cpp278 request.key_format = legacy_enum_conversion(keyFormat); in importKey()
301 request.key_format = legacy_enum_conversion(exportFormat); in exportKey()
/system/keymaster/ng/
DAndroidKeymaster3Device.cpp320 request.key_format = legacy_enum_conversion(keyFormat); in importKey()
343 request.key_format = legacy_enum_conversion(exportFormat); in exportKey()
DAndroidKeymaster4Device.cpp365 request.key_format = legacy_enum_conversion(keyFormat); in importKey()
415 request.key_format = legacy_enum_conversion(exportFormat); in exportKey()
/system/security/keystore/
Dkeystore_client_impl.cpp253 KeyFormat key_format, const std::string& key_data, in importKey() argument
264 (int)key_format, hidlKeyData, kDefaultUID, KEYSTORE_FLAG_NONE, &error_code); in importKey()
/system/core/trusty/keymaster/4.0/
DTrustyKeymaster4Device.cpp393 request.key_format = legacy_enum_conversion(keyFormat); in importKey()
442 request.key_format = legacy_enum_conversion(exportFormat); in exportKey()

12