/hardware/interfaces/keymaster/4.0/vts/functional/ |
D | KeymasterHidlTest.h | 40 class HidlBuf : public hidl_vec<uint8_t> { 44 HidlBuf() {} in HidlBuf() function 45 HidlBuf(const super& other) : super(other) {} in HidlBuf() function 46 HidlBuf(super&& other) : super(std::move(other)) { other = {}; } in HidlBuf() function 47 HidlBuf(const HidlBuf& other) : super(other) {} in HidlBuf() function 48 HidlBuf(HidlBuf&& other) : super(std::move(other)) { other = HidlBuf(); } in HidlBuf() function 49 explicit HidlBuf(const std::string& other) : HidlBuf() { *this = other; } in HidlBuf() function 51 HidlBuf& operator=(const super& other) { 56 HidlBuf& operator=(super&& other) { 62 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 | 338 HidlBuf att_challenge; in verify_attestation_record() 339 HidlBuf att_unique_id; in verify_attestation_record() 340 HidlBuf att_app_id; in verify_attestation_record() 357 expected_sw_enforced.push_back(TAG_ATTESTATION_APPLICATION_ID, HidlBuf(app_id)); in verify_attestation_record() 420 HidlBuf verified_boot_key; in verify_attestation_record() 423 HidlBuf verified_boot_hash; in verify_attestation_record() 520 void CheckCharacteristics(const HidlBuf& key_blob, in CheckCharacteristics() 536 HidlBuf key_blob; in TEST_P() 571 HidlBuf key_blob; in TEST_P() 603 HidlBuf key_blob; in TEST_P() [all …]
|
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 | 26 using V4_0::test::HidlBuf; 39 HidlBuf blob; 105 ProcessMessage(const HidlBuf& key_blob, KeyPurpose operation, const std::string& message, 108 ErrorCode UseAesKey(const HidlBuf& aesKeyBlob) { in UseAesKey() 115 ErrorCode UseHmacKey(const HidlBuf& hmacKeyBlob) { in UseHmacKey() 122 ErrorCode UseRsaKey(const HidlBuf& rsaKeyBlob) { in UseRsaKey() 130 ErrorCode UseEcdsaKey(const HidlBuf& ecdsaKeyBlob) { in UseEcdsaKey()
|
D | DeviceUniqueAttestationTest.cpp | 106 HidlBuf empty_boot_key(string(32, '\0')); in check_root_of_trust() 129 void check_attestation_record(AttestationRecord attestation, const HidlBuf& challenge, in check_attestation_record() 173 .Authorization(TAG_ATTESTATION_CHALLENGE, HidlBuf("challenge")) in TEST_P() 174 .Authorization(TAG_ATTESTATION_APPLICATION_ID, HidlBuf("foo")), in TEST_P() 188 .Authorization(TAG_ATTESTATION_CHALLENGE, HidlBuf("challenge")) in TEST_P() 189 .Authorization(TAG_ATTESTATION_APPLICATION_ID, HidlBuf("foo")), in TEST_P() 205 HidlBuf challenge("challenge"); in TEST_P() 206 HidlBuf app_id("foo"); in TEST_P() 246 HidlBuf challenge("challenge"); in TEST_P() 247 HidlBuf app_id("foo"); in TEST_P()
|
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::__anon93d6503a0111::HidlBuf 385 HidlBuf(const super& other) : super(other) {} in HidlBuf() function in android::hardware::keymaster::V3_0::test::__anon93d6503a0111::HidlBuf 386 HidlBuf(super&& other) : super(std::move(other)) {} in HidlBuf() function in android::hardware::keymaster::V3_0::test::__anon93d6503a0111::HidlBuf 387 explicit HidlBuf(const std::string& other) : HidlBuf() { *this = other; } in HidlBuf() function in android::hardware::keymaster::V3_0::test::__anon93d6503a0111::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 …]
|