diff options
author | Jonathan Davies <jpds@protonmail.com> | 2023-01-23 22:19:37 +0000 |
---|---|---|
committer | Jonathan Davies <jpds@protonmail.com> | 2023-01-26 11:13:11 +0000 |
commit | f952e37ba772b9286ba814ddb29f17d0ec7731c6 (patch) | |
tree | 0dd189e0b4a2c834b00019952ccf542960308335 /src/util | |
parent | fbafa76284e35b11b3862c1b8aa7ba85939799d9 (diff) | |
download | garage-f952e37ba772b9286ba814ddb29f17d0ec7731c6.tar.gz garage-f952e37ba772b9286ba814ddb29f17d0ec7731c6.zip |
{model,util}/Cargo.toml: Updated blake2 from 0.9 to 0.10.
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/Cargo.toml | 2 | ||||
-rw-r--r-- | src/util/data.rs | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/util/Cargo.toml b/src/util/Cargo.toml index 5a36386d..cbda43c0 100644 --- a/src/util/Cargo.toml +++ b/src/util/Cargo.toml @@ -18,7 +18,7 @@ garage_db = { version = "0.8.1", path = "../db" } arc-swap = "1.0" async-trait = "0.1" -blake2 = "0.9" +blake2 = "0.10" bytes = "1.0" digest = "0.10" err-derive = "0.3" diff --git a/src/util/data.rs b/src/util/data.rs index 3f61e301..bdd8daee 100644 --- a/src/util/data.rs +++ b/src/util/data.rs @@ -115,9 +115,9 @@ pub fn sha256sum(data: &[u8]) -> Hash { /// Compute the blake2 of a slice pub fn blake2sum(data: &[u8]) -> Hash { - use blake2::{Blake2b, Digest}; + use blake2::{Blake2b512, Digest}; - let mut hasher = Blake2b::new(); + let mut hasher = Blake2b512::new(); hasher.update(data); let mut hash = [0u8; 32]; hash.copy_from_slice(&hasher.finalize()[..32]); |