Home
last modified time | relevance | path

Searched refs:export_data (Results 1 – 10 of 10) sorted by relevance

/system/keymaster/legacy_support/
Dkeymaster_passthrough_key.cpp70 KeymasterBlob export_data; in formatted_key_material() local
73 engine_->ExportKey(format, key_material(), client_id, app_data, &export_data); in formatted_key_material()
75 keymaster_blob_t export_blob = export_data.release(); in formatted_key_material()
Dkeymaster1_engine.cpp347 keymaster_blob_t export_data = {nullptr, 0}; in GetKeymaster1PublicKey() local
349 client_id_ptr, app_data_ptr, &export_data); in GetKeymaster1PublicKey()
352 unique_ptr<uint8_t, Malloc_Delete> pub_key(const_cast<uint8_t*>(export_data.data)); in GetKeymaster1PublicKey()
354 const uint8_t* p = export_data.data; in GetKeymaster1PublicKey()
355 auto result = d2i_PUBKEY(nullptr /* allocate new struct */, &p, export_data.data_length); in GetKeymaster1PublicKey()
Dkeymaster_passthrough_engine.cpp97 KeymasterBlob* export_data) const override { in ExportKey()
102 *export_data = KeymasterBlob(my_export_data.data, my_export_data.data_length); in ExportKey()
104 if (export_data->data == nullptr) { in ExportKey()
/system/core/trusty/keymaster/include/trusty_keymaster/legacy/
Dtrusty_keymaster_device.h63 const keymaster_blob_t* app_data, keymaster_blob_t* export_data);
119 keymaster_blob_t* export_data);
/system/keymaster/include/keymaster/legacy_support/
Dkeymaster_passthrough_engine.h56 KeymasterBlob* export_data) const = 0;
/system/keymaster/include/keymaster/
Dsoft_keymaster_device.h149 keymaster_blob_t* export_data);
198 keymaster_blob_t* export_data);
/system/keymaster/contexts/
Dsoft_keymaster_device.cpp938 keymaster_blob_t* export_data) { in export_key() argument
941 if (!export_data) return KM_ERROR_OUTPUT_PARAMETER_NULL; in export_key()
946 export_data); in export_key()
948 export_data->data = nullptr; in export_key()
949 export_data->data_length = 0; in export_key()
961 export_data->data_length = response.key_data_length; in export_key()
962 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(export_data->data_length)); in export_key()
964 memcpy(tmp, response.key_data, export_data->data_length); in export_key()
965 export_data->data = tmp; in export_key()
975 keymaster_blob_t* export_data) { in export_key() argument
[all …]
/system/security/keystore/include/keystore/
Dkeystore_client_mock.h60 const std::string& key_name, std::string* export_data));
Dkeystore_client.h126 std::string* export_data) = 0;
Dkeystore_client_impl.h64 std::string* export_data) override;