Merge "KeyMint VTS: Expect empty key if boot state unverfied" am: a26f8cb316 am: 39f920bae3

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2014678

Change-Id: I09c96b1e9df172a76e1747f4b6687bd4211146ea
This commit is contained in:
Tri Vo 2022-03-18 18:44:50 +00:00 committed by Automerger Merge Worker
commit c18ed24712

View file

@ -1619,7 +1619,7 @@ bool verify_attestation_record(int32_t aidl_version, //
EXPECT_EQ(verified_boot_state, VerifiedBoot::FAILED); EXPECT_EQ(verified_boot_state, VerifiedBoot::FAILED);
} else { } else {
EXPECT_EQ(verified_boot_state, VerifiedBoot::UNVERIFIED); EXPECT_EQ(verified_boot_state, VerifiedBoot::UNVERIFIED);
EXPECT_NE(0, memcmp(verified_boot_key.data(), empty_boot_key.data(), EXPECT_EQ(0, memcmp(verified_boot_key.data(), empty_boot_key.data(),
verified_boot_key.size())); verified_boot_key.size()));
} }