platform_hardware_interfaces/identity/aidl/vts
David Zeuthen 34abaaefcb identity: Fix attestation and documentation problems.
- The docs said that IdentityCredential.createEphemeralKey() returned
  data encoded PKCS#8 which is wrong. It's supposed to be in DER format
  which is also what the VTS tests and credstore expects.

- Clarify that createEphemeralKeyPair(), setReaderEphemeralPublicKey(),
  and createAuthChallenge() are all optional.

- Avoid passing an invalid profile ID in the IdentityCredentialTests.
  verifyOneProfileAndEntryPass test.

- Update requirements for which tags must be present in the attestation
  for CredentialKey as well as the requirements on expiration date and
  the issuer name.  Update default implementation to satisfy these
  requirements. Update VTS tests to carefully verify these requrements
  are met.

- Clarify requirements for X.509 cert for AuthenticationKey. Add VTS
  test to verify.

- Mandate that TAG_IDENTITY_CREDENTIAL_KEY must not be set for test
  credentials. Add VTS test to verify this.

- Make default implementation pretend to be implemented in a trusted
  environment and streamline VTS tests to not special-case for the
  default implementation.

- Switch to using the attestation extension parser from the KM 4.1
  support library instead of the one from system/keymaster. The latter
  one did not support the latest attestation extension and thus would
  fail for pretty much anything that wasn't the default HAL impl.

- Fix a couple of bugs in keymaster::V4_1::parse_attestation_record():
  - Report root_of_trust.security_level
  - Add support for Tag::IDENTITY_CREDENTIAL_KEY

- Fix how EMacKey is calculated.

- Add test vectors to verify how EMacKey and DeviceMac is calculated.

Test: atest VtsHalIdentityTargetTest
Test: atest android.security.identity.cts
Bug: 171745570
Change-Id: I2f8bd772de078556733f769cec2021918d1d7de6
2020-11-17 13:44:00 -05:00
..
Android.bp identity: Fix attestation and documentation problems. 2020-11-17 13:44:00 -05:00
ReaderAuthTests.cpp Suppress gtest error for tests without any instance 2020-07-28 15:12:32 -07:00
UserAuthTests.cpp Suppress gtest error for tests without any instance 2020-07-28 15:12:32 -07:00
VtsAttestationTests.cpp identity: Fix attestation and documentation problems. 2020-11-17 13:44:00 -05:00
VtsHalIdentityEndToEndTest.cpp identity: Fix attestation and documentation problems. 2020-11-17 13:44:00 -05:00
VtsIdentityTestUtils.cpp identity: Fix attestation and documentation problems. 2020-11-17 13:44:00 -05:00
VtsIdentityTestUtils.h identity: Fix attestation and documentation problems. 2020-11-17 13:44:00 -05:00
VtsIWritableIdentityCredentialTests.cpp identity: Fix attestation and documentation problems. 2020-11-17 13:44:00 -05:00