platform_system_security/identity
David Zeuthen cbc75ae266 identity: Fix "possible" overflow when converting current time to milliseconds.
On ubsan targets an overflow bug caused credstore to fail when
converting current time since the Epoch to milliseconds. Fix this by
using __builtin_mul_overflow() which detects overflow and bail if that
were to happen. The error path is not going to get hit until for
another 292 million years at which time credstore may or may not be
around but better safe than sorry.

Test: atest VtsHalIdentityTargetTest
Test: atest android.security.identity.cts
Bug: 262860870
Bug: 262910256
Bug: 264728880
Bug: 264729215
Change-Id: I5efb036f078cae9e4e03406bbdf4ce66572ad716
2023-02-01 11:38:43 -05:00
..
binder/android/security/identity identity: Add support for setting minimum validity period for AuthKey. 2022-12-09 02:58:18 -05:00
util identity: Fix incorrect encoding P256 public key 2022-09-08 12:20:08 +00:00
Android.bp identity: Fix RKPD usage 2023-01-25 20:42:07 +00:00
Credential.cpp identity: Add support for setting minimum validity period for AuthKey. 2022-12-09 02:58:18 -05:00
Credential.h identity: Add support for setting minimum validity period for AuthKey. 2022-12-09 02:58:18 -05:00
CredentialData.cpp identity: Fix "possible" overflow when converting current time to milliseconds. 2023-02-01 11:38:43 -05:00
CredentialData.h identity: Add support for setting minimum validity period for AuthKey. 2022-12-09 02:58:18 -05:00
CredentialStore.cpp identity: Fix RKPD usage 2023-01-25 20:42:07 +00:00
CredentialStore.h identity: Fix RKPD usage 2023-01-25 20:42:07 +00: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: Fix RKPD usage 2023-01-25 20:42:07 +00:00
RemotelyProvisionedKey.cpp identity: Fix RKPD usage 2023-01-25 20:42:07 +00:00
RemotelyProvisionedKey.h identity: Migrate to RKPD for attestation keys 2022-12-20 13:51:14 +00: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: Add support for setting minimum validity period for AuthKey. 2022-12-09 02:58:18 -05:00
WritableCredential.h identity: Add support for setting minimum validity period for AuthKey. 2022-12-09 02:58:18 -05:00