diff options
| author | 2022-07-21 17:11:36 -0400 | |
|---|---|---|
| committer | 2022-07-25 18:01:42 +0000 | |
| commit | 9cad05c0ae94dc0afcd33379fd2a45d2e01a057c (patch) | |
| tree | bec241496673f1882780062c94e839a798ce2f8b /libs/androidfw/StringPool.cpp | |
| parent | 7560f94eb3a68ac72f1638a915ccf680a5ae8d03 (diff) | |
identity: Fix uncompressed form encoding of P-256 EC Public Key.
Properly encode an P-256 EC Public Key in uncompressed form, in
particular ensure that the resulting blob is always 65 bytes long as
is expected.
Was able to reproduce this with about 4% failures running a
test. After the fix didn't get a failure in 1,000 runs.
Also remove unused Util.integerCollectionToArray() function.
Bug: 239857653
Test: atest --rerun-until-failure 1000 android.security.identity.cts.ProvisioningTest#testProvisionAndRetrieveMultipleTime
Change-Id: I9a8a5570fde5a80f74632606126cdfcc1f6c7c99
(cherry picked from commit dc379a45aa3043a478c1c93f93252612e5c8cafe)
Merged-In: I9a8a5570fde5a80f74632606126cdfcc1f6c7c99
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions