Home
last modified time | relevance | path

Searched refs:hash_size (Results 1 – 4 of 4) sorted by relevance

/system/extras/verity/
Dbuild_verity_tree.cpp25 uint64_t hash_size; member
40 size_t verity_tree_blocks(uint64_t data_size, size_t block_size, size_t hash_size, in verity_tree_blocks() argument
44 int hashes_per_block = div_round_up(block_size, hash_size); in verity_tree_blocks()
105 memcpy(ctx->hashes, ctx->zero_block_hash, ctx->hash_size); in hash_chunk()
106 ctx->hashes += ctx->hash_size; in hash_chunk()
214 size_t hash_size = EVP_MD_size(md); in main() local
215 assert(hash_size * 2 < block_size); in main()
218 salt_size = hash_size; in main()
245 level_blocks = verity_tree_blocks(calculate_size, block_size, hash_size, levels); in main()
289 level_blocks = verity_tree_blocks(len, block_size, hash_size, levels); in main()
[all …]
/system/bt/osi/src/
Dhash_map.c35 size_t hash_size; member
102 return (hash_map->hash_size == 0); in hash_map_is_empty()
107 return hash_map->hash_size; in hash_map_size()
145 hash_map->hash_size++; in hash_map_set()
169 hash_map->hash_size--; in hash_map_erase()
/system/extras/libfec/
Dfec_verity.cpp197 v->hash_size = in verify_tree()
200 check(v->hash_start < UINT64_MAX - v->hash_size); in verify_tree()
201 check(v->hash_start + v->hash_size <= f->data_size); in verify_tree()
242 check(v->hash_data_blocks <= v->hash_size / FEC_BLOCKSIZE); in verify_tree()
Dfec_private.h81 uint32_t hash_size; member