Lines Matching refs:SHA256_DIGEST_LENGTH
105 hashes = fec_div_round_up(hashes * SHA256_DIGEST_LENGTH, FEC_BLOCKSIZE); in verity_get_size()
146 uint8_t hash[SHA256_DIGEST_LENGTH]; in verity_check_block()
154 return !memcmp(expected, hash, SHA256_DIGEST_LENGTH); in verity_check_block()
164 if (hash && fec_pread(f, hash, SHA256_DIGEST_LENGTH, hash_offset) != in ecc_read_hashes()
165 SHA256_DIGEST_LENGTH) { in ecc_read_hashes()
188 uint8_t hash[SHA256_DIGEST_LENGTH]; in verify_tree()
270 if (!raw_pread(f, hash, SHA256_DIGEST_LENGTH, in verify_tree()
271 hash_offset + j * SHA256_DIGEST_LENGTH) || in verify_tree()
281 hash_offset + j * SHA256_DIGEST_LENGTH, hash, in verify_tree()
293 if (!raw_pwrite(f, hash, SHA256_DIGEST_LENGTH, in verify_tree()
294 hash_offset + j * SHA256_DIGEST_LENGTH) || in verify_tree()
348 uint8_t root[SHA256_DIGEST_LENGTH]; in parse_table()