Lines Matching refs:hash
40 // Validate the metadata's hash value.
46 reinterpret_cast<const void*>(header->hash + sizeof(header->hash));
47 uint8_t empty_hash[sizeof(header->hash)];
52 digest.Update(metadata, offsetof(fvm::fvm_t, hash));
55 metadata_size - (offsetof(fvm::fvm_t, hash) + sizeof(header->hash)));
57 return digest == header->hash;
90 memset(header->hash, 0, sizeof(header->hash));
92 const uint8_t* hash = digest.Hash(metadata, metadata_size);
93 memcpy(header->hash, hash, sizeof(header->hash));