ApkGolf icon indicating copy to clipboard operation
ApkGolf copied to clipboard

APK Size varies depending on the generated keystore

Open fractalwrench opened this issue 6 years ago • 1 comments

We should probably find the optimal one and use that. Currently it varies by a few bytes each time the build script runs.

fractalwrench avatar Oct 11 '17 19:10 fractalwrench

It's not just the keystore. It's also that ECDSA signature length can fluctuate for the same key and message digest because the signature consists of two numbers encoded using ASN.1 DER which uses variable-length encoding for numbers. Because ECDSA signatures are usually non-deterministic, the values of these two numbers change each time you sign, even if the input being signed does not change.

klyubin avatar Oct 11 '17 21:10 klyubin