diff options
| author | 2022-07-21 17:11:36 -0400 | |
|---|---|---|
| committer | 2022-07-22 09:49:14 -0400 | |
| commit | dc379a45aa3043a478c1c93f93252612e5c8cafe (patch) | |
| tree | f5f754c2c98544c31effd3484a775511e9812a1d /libs/androidfw/misc.cpp | |
| parent | 2c2ef9a04ab47ed3efb2c7d7747580b755634a7f (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
Diffstat (limited to 'libs/androidfw/misc.cpp')
0 files changed, 0 insertions, 0 deletions