mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 10:05:19 +00:00
Merge "KeyMaster vts: Allow --dump_attestations to show whole DEVICE_UNIQUE_ATTESTATION" am: ced9a11bbe am: e881bbdda7
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/1703026 Change-Id: I8a8d954559fc68015d5aa0665dc76a88365c20e9
This commit is contained in:
@@ -243,7 +243,9 @@ TEST_P(DeviceUniqueAttestationTest, Rsa) {
|
|||||||
|
|
||||||
EXPECT_EQ(ErrorCode::OK, result);
|
EXPECT_EQ(ErrorCode::OK, result);
|
||||||
EXPECT_EQ(2U, cert_chain.size());
|
EXPECT_EQ(2U, cert_chain.size());
|
||||||
if (dumpAttestations) dumpContent(bin2hex(cert_chain[0]));
|
if (dumpAttestations) {
|
||||||
|
for (auto cert_ : cert_chain) dumpContent(bin2hex(cert_));
|
||||||
|
}
|
||||||
auto [err, attestation] = parse_attestation_record(cert_chain[0]);
|
auto [err, attestation] = parse_attestation_record(cert_chain[0]);
|
||||||
ASSERT_EQ(ErrorCode::OK, err);
|
ASSERT_EQ(ErrorCode::OK, err);
|
||||||
|
|
||||||
@@ -287,7 +289,9 @@ TEST_P(DeviceUniqueAttestationTest, Ecdsa) {
|
|||||||
|
|
||||||
EXPECT_EQ(ErrorCode::OK, result);
|
EXPECT_EQ(ErrorCode::OK, result);
|
||||||
EXPECT_EQ(2U, cert_chain.size());
|
EXPECT_EQ(2U, cert_chain.size());
|
||||||
if (dumpAttestations) dumpContent(bin2hex(cert_chain[0]));
|
if (dumpAttestations) {
|
||||||
|
for (auto cert_ : cert_chain) dumpContent(bin2hex(cert_));
|
||||||
|
}
|
||||||
auto [err, attestation] = parse_attestation_record(cert_chain[0]);
|
auto [err, attestation] = parse_attestation_record(cert_chain[0]);
|
||||||
ASSERT_EQ(ErrorCode::OK, err);
|
ASSERT_EQ(ErrorCode::OK, err);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user