summaryrefslogtreecommitdiff
path: root/libs/androidfw/misc.cpp
diff options
context:
space:
mode:
author David Zeuthen <zeuthen@google.com> 2022-07-21 17:11:36 -0400
committer David Zeuthen <zeuthen@google.com> 2022-07-22 09:49:14 -0400
commitdc379a45aa3043a478c1c93f93252612e5c8cafe (patch)
treef5f754c2c98544c31effd3484a775511e9812a1d /libs/androidfw/misc.cpp
parent2c2ef9a04ab47ed3efb2c7d7747580b755634a7f (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