Home
last modified time | relevance | path

Searched refs:HashTreeBuilder (Results 1 – 12 of 12) sorted by relevance

/system/extras/verity/
Dbuild_verity_tree_test.cpp42 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 …]
Dhash_tree_builder.cpp32 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 …]
Dbuild_verity_tree_main.cpp78 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()
Dbuild_verity_tree.cpp27 HashTreeBuilder* builder, in generate_verity_tree()
62 auto sparse_hasher = static_cast<HashTreeBuilder*>(priv); in generate_verity_tree()
/system/apex/apexd/
Dapexd_verity.cpp72 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/
Dhash_tree_builder.h34 class HashTreeBuilder {
36 HashTreeBuilder(size_t block_size, const EVP_MD* md);
Dbuild_verity_tree.h29 HashTreeBuilder* hasher,
/system/update_engine/payload_generator/
Dpayload_generation_config_android.cc82 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/
Dfec_unittest.cpp43 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/
Dverity_writer_android.h66 std::unique_ptr<HashTreeBuilder> hash_tree_builder_;
Dverity_writer_android.cc48 HashTreeBuilder::HashFunction(partition_->hash_tree_algorithm); in Init()
54 hash_tree_builder_ = std::make_unique<HashTreeBuilder>( in Init()
Dfilesystem_verifier_action_unittest.cc71 hash_tree_size = HashTreeBuilder::CalculateSize( in SetUp()