diff --git a/Cargo.lock b/Cargo.lock index b5599a0..e6909e2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -8,8 +8,8 @@ version = "0.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "94d1988118c887f61418940e322d574e8a2dd67165f1f1556eaae22e4019c6af" dependencies = [ - "block-buffer", - "digest", + "block-buffer 0.9.0", + "digest 0.9.0", "ppv-lite86", ] @@ -23,6 +23,15 @@ dependencies = [ "generic-array", ] +[[package]] +name = "block-buffer" +version = "0.10.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71" +dependencies = [ + "generic-array", +] + [[package]] name = "block-padding" version = "0.2.1" @@ -44,6 +53,16 @@ dependencies = [ "generic-array", ] +[[package]] +name = "crypto-common" +version = "0.1.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3" +dependencies = [ + "generic-array", + "typenum", +] + [[package]] name = "digest" version = "0.9.0" @@ -53,6 +72,16 @@ dependencies = [ "generic-array", ] +[[package]] +name = "digest" +version = "0.10.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292" +dependencies = [ + "block-buffer 0.10.4", + "crypto-common", +] + [[package]] name = "generic-array" version = "0.14.4" @@ -65,13 +94,11 @@ dependencies = [ [[package]] name = "groestl" -version = "0.9.0" +version = "0.10.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2432787a9b8f0d58dca43fe2240399479b7582dc8afa2126dc7652b864029e47" +checksum = "343cfc165f92a988fd60292f7a0bfde4352a5a0beff9fbec29251ca4e9676e4d" dependencies = [ - "block-buffer", - "digest", - "opaque-debug", + "digest 0.10.7", ] [[package]] @@ -86,7 +113,7 @@ version = "0.2.6" dependencies = [ "blake-hash", "byteorder", - "digest", + "digest 0.9.0", "groestl", "sha3", "skein-hash", @@ -110,8 +137,8 @@ version = "0.9.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "f81199417d4e5de3f04b1e871023acea7389672c4135918f05aa9cbf2f2fa809" dependencies = [ - "block-buffer", - "digest", + "block-buffer 0.9.0", + "digest 0.9.0", "keccak", "opaque-debug", ] @@ -122,8 +149,8 @@ version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5726f8a6133ac5f2fc62f3b0f132e85341623e9a7d3740d1092f15a1fa5d2a62" dependencies = [ - "block-buffer", - "digest", + "block-buffer 0.9.0", + "digest 0.9.0", "threefish-cipher", ] @@ -138,9 +165,9 @@ dependencies = [ [[package]] name = "typenum" -version = "1.12.0" +version = "1.17.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "373c8a200f9e67a0c95e62a4f52fbf80c23b4381c05a17845531982fa99e6b33" +checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825" [[package]] name = "version_check" diff --git a/Cargo.toml b/Cargo.toml index 1f26047..c097c21 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -15,7 +15,7 @@ keywords = ["lyra2", "Lyra2RE", "Lyra2REv2", "Lyra2REv3"] [dependencies] sha3 = "0.9.1" blake-hash = "0.4.1" -groestl = "0.9.0" +groestl = "0.10.1" byteorder = { version = "1.3.4", default-features = false } skein-hash = "0.3.1" digest = "0.9.0" diff --git a/src/lyra2re.rs b/src/lyra2re.rs index 7f37095..6470afa 100644 --- a/src/lyra2re.rs +++ b/src/lyra2re.rs @@ -3,7 +3,8 @@ //! `lyra2re` crate has necessary formulas to calculate `lyra2re`. use crate::lyra2; use digest::generic_array::typenum::U32; -use blake_hash::Digest; +use blake_hash::Digest as BlakeDigest; +use groestl::Digest; /// Returns the calculation result of lyra2re. /// # Examples @@ -30,7 +31,7 @@ pub fn sum(input: Vec) -> Vec { let result_skein = skein_hash::Skein512::::digest(&result_lyra2); - groestl::Groestl256::digest(&result_skein).to_vec() + groestl::Groestl256::digest(result_skein).to_vec() } #[test]