| 239 | } |
| 240 | |
| 241 | bool IntegrityHash::Verify(const uint8_t* data, int64_t len) const { |
| 242 | IntegrityHash test_hash; |
| 243 | test_hash.Compute(data, len); |
| 244 | return memcmp(hash_, test_hash.hash_, sizeof(hash_)) == 0; |
| 245 | } |
| 246 | |
| 247 | AuthenticationHash::AuthenticationHash() { |
| 248 | uint64_t next_key_num = keys_generated.Add(1); |