Searched refs:AVB_AFTL_HASH_SIZE (Results 1 – 6 of 6) sorted by relevance
/external/avb/test/ |
D | avb_aftl_validate_unittest.cc | 161 icp_entry_->log_root_descriptor.root_hash_size = AVB_AFTL_HASH_SIZE; in SetUp() 167 AVB_AFTL_HASH_SIZE + in SetUp() 179 AVB_AFTL_HASH_SIZE); in SetUp() 181 AVB_AFTL_HASH_SIZE, in SetUp() 185 (uint8_t*)avb_malloc(AVB_AFTL_HASH_SIZE); in SetUp() 190 AVB_AFTL_HASH_SIZE); in SetUp() 201 AVB_AFTL_HASH_SIZE + kAnnotationFooterSize; in SetUp() 214 AVB_AFTL_HASH_SIZE; in SetUp() 216 (uint8_t*)avb_calloc(AVB_AFTL_HASH_SIZE); in SetUp() 220 AVB_AFTL_HASH_SIZE); in SetUp() [all …]
|
D | avb_aftl_util_unittest.cc | 96 AVB_AFTL_HASH_SIZE); in TestAftlIcpEntry() 102 AVB_AFTL_HASH_SIZE); in TestAftlIcpEntry()
|
/external/avb/libavb_aftl/ |
D | avb_aftl_validate.c | 38 uint8_t vbmeta_hash[AVB_AFTL_HASH_SIZE]; in avb_aftl_verify_vbmeta_hash() 46 AVB_AFTL_HASH_SIZE) { in avb_aftl_verify_vbmeta_hash() 54 AVB_AFTL_HASH_SIZE) == 0; in avb_aftl_verify_vbmeta_hash() 59 uint8_t leaf_hash[AVB_AFTL_HASH_SIZE]; in avb_aftl_verify_icp_root_hash() 60 uint8_t result_hash[AVB_AFTL_HASH_SIZE]; in avb_aftl_verify_icp_root_hash() 75 AVB_AFTL_HASH_SIZE, in avb_aftl_verify_icp_root_hash() 82 AVB_AFTL_HASH_SIZE) == 0); in avb_aftl_verify_icp_root_hash() 91 uint8_t log_root_hash[AVB_AFTL_HASH_SIZE]; in avb_aftl_verify_entry_signature() 104 log_root_hash_num_bytes = AVB_AFTL_HASH_SIZE; in avb_aftl_verify_entry_signature()
|
D | avb_aftl_util.c | 37 uint8_t hash[AVB_AFTL_HASH_SIZE]) { in avb_aftl_sha256() argument 46 avb_memcpy(hash, tmp, AVB_AFTL_HASH_SIZE); in avb_aftl_sha256() 124 avb_assert(seed_size == AVB_AFTL_HASH_SIZE); in avb_aftl_chain_border_right() 127 tmp_hash = (uint8_t*)avb_malloc(AVB_AFTL_HASH_SIZE); in avb_aftl_chain_border_right() 133 retval = avb_aftl_rfc6962_hash_children(proof + (i * AVB_AFTL_HASH_SIZE), in avb_aftl_chain_border_right() 134 AVB_AFTL_HASH_SIZE, in avb_aftl_chain_border_right() 136 AVB_AFTL_HASH_SIZE, in avb_aftl_chain_border_right() 145 if (retval) avb_memcpy(hash, tmp, AVB_AFTL_HASH_SIZE); in avb_aftl_chain_border_right() 163 avb_assert(seed_size == AVB_AFTL_HASH_SIZE); in avb_aftl_chain_inner() 166 tmp_hash = (uint8_t*)avb_malloc(AVB_AFTL_HASH_SIZE); in avb_aftl_chain_inner() [all …]
|
D | avb_aftl_types.h | 43 #define AVB_AFTL_HASH_SIZE 32ul macro 52 #define AVB_AFTL_MAX_PROOF_SIZE 64 * AVB_AFTL_HASH_SIZE 69 AVB_AFTL_HASH_SIZE + sizeof(uint64_t) + sizeof(uint64_t) + \ 89 AVB_AFTL_SIGNATURE_SIZE + AVB_AFTL_HASH_SIZE) 184 uint8_t (*proofs)[AVB_AFTL_HASH_SIZE];
|
D | avb_aftl_util.h | 49 uint8_t hash[AVB_AFTL_HASH_SIZE]); /* Resulting SHA256 hash. */ 69 hash[AVB_AFTL_HASH_SIZE]); /* Resulting RFC 6962 hash of the children.*/ 96 uint8_t proof[][AVB_AFTL_HASH_SIZE], /* Inclusion proof hash data. */
|