commit | 622e628b4dd1f0347c43c7c43ad73aa1d8542f09 | [log] [tgz] |
---|---|---|
author | Tianjie Xu <xunchang@google.com> | Mon Dec 02 12:55:33 2019 -0800 |
committer | Tianjie Xu <xunchang@google.com> | Wed Dec 18 14:27:02 2019 -0800 |
tree | fcf9f2908042a9d5d9763c4014126842ba023739 | |
parent | fb4066a3900492e46a46b7d2ee09708e3168314f [diff] |
Add sha1 support for hashtree AVB format uses sha1 as the hash algorithm when computing the hash of each block. This cl adds the support to use either sha1 or sha256 in the hashtree_info struct. It also moves some helper functions as the member function of the struct. Bug: 144388532 Test: unit tests pass Change-Id: Ie4aef1bdd8fa89240f7c6f83fcb2e33f47a468cb