Searched refs:HashTreeBuilder (Results 1 – 12 of 12) sorted by relevance
/system/extras/verity/ |
D | build_verity_tree_test.cpp | 42 builder.reset(new HashTreeBuilder(4096, EVP_sha256())); in SetUp() 60 std::unique_ptr<HashTreeBuilder> builder; 81 HashTreeBuilder::BytesArrayToString(zero_block_hash())); in TEST_F() 91 HashTreeBuilder::BytesArrayToString(builder->root_hash())); in TEST_F() 101 HashTreeBuilder::BytesArrayToString(builder->root_hash())); in TEST_F() 108 new HashTreeBuilder(4096, HashTreeBuilder::HashFunction("blake2b-256"))); in TEST_F() 113 HashTreeBuilder::BytesArrayToString(builder->root_hash())); in TEST_F() 124 HashTreeBuilder::BytesArrayToString(builder->root_hash())); in TEST_F() 147 HashTreeBuilder::BytesArrayToString(builder->root_hash())); in TEST_F() 169 HashTreeBuilder::BytesArrayToString(builder->root_hash())); in TEST_F() [all …]
|
D | hash_tree_builder.cpp | 32 const EVP_MD* HashTreeBuilder::HashFunction(const std::string& hash_name) { in HashFunction() 53 HashTreeBuilder::HashTreeBuilder(size_t block_size, const EVP_MD* md) in HashTreeBuilder() function in HashTreeBuilder 67 std::string HashTreeBuilder::BytesArrayToString( in BytesArrayToString() 76 bool HashTreeBuilder::ParseBytesArrayFromString( in ParseBytesArrayFromString() 99 uint64_t HashTreeBuilder::CalculateSize( in CalculateSize() 114 bool HashTreeBuilder::Initialize(int64_t expected_data_size, in Initialize() 140 bool HashTreeBuilder::HashBlock(const unsigned char* block, in HashBlock() 160 bool HashTreeBuilder::HashBlocks(const unsigned char* data, size_t len, in HashBlocks() 187 bool HashTreeBuilder::Update(const unsigned char* data, size_t len) { in Update() 221 bool HashTreeBuilder::CalculateRootDigest(const std::vector<unsigned char>& root_verity, in CalculateRootDigest() [all …]
|
D | build_verity_tree_main.cpp | 78 if (!HashTreeBuilder::ParseBytesArrayFromString(optarg, &salt)) { in main() 118 : HashTreeBuilder::HashFunction(hash_algorithm); in main() 122 HashTreeBuilder builder(kBlockSize, hash_function); in main() 164 HashTreeBuilder::BytesArrayToString(builder.root_hash()); in main() 165 std::string salt_string = HashTreeBuilder::BytesArrayToString(salt); in main()
|
D | build_verity_tree.cpp | 27 HashTreeBuilder* builder, in generate_verity_tree() 62 auto sparse_hasher = static_cast<HashTreeBuilder*>(priv); in generate_verity_tree()
|
/system/apex/apexd/ |
D | apexd_verity.cpp | 72 auto hash_fn = HashTreeBuilder::HashFunction(verity_data.hash_algorithm); in GenerateHashTree() 78 auto builder = std::make_unique<HashTreeBuilder>(block_size, hash_fn); in GenerateHashTree() 135 auto hash_fn = HashTreeBuilder::HashFunction(verity_data.hash_algorithm); in CalculateRootDigest() 140 auto builder = std::make_unique<HashTreeBuilder>(block_size, hash_fn); in CalculateRootDigest() 148 auto result = HashTreeBuilder::BytesArrayToString(root_digest); in CalculateRootDigest()
|
/system/extras/verity/include/verity/ |
D | hash_tree_builder.h | 34 class HashTreeBuilder { 36 HashTreeBuilder(size_t block_size, const EVP_MD* md);
|
D | build_verity_tree.h | 29 HashTreeBuilder* hasher,
|
/system/update_engine/payload_generator/ |
D | payload_generation_config_android.cc | 82 HashTreeBuilder::HashFunction(part.verity.hash_tree_algorithm); in VerifyVerityConfig() 84 HashTreeBuilder hash_tree_builder(block_size, hash_function); in VerifyVerityConfig() 201 HashTreeBuilder::HashFunction(part.verity.hash_tree_algorithm); in LoadVerityConfig() 203 HashTreeBuilder hash_tree_builder(block_size, hash_function); in LoadVerityConfig()
|
/system/extras/libfec/test/ |
D | fec_unittest.cpp | 43 HashTreeBuilder builder(4096, HashTreeBuilder::HashFunction(hash_name)); in BuildHashtree() 75 HashTreeBuilder::BytesArrayToString(root_hash_), in BuildAndAppendsVerityMetadata() 76 HashTreeBuilder::BytesArrayToString(salt_), in BuildAndAppendsVerityMetadata() 110 "--salt", HashTreeBuilder::BytesArrayToString(salt_), in AddAvbHashtreeFooter()
|
/system/update_engine/payload_consumer/ |
D | verity_writer_android.h | 66 std::unique_ptr<HashTreeBuilder> hash_tree_builder_;
|
D | verity_writer_android.cc | 48 HashTreeBuilder::HashFunction(partition_->hash_tree_algorithm); in Init() 54 hash_tree_builder_ = std::make_unique<HashTreeBuilder>( in Init()
|
D | filesystem_verifier_action_unittest.cc | 71 hash_tree_size = HashTreeBuilder::CalculateSize( in SetUp()
|