(hasher: &mut Hasher, value: &[u8])
| 315 | /// and body — not only the body content hash). |
| 316 | fn vault_entry_revision_hash(entry: &VaultEntry) -> String { |
| 317 | fn append_revision_field(hasher: &mut Hasher, value: &[u8]) { |
| 318 | hasher.update(&(value.len() as u64).to_be_bytes()); |
| 319 | hasher.update(value); |
| 320 | } |
| 321 | let mut hasher = Hasher::new(); |
| 322 | hasher.update(b"atomic-vault-revision-v1"); |
| 323 | append_revision_field(&mut hasher, entry.entry_type.as_str().as_bytes()); |
no test coverage detected