/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | KeymasterHidlTest.h | 42 class HidlBuf : public hidl_vec<uint8_t> { 46 HidlBuf() {} in HidlBuf() function 47 HidlBuf(const super& other) : super(other) {} in HidlBuf() function 48 HidlBuf(super&& other) : super(std::move(other)) { other = {}; } in HidlBuf() function 49 HidlBuf(const HidlBuf& other) : super(other) {} in HidlBuf() function 50 HidlBuf(HidlBuf&& other) : super(std::move(other)) { other = HidlBuf(); } in HidlBuf() function 51 explicit HidlBuf(const std::string& other) : HidlBuf() { *this = other; } in HidlBuf() function 53 HidlBuf& operator=(const super& other) { 58 HidlBuf& operator=(super&& other) { 64 HidlBuf& operator=(const HidlBuf& other) { [all …]
|
D | KeymasterHidlTest.cpp | 67 ErrorCode KeymasterHidlTest::GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob, in GenerateKey() 77 [&](ErrorCode hidl_error, const HidlBuf& hidl_key_blob, in GenerateKey() 98 const string& key_material, HidlBuf* key_blob, in ImportKey() 102 ->importKey(key_desc.hidl_data(), format, HidlBuf(key_material), in ImportKey() 103 [&](ErrorCode hidl_error, const HidlBuf& hidl_key_blob, in ImportKey() 131 ->importWrappedKey(HidlBuf(wrapped_key), key_blob_, HidlBuf(masking_key), in ImportWrappedKey() 134 [&](ErrorCode hidl_error, const HidlBuf& hidl_key_blob, in ImportWrappedKey() 144 ErrorCode KeymasterHidlTest::ExportKey(KeyFormat format, const HidlBuf& key_blob, in ExportKey() 145 const HidlBuf& client_id, const HidlBuf& app_data, in ExportKey() 146 HidlBuf* key_material) { in ExportKey() [all …]
|
D | keymaster_hidl_hal_test.cpp | 415 HidlBuf att_challenge; in verify_attestation_record() 416 HidlBuf att_unique_id; in verify_attestation_record() 417 HidlBuf att_app_id; in verify_attestation_record() 434 expected_sw_enforced.push_back(TAG_ATTESTATION_APPLICATION_ID, HidlBuf(app_id)); in verify_attestation_record() 497 HidlBuf verified_boot_key; in verify_attestation_record() 500 HidlBuf verified_boot_hash; in verify_attestation_record() 613 void CheckCharacteristics(const HidlBuf& key_blob, in CheckCharacteristics() 629 HidlBuf key_blob; in TEST_P() 664 HidlBuf key_blob; in TEST_P() 696 HidlBuf key_blob; in TEST_P() [all …]
|
D | BootloaderStateTest.cpp | 51 .Authorization(TAG_ATTESTATION_CHALLENGE, HidlBuf("challenge")) in SetUp() 52 .Authorization(TAG_ATTESTATION_APPLICATION_ID, HidlBuf("foo")), in SetUp()
|
D | HmacKeySharingTest.cpp | 49 HidlBuf sharing_check; 106 void verifyResponses(const HidlBuf& expected, const std::vector<ComputeHmacResult>& responses) { in verifyResponses() 190 HidlBuf correct_response = responses[0].sharing_check; in TEST_P() 230 HidlBuf correct_response = responses[0].sharing_check; in TEST_P()
|
/hardware/interfaces/keymaster/4.1/vts/functional/ |
D | Keymaster4_1HidlTest.h | 28 using V4_0::test::HidlBuf; 41 HidlBuf blob; 107 ProcessMessage(const HidlBuf& key_blob, KeyPurpose operation, const std::string& message, 110 ErrorCode UseAesKey(const HidlBuf& aesKeyBlob) { in UseAesKey() 117 ErrorCode UseHmacKey(const HidlBuf& hmacKeyBlob) { in UseHmacKey() 126 ErrorCode UseRsaKey(const HidlBuf& rsaKeyBlob) { in UseRsaKey() 134 ErrorCode UseEcdsaKey(const HidlBuf& ecdsaKeyBlob) { in UseEcdsaKey()
|
D | DeviceUniqueAttestationTest.cpp | 120 HidlBuf empty_boot_key(string(32, '\0')); in check_root_of_trust() 160 void check_attestation_record(AttestationRecord attestation, const HidlBuf& challenge, in check_attestation_record() 236 .Authorization(TAG_ATTESTATION_CHALLENGE, HidlBuf("challenge")) in TEST_P() 237 .Authorization(TAG_ATTESTATION_APPLICATION_ID, HidlBuf("foo")), in TEST_P() 251 .Authorization(TAG_ATTESTATION_CHALLENGE, HidlBuf("challenge")) in TEST_P() 252 .Authorization(TAG_ATTESTATION_APPLICATION_ID, HidlBuf("foo")), in TEST_P() 267 HidlBuf challenge("challenge"); in TEST_P() 268 HidlBuf app_id("foo"); in TEST_P() 314 HidlBuf challenge("challenge"); in TEST_P() 315 HidlBuf app_id("foo"); in TEST_P() [all …]
|
D | Keymaster4_1HidlTest.cpp | 28 auto Keymaster4_1HidlTest::ProcessMessage(const HidlBuf& key_blob, KeyPurpose operation, in ProcessMessage()
|
/hardware/interfaces/keymaster/3.0/vts/functional/ |
D | keymaster_hidl_hal_test.cpp | 380 class HidlBuf : public hidl_vec<uint8_t> { class 384 HidlBuf() {} in HidlBuf() function in android::hardware::keymaster::V3_0::test::__anon241bf2ce0111::HidlBuf 385 HidlBuf(const super& other) : super(other) {} in HidlBuf() function in android::hardware::keymaster::V3_0::test::__anon241bf2ce0111::HidlBuf 386 HidlBuf(super&& other) : super(std::move(other)) {} in HidlBuf() function in android::hardware::keymaster::V3_0::test::__anon241bf2ce0111::HidlBuf 387 explicit HidlBuf(const std::string& other) : HidlBuf() { *this = other; } in HidlBuf() function in android::hardware::keymaster::V3_0::test::__anon241bf2ce0111::HidlBuf 389 HidlBuf& operator=(const super& other) { in operator =() 394 HidlBuf& operator=(super&& other) { in operator =() 399 HidlBuf& operator=(const string& other) { in operator =() 454 ErrorCode GenerateKey(const AuthorizationSet& key_desc, HidlBuf* key_blob, in GenerateKey() 463 [&](ErrorCode hidl_error, const HidlBuf& hidl_key_blob, in GenerateKey() [all …]
|
/hardware/interfaces/keymaster/4.0/vts/performance/ |
D | Benchmark.cpp | 77 class HidlBuf : public hidl_vec<uint8_t> { class 81 HidlBuf() {} in HidlBuf() function in android::hardware::keymaster::V4_0::test::HidlBuf 82 HidlBuf(const super& other) : super(other) {} in HidlBuf() function in android::hardware::keymaster::V4_0::test::HidlBuf 83 HidlBuf(super&& other) : super(std::move(other)) {} in HidlBuf() function in android::hardware::keymaster::V4_0::test::HidlBuf 84 explicit HidlBuf(const std::string& other) : HidlBuf() { *this = other; } in HidlBuf() function in android::hardware::keymaster::V4_0::test::HidlBuf 86 HidlBuf& operator=(const super& other) { in operator =() 91 HidlBuf& operator=(super&& other) { in operator =() 96 HidlBuf& operator=(const string& other) { in operator =() 115 HidlBuf key_blob_; 207 key_blob_ = HidlBuf(); in DeleteKey() [all …]
|