/system/keymaster/legacy_support/ |
D | keymaster_passthrough_key.cpp | 72 KeymasterBlob export_data; in formatted_key_material() local 75 &export_data); in formatted_key_material() 77 keymaster_blob_t export_blob = export_data.release(); in formatted_key_material()
|
D | keymaster1_engine.cpp | 369 keymaster_blob_t export_data = {nullptr, 0}; in GetKeymaster1PublicKey() local 371 client_id_ptr, app_data_ptr, &export_data); in GetKeymaster1PublicKey() 375 unique_ptr<uint8_t, Malloc_Delete> pub_key(const_cast<uint8_t*>(export_data.data)); in GetKeymaster1PublicKey() 377 const uint8_t* p = export_data.data; in GetKeymaster1PublicKey() 378 auto result = d2i_PUBKEY(nullptr /* allocate new struct */, &p, export_data.data_length); in GetKeymaster1PublicKey()
|
D | keymaster_passthrough_engine.cpp | 98 KeymasterBlob* export_data) const override { in ExportKey() 104 *export_data = KeymasterBlob(my_export_data.data, my_export_data.data_length); in ExportKey() 106 if (export_data->data == nullptr) { in ExportKey()
|
/system/core/trusty/keymaster/include/trusty_keymaster/legacy/ |
D | trusty_keymaster_device.h | 63 const keymaster_blob_t* app_data, keymaster_blob_t* export_data); 119 keymaster_blob_t* export_data);
|
/system/keymaster/include/keymaster/legacy_support/ |
D | keymaster_passthrough_engine.h | 56 KeymasterBlob* export_data) const = 0;
|
/system/keymaster/include/keymaster/ |
D | soft_keymaster_device.h | 157 keymaster_blob_t* export_data); 206 keymaster_blob_t* export_data);
|
/system/keymaster/contexts/ |
D | soft_keymaster_device.cpp | 1016 keymaster_blob_t* export_data) { in export_key() argument 1020 if (!export_data) in export_key() 1026 export_data); in export_key() 1028 export_data->data = nullptr; in export_key() 1029 export_data->data_length = 0; in export_key() 1041 export_data->data_length = response.key_data_length; in export_key() 1042 uint8_t* tmp = reinterpret_cast<uint8_t*>(malloc(export_data->data_length)); in export_key() 1045 memcpy(tmp, response.key_data, export_data->data_length); in export_key() 1046 export_data->data = tmp; in export_key() 1056 keymaster_blob_t* export_data) { in export_key() argument [all …]
|
/system/security/keystore/include/keystore/ |
D | keystore_client_mock.h | 60 const std::string& key_name, std::string* export_data));
|
D | keystore_client.h | 126 std::string* export_data) = 0;
|
D | keystore_client_impl.h | 64 std::string* export_data) override;
|
/system/keymaster/tests/ |
D | android_keymaster_test_utils.cpp | 615 keymaster_error_t Keymaster2Test::ExportKey(keymaster_key_format_t format, string* export_data) { in ExportKey() argument 623 *export_data = string(reinterpret_cast<const char*>(export_tmp.data), export_tmp.data_length); in ExportKey() 874 keymaster_blob_t* export_data) { in export_key() argument 876 app_data, export_data); in export_key()
|
D | android_keymaster_test.cpp | 1568 string export_data; in TEST_P() local 1569 ASSERT_EQ(KM_ERROR_OK, ExportKey(KM_KEY_FORMAT_X509, &export_data)); in TEST_P() 1570 EXPECT_GT(export_data.length(), 0U); in TEST_P() 1581 string export_data; in TEST_P() local 1582 ASSERT_EQ(KM_ERROR_OK, ExportKey(KM_KEY_FORMAT_X509, &export_data)); in TEST_P() 1583 EXPECT_GT(export_data.length(), 0U); in TEST_P() 1596 string export_data; in TEST_P() local 1597 ASSERT_EQ(KM_ERROR_UNSUPPORTED_KEY_FORMAT, ExportKey(KM_KEY_FORMAT_PKCS8, &export_data)); in TEST_P() 1609 string export_data; in TEST_P() local 1610 ASSERT_EQ(KM_ERROR_INVALID_KEY_BLOB, ExportKey(KM_KEY_FORMAT_X509, &export_data)); in TEST_P() [all …]
|
D | android_keymaster_test_utils.h | 193 keymaster_error_t ExportKey(keymaster_key_format_t format, std::string* export_data);
|
/system/security/keystore/ |
D | keystore_client_impl.cpp | 282 std::string* export_data) { in exportKey() argument 298 *export_data = hidlVec2String(export_result.exportData); in exportKey()
|