Home
last modified time | relevance | path

Searched refs:HashTreeBuilder (Results 1 – 11 of 11) 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()
112 HashTreeBuilder::BytesArrayToString(builder->root_hash())); in TEST_F()
135 HashTreeBuilder::BytesArrayToString(builder->root_hash())); in TEST_F()
157 HashTreeBuilder::BytesArrayToString(builder->root_hash())); in TEST_F()
178 std::string expected_root_digest = HashTreeBuilder::BytesArrayToString(builder->root_hash()); in TEST_F()
182 ASSERT_EQ(expected_root_digest, HashTreeBuilder::BytesArrayToString(actual_root_digest)); in TEST_F()
[all …]
Dhash_tree_builder.cpp31 const EVP_MD* HashTreeBuilder::HashFunction(const std::string& hash_name) { in HashFunction()
49 HashTreeBuilder::HashTreeBuilder(size_t block_size, const EVP_MD* md) in HashTreeBuilder() function in HashTreeBuilder
63 std::string HashTreeBuilder::BytesArrayToString( in BytesArrayToString()
72 bool HashTreeBuilder::ParseBytesArrayFromString( in ParseBytesArrayFromString()
95 uint64_t HashTreeBuilder::CalculateSize(uint64_t input_size) const { in CalculateSize()
109 bool HashTreeBuilder::Initialize(int64_t expected_data_size, in Initialize()
135 bool HashTreeBuilder::HashBlock(const unsigned char* block, in HashBlock()
155 bool HashTreeBuilder::HashBlocks(const unsigned char* data, size_t len, in HashBlocks()
182 bool HashTreeBuilder::Update(const unsigned char* data, size_t len) { in Update()
216 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.cpp70 auto hash_fn = HashTreeBuilder::HashFunction(verity_data.hash_algorithm); in GenerateHashTree()
76 auto builder = std::make_unique<HashTreeBuilder>(block_size, hash_fn); in GenerateHashTree()
129 auto hash_fn = HashTreeBuilder::HashFunction(verity_data.hash_algorithm); in CalculateRootDigest()
134 auto builder = std::make_unique<HashTreeBuilder>(block_size, hash_fn); in CalculateRootDigest()
142 auto result = HashTreeBuilder::BytesArrayToString(root_digest); in CalculateRootDigest()
/system/extras/verity/include/verity/
Dhash_tree_builder.h33 class HashTreeBuilder {
35 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/update_engine/payload_consumer/
Dverity_writer_android.h55 std::unique_ptr<HashTreeBuilder> hash_tree_builder_;
Dverity_writer_android.cc49 HashTreeBuilder::HashFunction(partition_->hash_tree_algorithm); in Init()
55 hash_tree_builder_ = std::make_unique<HashTreeBuilder>( in Init()
/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()