David Zeuthen ef7395127f Update Identity Credential VTS tests.
These updates are based on input/experiences implementing this
HAL. There are no API changes.

 - Specify that the validity for credentialKey certificate shall be
   from current time and expire at the same time as the attestation
   batch certificate.

 - Require challenge passed to getAttestationCertificate() is
   non-empty.

 - Fix bug in VTS tests where the startPersonlization() result was not
   checked.

 - Remove verifyStartPersonalizationZero test since it cannot be
   completed.

 - Ensure secureUserId is non-zero if user authentication is needed.

 - Specify format for signingKeyBlob in generateSigningKeyPair() same
   way we do for credentialData in finishAddingEntries().

 - Modify EndToEndTest to decrypt/unpack credentialData to obtain
   credentialPrivKey and storageKey and do cross-checks on these.

 - Modify EndToEndTest to decrypt/unpack signingKeyBlob to obtain
   signingKeyPriv and check it matches the public key in the returned
   certificate.

 - Add new VTS tests for user and reader authentication.

 - Relax unnecessary requirements about SessionTranscript structure -
   just require it has X and Y of the ephemeral key created earlier.

 - Allow calls in VTS tests to v2 HAL to fail - this should allow
   these VTS tests to pass on a compliant v1 HAL.

Bug: 156911917
Bug: 158107945
Test: atest VtsHalIdentityTargetTest
Test: atest android.security.identity.cts
Change-Id: I11b79dbd57b1830609c70301fea9c99f9e5080cb
2020-06-04 16:46:54 -04:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-20 20:50:14 +00:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-05-27 17:29:42 +01:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-09 17:01:44 +09:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2020-04-07 15:17:02 -07:00
2016-08-30 11:28:36 -07:00
2019-12-10 09:51:58 -08:00
Description
No description provided
134 MiB
Languages
C++ 56.3%
AIDL 41.2%
C 1.5%
Rust 0.4%
Java 0.4%
Other 0.1%