History log of /system/extras/verity/build_verity_tree.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
88d51357dc38642e709216ec2217b18e92884b35 23-Sep-2017 Tao Bao <tbao@google.com> verity: Fix the broken 'build_verity_tree -A'.

Commit 6eb049322c26431961fb69168a113bfd27016ab3 introduced a bug in
checking if there's any passed-in salt string (via '-A <salt>' or '-a
<salt>'). "salt.data()" should be "salt.empty()", which otherwise may
or may not be nullptr even if salt is empty. This CL fixes the issue.

This CL also removes the duplicate variable 'salt_size', which can be
fully covered by salt.size().

Test: m build_verity_tree;
Test: `build_verity_tree system.img verity.img` gives random root hash
and salt string across runs.
Test: `build_verity_tree -A <hex string> system.img verity.img` gives
identical results across runs.
Test: `build_verity_tree -a <string> system.img verity.img` gives
identical results across runs.
Change-Id: I377e42fc48c0f703dc33d813466f6ef60514bbe5
/system/extras/verity/build_verity_tree.cpp
390c1a849ea3ce062104f11ef91dd5aadf1302a3 08-Sep-2017 Elliott Hughes <enh@google.com> Merge "<stdbool.h> not necessary in C++."
ac8b2cec710de328afca74dfc2885883eff6a9f1 07-Sep-2017 Elliott Hughes <enh@google.com> <stdbool.h> not necessary in C++.

Bug: N/A
Test: builds
Change-Id: I02c2619bd5ddcabf19b0fea6845e2ffbe9c9edf6
/system/extras/verity/build_verity_tree.cpp
6eb049322c26431961fb69168a113bfd27016ab3 30-Aug-2017 Yunlian Jiang <yunlian@google.com> fix memory leak in unittest.

This fixes the warning
warning: Potential leak of memory pointed to by 'salt' [clang-analyzer-cplusplus.NewDeleteLeaks]

Bug: None
Test: The warning is gone.
Change-Id: I1a31188775c2a099949bf8b8e2613b71af5081cd
/system/extras/verity/build_verity_tree.cpp
66dd09e8e2407082ce93bf0784de641298131912 04-Dec-2015 Elliott Hughes <enh@google.com> Track rename from base/ to android-base/.

Change-Id: Ic15d4778c7accd1382de0b440a437aba2cf67016
/system/extras/verity/build_verity_tree.cpp
b1040442e04e97a40473edb7c0c325310c07e6ff 13-May-2015 Elliott Hughes <enh@google.com> Fix unused result warnings in system/extras/verity.

This lets us turn on _FORTIFY_SOURCE=2 for the host.

Bug: http://b/20558757
Change-Id: Iea7761874b0ccc68920c4d90889e83281155e52b
/system/extras/verity/build_verity_tree.cpp
70f72fb1035e753f5cef176339618723fba943e2 31-Mar-2015 Mohamad Ayyash <mkayyash@google.com> build_verity_tree: Add verbose flag

Change-Id: I0c5607f7aa5e964abc2031bbe71ff5c6e6ef56cc
Signed-off-by: Mohamad Ayyash <mkayyash@google.com>
/system/extras/verity/build_verity_tree.cpp
88ea006e101703d0da66d9b43a7b2349da4db260 14-Oct-2014 Qin Ying <qin.ying@sonymobile.com> Add 64 bit support to verity build.

Now build verity only support 32bit environment, when the image
size is bigger than 2^32 the verity image size calculation will
be mistake.

Change-Id: I41e5fe720c1269d6c06e23bfce5bc65226fb6e77
/system/extras/verity/build_verity_tree.cpp
77dd19788c9f6368a706fec402d46c52b930cfe4 21-Jan-2015 Adam Langley <agl@google.com> Include bn.h for BN_ functions.

The BN_ functions used in this source file require bn.h to be included.
At the moment, a transitive include via evp.h is keeping the build
working, but we shouldn't depend on that.

Change-Id: I7153f29ca61d53e6abb7a9df78d0c6aceccafdb2
/system/extras/verity/build_verity_tree.cpp
792cc086ff2a004af82f061147392445caeb879a 17-May-2014 Geremy Condra <gcondra@google.com> verity: Move build_verity_tree.cpp to use BN_* for hex conversion.

This fixes an issue where hexlified salts weren't being properly
consumed by moving to OpenSSL's BN_* functions.

Bug: 15018770
Change-Id: Iece1f2991d3b23d4ae7ff66b5fb02abc388cfa80
/system/extras/verity/build_verity_tree.cpp
e798a23402f2ccf8c30b8dd1610e444ec06f2049 01-May-2014 Ben Murdoch <benm@google.com> Fix Mac build.

Use correct format specifiers on the mac build.

Change-Id: I626a766d9078ada9f073eeb107720d1feae07b68
/system/extras/verity/build_verity_tree.cpp
724396ed8dbf71ce2744e916fec2e6aec05d1041 17-Apr-2014 Colin Cross <ccross@android.com> verity: add C++ version of build_verity_tree that handles sparse files

A C++ version can reuse libsparse to calculate the verity hash tree
of a sparse file without unsparsing it. In addition to saving disk
space, it also cuts the time taken in half by optimizing out the
hash calculation for skipped blocks that are known to be zero.

Change-Id: I882fe3a417dc2c83bb0e6cd974b6a886f8bc8ac3
/system/extras/verity/build_verity_tree.cpp