Home
last modified time | relevance | path

Searched refs:verified_boot_key (Results 1 – 7 of 7) sorted by relevance

/hardware/interfaces/keymaster/4.1/vts/functional/
DDeviceUniqueAttestationTest.cpp109 auto& verified_boot_key = root_of_trust.verified_boot_key; in check_root_of_trust() local
114 EXPECT_NE(verified_boot_key, empty_boot_key); in check_root_of_trust()
117 EXPECT_NE(verified_boot_key, empty_boot_key); in check_root_of_trust()
120 EXPECT_EQ(verified_boot_key, empty_boot_key); in check_root_of_trust()
125 EXPECT_EQ(verified_boot_key, empty_boot_key); in check_root_of_trust()
/hardware/interfaces/keymaster/4.0/support/
Dattestation_record.cpp52 ASN1_OCTET_STRING* verified_boot_key; member
59 ASN1_SIMPLE(KM_ROOT_OF_TRUST, verified_boot_key, ASN1_OCTET_STRING),
311 hidl_vec<uint8_t>* verified_boot_key, in parse_root_of_trust() argument
314 if (!verified_boot_key || !verified_boot_state || !device_locked || !verified_boot_hash) { in parse_root_of_trust()
334 if (!root_of_trust->verified_boot_key) { in parse_root_of_trust()
339 auto& vb_key = root_of_trust->verified_boot_key; in parse_root_of_trust()
340 verified_boot_key->resize(vb_key->length); in parse_root_of_trust()
341 memcpy(verified_boot_key->data(), vb_key->data, vb_key->length); in parse_root_of_trust()
/hardware/interfaces/keymaster/4.1/support/
Dattestation_record.cpp60 ASN1_OCTET_STRING* verified_boot_key; member
67 ASN1_SIMPLE(KM_ROOT_OF_TRUST, verified_boot_key, ASN1_OCTET_STRING),
359 if (!root_of_trust->verified_boot_key) { in MAKE_OPENSSL_PTR_TYPE()
365 auto& vb_key = root_of_trust->verified_boot_key; in MAKE_OPENSSL_PTR_TYPE()
366 rot.verified_boot_key.resize(vb_key->length); in MAKE_OPENSSL_PTR_TYPE()
367 memcpy(rot.verified_boot_key.data(), vb_key->data, vb_key->length); in MAKE_OPENSSL_PTR_TYPE()
/hardware/interfaces/keymaster/4.1/support/include/keymasterV4_1/
Dattestation_record.h34 hidl_vec<uint8_t> verified_boot_key; member
/hardware/interfaces/keymaster/4.0/support/include/keymasterV4_0/
Dattestation_record.h63 hidl_vec<uint8_t>* verified_boot_key,
/hardware/interfaces/keymaster/3.0/vts/functional/
Dattestation_record.cpp48 ASN1_OCTET_STRING* verified_boot_key; member
54 ASN1_SIMPLE(KM_ROOT_OF_TRUST, verified_boot_key, ASN1_OCTET_STRING),
/hardware/interfaces/keymaster/4.0/vts/functional/
Dkeymaster_hidl_hal_test.cpp420 HidlBuf verified_boot_key; in verify_attestation_record() local
424 error = parse_root_of_trust(attest_rec->data, attest_rec->length, &verified_boot_key, in verify_attestation_record()
453 std::string verified_boot_key_str((const char*)verified_boot_key.data(), in verify_attestation_record()
454 verified_boot_key.size()); in verify_attestation_record()
458 EXPECT_NE(0, memcmp(verified_boot_key.data(), empty_boot_key.data(), in verify_attestation_record()
459 verified_boot_key.size())); in verify_attestation_record()
462 EXPECT_NE(0, memcmp(verified_boot_key.data(), empty_boot_key.data(), in verify_attestation_record()
463 verified_boot_key.size())); in verify_attestation_record()
466 EXPECT_EQ(0, memcmp(verified_boot_key.data(), empty_boot_key.data(), in verify_attestation_record()
467 verified_boot_key.size())); in verify_attestation_record()
[all …]