Home
last modified time | relevance | path

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

/system/keymaster/legacy_support/
Dkeymaster_passthrough_key.cpp72 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()
Dkeymaster1_engine.cpp369 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()
Dkeymaster_passthrough_engine.cpp98 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/
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.h157 keymaster_blob_t* export_data);
206 keymaster_blob_t* export_data);
/system/keymaster/contexts/
Dsoft_keymaster_device.cpp1016 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/
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;
/system/keymaster/tests/
Dandroid_keymaster_test_utils.cpp615 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()
Dandroid_keymaster_test.cpp1568 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 …]
Dandroid_keymaster_test_utils.h193 keymaster_error_t ExportKey(keymaster_key_format_t format, std::string* export_data);
/system/security/keystore/
Dkeystore_client_impl.cpp282 std::string* export_data) { in exportKey() argument
298 *export_data = hidlVec2String(export_result.exportData); in exportKey()