diff --git a/Cargo.lock b/Cargo.lock index 7c3661c543..a6daeaf5ea 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -103,7 +103,7 @@ dependencies = [ "ark-std", "blake2", "derivative", - "digest", + "digest 0.9.0", "rayon", "tracing", ] @@ -276,7 +276,7 @@ checksum = "1d6c2b318ee6e10f8c2853e73a83adc0ccb88995aa978d8a3408d492ab2ee671" dependencies = [ "ark-serialize-derive", "ark-std", - "digest", + "digest 0.9.0", ] [[package]] @@ -314,7 +314,7 @@ dependencies = [ "ark-serialize", "ark-std", "derivative", - "digest", + "digest 0.9.0", "rand_chacha 0.3.1", "tracing", ] @@ -650,7 +650,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0a4e37d16930f5459780f5621038b6382b9bb37c19016f39fb6b5808d831f174" dependencies = [ "crypto-mac", - "digest", + "digest 0.9.0", "opaque-debug", ] @@ -685,6 +685,15 @@ dependencies = [ "generic-array", ] +[[package]] +name = "block-buffer" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0bf7fe51849ea569fd452f37822f606a5cabb684dc918707a0193fd4664ff324" +dependencies = [ + "generic-array", +] + [[package]] name = "block-padding" version = "0.2.1" @@ -971,6 +980,15 @@ version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7" +[[package]] +name = "crypto-common" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4600d695eb3f6ce1cd44e6e291adceb2cc3ab12f20a33777ecd0bf6eba34e06" +dependencies = [ + "generic-array", +] + [[package]] name = "crypto-mac" version = "0.8.0" @@ -1028,7 +1046,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b9fdf9972b2bd6af2d913799d9ebc165ea4d2e65878e329d9c6b372c4491b61" dependencies = [ "byteorder", - "digest", + "digest 0.9.0", "rand_core 0.5.1", "subtle", "zeroize", @@ -1243,6 +1261,16 @@ dependencies = [ "generic-array", ] +[[package]] +name = "digest" +version = "0.10.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "8cb780dce4f9a8f5c087362b3a4595936b2019e7c8b30f2c3e9a7e94e6ae9837" +dependencies = [ + "block-buffer 0.10.2", + "crypto-common", +] + [[package]] name = "directories" version = "4.0.1" @@ -1304,7 +1332,7 @@ dependencies = [ "ed25519", "rand 0.7.3", "serde", - "sha2", + "sha2 0.9.9", "zeroize", ] @@ -1317,7 +1345,7 @@ dependencies = [ "hex", "rand_core 0.6.3", "serde", - "sha2", + "sha2 0.9.9", "thiserror", "zeroize", ] @@ -1744,7 +1772,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "126888268dcc288495a26bf004b38c5fdbb31682f992c84ceb046a1f0fe38840" dependencies = [ "crypto-mac", - "digest", + "digest 0.9.0", ] [[package]] @@ -1753,7 +1781,7 @@ version = "0.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "17ea0a1394df5b6574da6e0c1ade9e78868c9fb0a4e5ef4428e32da4676b85b1" dependencies = [ - "digest", + "digest 0.9.0", "generic-array", "hmac", ] @@ -2116,7 +2144,7 @@ dependencies = [ "rand 0.8.4", "ring", "rw-stream-sink", - "sha2", + "sha2 0.9.9", "smallvec", "thiserror", "unsigned-varint", @@ -2191,7 +2219,7 @@ dependencies = [ "prost-build", "rand 0.7.3", "regex", - "sha2", + "sha2 0.9.9", "smallvec", "unsigned-varint", ] @@ -2233,7 +2261,7 @@ dependencies = [ "prost", "prost-build", "rand 0.7.3", - "sha2", + "sha2 0.9.9", "smallvec", "uint", "unsigned-varint", @@ -2309,7 +2337,7 @@ dependencies = [ "prost", "prost-build", "rand 0.8.4", - "sha2", + "sha2 0.9.9", "snow", "static_assertions", "x25519-dalek", @@ -2403,7 +2431,7 @@ dependencies = [ "prost", "prost-build", "rand 0.8.4", - "sha2", + "sha2 0.9.9", "thiserror", "unsigned-varint", "void", @@ -2539,14 +2567,14 @@ checksum = "b0452aac8bab02242429380e9b2f94ea20cea2b37e2c1777a1358799bbe97f37" dependencies = [ "arrayref", "base64 0.13.0", - "digest", + "digest 0.9.0", "hmac-drbg", "libsecp256k1-core", "libsecp256k1-gen-ecmult", "libsecp256k1-gen-genmult", "rand 0.8.4", "serde", - "sha2", + "sha2 0.9.9", "typenum", ] @@ -2557,7 +2585,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "5be9b9bb642d8522a44d533eab56c16c738301965504753b03ad1de3425d5451" dependencies = [ "crunchy", - "digest", + "digest 0.9.0", "subtle", ] @@ -2764,10 +2792,10 @@ version = "0.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "752a61cd890ff691b4411423d23816d5866dd5621e4d1c5687a53b94b5a979d8" dependencies = [ - "digest", + "digest 0.9.0", "generic-array", "multihash-derive", - "sha2", + "sha2 0.9.9", "unsigned-varint", ] @@ -3150,7 +3178,7 @@ dependencies = [ "nimiq-mmr", "rust-argon2", "serde", - "sha2", + "sha2 0.10.1", ] [[package]] @@ -3256,7 +3284,7 @@ dependencies = [ "rand 0.8.4", "rand_core 0.6.3", "serde", - "sha2", + "sha2 0.10.1", "thiserror", ] @@ -3902,7 +3930,7 @@ dependencies = [ "rand 0.8.4", "serde", "serde-big-array", - "sha2", + "sha2 0.10.1", ] [[package]] @@ -5078,10 +5106,10 @@ version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "99cd6713db3cf16b6c84e06321e049a9b9f699826e16096d23bbcc44d15d51a6" dependencies = [ - "block-buffer", + "block-buffer 0.9.0", "cfg-if", "cpufeatures", - "digest", + "digest 0.9.0", "opaque-debug", ] @@ -5091,21 +5119,32 @@ version = "0.9.9" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4d58a1e1bf39749807d89cf2d98ac2dfa0ff1cb3faa38fbb64dd88ac8013d800" dependencies = [ - "block-buffer", + "block-buffer 0.9.0", "cfg-if", "cpufeatures", - "digest", + "digest 0.9.0", "opaque-debug", ] +[[package]] +name = "sha2" +version = "0.10.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "99c3bd8169c58782adad9290a9af5939994036b76187f7b4f0e6de91dbbfc0ec" +dependencies = [ + "cfg-if", + "cpufeatures", + "digest 0.10.2", +] + [[package]] name = "sha3" 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", ] @@ -5215,7 +5254,7 @@ dependencies = [ "rand_core 0.6.3", "ring", "rustc_version 0.3.3", - "sha2", + "sha2 0.9.9", "subtle", "x25519-dalek", ] diff --git a/hash/Cargo.toml b/hash/Cargo.toml index 9ad726e8f3..5dcae75021 100644 --- a/hash/Cargo.toml +++ b/hash/Cargo.toml @@ -21,7 +21,7 @@ blake2-rfc = "0.2" rust-argon2 = "1.0" byteorder = "1.2" hex = "0.4" -sha2 = "0.9" +sha2 = "0.10" serde = { version = "1.0", features = ["derive"], optional = true } beserial = { path = "../beserial" } diff --git a/keys/Cargo.toml b/keys/Cargo.toml index 1a2f3a1823..6651ced34d 100644 --- a/keys/Cargo.toml +++ b/keys/Cargo.toml @@ -24,7 +24,7 @@ thiserror = "1.0" hex = "0.4" rand_core = "0.6" rand = "0.8" -sha2 = "0.9" +sha2 = "0.10" serde = { version = "1.0", optional = true } beserial = { path = "../beserial" } diff --git a/vrf/Cargo.toml b/vrf/Cargo.toml index e5e75baf66..677db1798b 100644 --- a/vrf/Cargo.toml +++ b/vrf/Cargo.toml @@ -18,7 +18,7 @@ num-traits = "0.2" rand = "0.8" serde = { version = "1.0", features = ["derive"], optional = true } serde-big-array = { version = "0.3.2", optional = true } -sha2 = "0.9" +sha2 = "0.10" beserial = { path = "../beserial" } nimiq-hash = { path = "../hash" }