From 49f2d2558ac417d090dfae9c78ab372d71e5140c Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Fri, 16 Oct 2020 11:27:24 -0400 Subject: Identity Credential changes for Android 12 - Add IIdentityCredential.deleteCredentialWithChallenge() - Deprecate IIdentityCredential.deleteCredential() - Add IIdentityCredential.proveOwership() - Add IIdentityCredential.updateCredential() - Add ProofOfBinding CBOR to AuthenticationKey X.509 certificate - Document which API versions new methods/features appeared in. - Mention need to declare android.hardware.identity_credential system feature (w/ feature version number) and do this for the default implementation. Bug: 170146643 Test: atest VtsHalIdentityTargetTest Change-Id: Ib47c7caa5f3d6fff6919f019eee44a735dba9cf8 --- identity/support/tests/IdentityCredentialSupportTest.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'identity/support/tests/IdentityCredentialSupportTest.cpp') diff --git a/identity/support/tests/IdentityCredentialSupportTest.cpp b/identity/support/tests/IdentityCredentialSupportTest.cpp index 266f263203..509133cbc9 100644 --- a/identity/support/tests/IdentityCredentialSupportTest.cpp +++ b/identity/support/tests/IdentityCredentialSupportTest.cpp @@ -271,7 +271,7 @@ vector generateCertChain(size_t numCerts) { optional> pubKey = support::ecKeyPairGetPublicKey(keyPair.value()); optional> cert = support::ecPublicKeyGenerateCertificate( - pubKey.value(), privKey.value(), "0001", "someIssuer", "someSubject", 0, 0); + pubKey.value(), privKey.value(), "0001", "someIssuer", "someSubject", 0, 0, {}); certs.push_back(cert.value()); } return support::certificateChainJoin(certs); @@ -338,7 +338,7 @@ TEST(IdentityCredentialSupport, CertificateChain) { ASSERT_TRUE(pubKey); optional> cert = support::ecPublicKeyGenerateCertificate( - pubKey.value(), privKey.value(), "0001", "someIssuer", "someSubject", 0, 0); + pubKey.value(), privKey.value(), "0001", "someIssuer", "someSubject", 0, 0, {}); optional> extractedPubKey = support::certificateChainGetTopMostKey(cert.value()); @@ -358,7 +358,7 @@ TEST(IdentityCredentialSupport, CertificateChain) { optional> otherPubKey = support::ecKeyPairGetPublicKey(keyPair.value()); ASSERT_TRUE(otherPubKey); optional> otherCert = support::ecPublicKeyGenerateCertificate( - otherPubKey.value(), privKey.value(), "0001", "someIssuer", "someSubject", 0, 0); + otherPubKey.value(), privKey.value(), "0001", "someIssuer", "someSubject", 0, 0, {}); // Now both cert and otherCert are two distinct certificates. Let's make a // chain and check that certificateChainSplit() works as expected. -- cgit v1.2.3