summaryrefslogtreecommitdiff
path: root/verity/build_verity_tree_main.cpp
AgeCommit message (Collapse)Author
2018-07-25Export headers for libverity_treeTianjie Xu
Also factor out a function to convert a hex string to the byte array. Bug: 25170618 Test: unit tests pass Change-Id: Id9252d58d8de065bce332e806e2302dd18a54a8c
2018-07-24Add support of more hash algorithms for verity tree builderTianjie Xu
Currently, verified boot 1.0 is using SHA256 to compute the hash tree while AVB is using SHA1. We should support at least these two hash functionss in the HashTreeBuilder and command line parser. And we can potentially add more algorithms in the future. Bug: 25170618 Test: unit tests pass Change-Id: I5f6dc8a545c0cef75acbbc2044959e8100f9f842
2018-07-23[verity] Modernize codebase by replacing NULL with nullptrYi Kong
Fixes -Wzero-as-null-pointer-constant warning. Test: m Bug: 68236239 Change-Id: I1772953d2e66d3030aaa5a65e42d6ad664d19d78
2018-07-18Move functions in build_verity_tree to a static libraryTianjie Xu
Move the functions to calculate the hash tree size & generate the tree to a seperate static library. Also switch to libbase logging. Bug: 25170618 Test: run build_verity_tree to calculate size & generate a tree Change-Id: I88a2ce077292e35fe069d00000a9e59dbeb95317