platform_build/tools/releasetools/testdata
Tianjie Xu 21e6deb647 Call delta_generator to get the signature size
The signature size is needed during payload hashing and signing.
We used to sign the update_engine's payload with RSA keys only. In
this case, the signature size always equals the key size. But the
assumption is no longer true for EC keys, whose DER-encoded signature
size is a variant with a maximum size.

Therefore, we always give the maximum signature size to the delta
generator, who then add paddings to the real signature if necessary.
The maximum signature size is calculated by calling the delta_generator
with the new option '--calculate_signature_size'. For custom payload
signers, we also deprecate the '--payload_signer_key_size' and replace
it with '--payload_signer_maximum_signature_size'.

The EC key in the test is generated with:
The EC key in the unittest is generated with the command:
openssl ecparam -name prime256v1 -genkey -noout -out prime256v1-key.pem
openssl pkey -in prime256v1-key.pem -out testkey_EC.key

Bug: 141244025
Test: sign and verify a payload
Change-Id: Ife6e269d8aa3d870405aca20086330f1795e167f
2019-10-12 00:36:54 +00:00
..
vintf releasetools: add tests for check_target_files_vintf 2019-08-28 11:02:26 -07:00
apexkeys_framework.txt Renames system to framework and other to vendor. 2019-06-05 16:47:15 -07:00
apexkeys_framework_conflict.txt Renames system to framework and other to vendor. 2019-06-05 16:47:15 -07:00
apexkeys_merge.txt Add merging of apexkeys and apkcerts metadata 2019-05-20 18:35:22 +00:00
apexkeys_vendor.txt Renames system to framework and other to vendor. 2019-06-05 16:47:15 -07:00
foo.apex releasetools: Add sanity test for sign_apex. 2019-06-26 17:17:09 -07:00
media.x509.pem releasetools: Check for duplicate entries in ReplaceCerts(). 2018-02-20 10:22:30 -08:00
merge_config_framework_item_list Renames system to framework and other to vendor. 2019-06-05 16:47:15 -07:00
payload_signer.sh releasetools: Add PayloadSigner class. 2018-01-19 13:25:04 -08:00
platform.x509.pem releasetools: Check for duplicate entries in ReplaceCerts(). 2018-02-20 10:22:30 -08:00
sigfile.bin releasetools: Add PayloadSigner class. 2018-01-19 13:25:04 -08:00
signed-sigfile.bin releasetools: Add PayloadSigner class. 2018-01-19 13:25:04 -08:00
signing_helper.sh releasetools: Add apex_utils.py. 2019-03-15 22:08:42 -07:00
TestApp.apk releasetools: Fix an issue in GetMinSdkVersion. 2018-03-22 10:27:04 -07:00
testkey.key releasetools: Support verifying AVB signed images with chained partitions. 2018-07-23 15:20:14 -07:00
testkey.pk8 releasetools: Add PayloadSigner class. 2018-01-19 13:25:04 -08:00
testkey.pubkey.pem releasetools: Fix an issue with pubkey extraction. 2018-02-04 13:59:52 -08:00
testkey.x509.pem releasetools: Add PayloadSigner class. 2018-01-19 13:25:04 -08:00
testkey_EC.key Call delta_generator to get the signature size 2019-10-12 00:36:54 +00:00
testkey_mincrypt releasetools: Support validating Verified Boot images. 2018-03-12 00:17:09 -07:00
testkey_RSA4096.key Pass the correct signature size to payload generator 2019-04-09 17:41:00 -07:00
testkey_with_passwd.key releasetools: Add apex_utils.py. 2019-03-15 22:08:42 -07:00
testkey_with_passwd.pk8 releasetools: Add PayloadSigner class. 2018-01-19 13:25:04 -08:00
testkey_with_passwd.x509.pem releasetools: Add PayloadSigner class. 2018-01-19 13:25:04 -08:00
verity.x509.pem releasetools: Clean up test_sign_target_files_apks.py. 2018-02-20 10:12:15 -08:00
verity_mincrypt releasetools: Add tests for VerityImageBuilder. 2018-11-06 10:00:51 -08:00