commit | 8febafa67e93b2159804b1130a41f15b009de1cd | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Wed Apr 13 16:39:56 2016 -0700 |
committer | Elliott Hughes <enh@google.com> | Wed Apr 13 16:39:56 2016 -0700 |
tree | dfc6e4e42d45f1766fe35f82929d190b74b21d64 | |
parent | a58a6dbe3d06aace0d1419838e162aa5267a4fc0 [diff] |
Use BoringSSL instead of mincrypt to speed up package verification. This changes the verification code in bootable/recovery to use BoringSSL instead of mincrypt. Cherry-pick of 452df6d99c81c4eeee3d2c7b2171901e8b7bc54a, with merge conflict resolution, extra logging in verifier.cpp, and an increase in the hash chunk size from 4KiB to 1MiB. Bug: http://b/28135231 Change-Id: I1ed7efd52223dd6f6a4629cad187cbc383d5aa84
mm -j && m ramdisk-nodeps && m recoveryimage-nodeps # To boot into the new recovery image # without flashing the recovery partition: adb reboot bootloader fastboot boot $ANDROID_PRODUCT_OUT/recovery.img
# After setting up environment and lunch. mmma -j bootable/recovery # Running the tests on device. adb root adb sync data # 32-bit device adb shell /data/nativetest/recovery_unit_test/recovery_unit_test adb shell /data/nativetest/recovery_component_test/recovery_component_test # Or 64-bit device adb shell /data/nativetest64/recovery_unit_test/recovery_unit_test adb shell /data/nativetest64/recovery_component_test/recovery_component_test