platform_system_security/identity
Joseph Jang e678b870a2 identity: Fix buildSessionTranscript() from a zero leading P-256 EC Public Key.
Properly encode an sessiontranscript from P-256 EC Public Key, in
particular ensure that the resulting sessiontranscript which includes an valid P-256 EC public key is expected.

Was able to reproduce this with about 1% failures running a test.
After the fix didn't get a failure in 1,000 runs.

This bug is similar with AOSP patch "identity: Fix uncompressed form encoding of P-256 EC Public Key."

Bug: 239857653
Test: atest --rerun-until-failure 1000  android.security.identity.cts.ReaderAuthTest#readerAuth
Change-Id: Id5ce46977cf3b6ce6c43beda657cd26b24969fe5
2022-07-27 02:35:59 +00:00
..
binder/android/security/identity identity: Add multi-document presentation support. 2022-01-10 17:38:04 -05:00
util identity: Fix buildSessionTranscript() from a zero leading P-256 EC Public Key. 2022-07-27 02:35:59 +00:00
Android.bp Deleted clang property in Android.bp files 2022-04-25 21:04:48 +00:00
Credential.cpp identity: Add multi-document presentation support. 2022-01-10 17:38:04 -05:00
Credential.h identity: Add multi-document presentation support. 2022-01-10 17:38:04 -05:00
CredentialData.cpp identity: Add multi-document presentation support. 2022-01-10 17:38:04 -05:00
CredentialData.h identity: Add multi-document presentation support. 2022-01-10 17:38:04 -05:00
CredentialStore.cpp Add support for RKP to credstore 2022-02-02 16:17:05 -08:00
CredentialStore.h Add support for RKP to credstore 2022-02-02 16:17:05 -08:00
CredentialStoreFactory.cpp identity: Use "credstore" for LOG_TAG everywhere. 2021-03-31 10:46:42 -04:00
CredentialStoreFactory.h Port credstore to IdentityCredential AIDL. 2020-02-14 13:41:52 -05:00
credstore.rc credstore: update credstore.rc to use correct class, user, and group. 2020-01-17 16:52:01 -05:00
main.cpp identity: Use "credstore" for LOG_TAG everywhere. 2021-03-31 10:46:42 -04:00
Session.cpp identity: Add multi-document presentation support. 2022-01-10 17:38:04 -05:00
Session.h identity: Add multi-document presentation support. 2022-01-10 17:38:04 -05:00
TEST_MAPPING Make CBOR and COSE CTS utilities reusable 2021-09-22 07:59:04 -07:00
Util.cpp identity: Use "credstore" for LOG_TAG everywhere. 2021-03-31 10:46:42 -04:00
Util.h Port credstore to IdentityCredential AIDL. 2020-02-14 13:41:52 -05:00
WritableCredential.cpp identity: Use "credstore" for LOG_TAG everywhere. 2021-03-31 10:46:42 -04:00
WritableCredential.h credstore: Fix several problems with credstore. 2021-03-08 11:10:28 -05:00