diff --git a/Cargo.lock b/Cargo.lock index 33189478..25ea6854 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -84,9 +84,9 @@ checksum = "6fe2267d4ed49bc07b63801559be28c718ea06c4738b7a03c94df7386d2cde46" [[package]] name = "hybrid-array" -version = "0.2.0-rc.8" +version = "0.2.0-rc.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "53668f5da5a41d9eaf4bf7064be46d1ebe6a4e1ceed817f387587b18f2b51047" +checksum = "4d306b679262030ad8813a82d4915fc04efff97776e4db7f8eb5137039d56400" dependencies = [ "typenum", ] @@ -127,9 +127,9 @@ dependencies = [ [[package]] name = "proc-macro2" -version = "1.0.85" +version = "1.0.86" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22244ce15aa966053a896d1accb3a6e68469b97c7f33f284b99f0d576879fc23" +checksum = "5e719e8df665df0d1c8fbfd238015744736151d4445ec0836b8e628aae103b77" dependencies = [ "unicode-ident", ] @@ -182,9 +182,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.66" +version = "2.0.67" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c42f3f41a2de00b01c0aaad383c5a45241efc8b2d1eda5661812fda5f3cdcff5" +checksum = "ff8655ed1d86f3af4ee3fd3263786bc14245ad17c4c7e85ba7187fb3ae028c90" dependencies = [ "proc-macro2", "quote", diff --git a/block-buffer/src/lib.rs b/block-buffer/src/lib.rs index c199062a..87b440da 100644 --- a/block-buffer/src/lib.rs +++ b/block-buffer/src/lib.rs @@ -377,7 +377,7 @@ impl BlockBuffer { if buffer[1..][pos as usize..].iter().any(|&b| b != 0) { return Err(Error); } - let buf = Array::clone_from_slice(&buffer[1..]); + let buf = Array::try_from(&buffer[1..]).expect("slice has correct length"); Ok(Self { buffer: MaybeUninit::new(buf), pos, diff --git a/block-padding/Cargo.toml b/block-padding/Cargo.toml index 1f3cc6e4..9c158fab 100644 --- a/block-padding/Cargo.toml +++ b/block-padding/Cargo.toml @@ -13,7 +13,7 @@ categories = ["cryptography", "no-std"] readme = "README.md" [dependencies] -hybrid-array = "0.2.0-rc.8" +hybrid-array = "0.2.0-rc.9" [features] std = [] diff --git a/dbl/Cargo.toml b/dbl/Cargo.toml index 7c03ae65..283ff14f 100644 --- a/dbl/Cargo.toml +++ b/dbl/Cargo.toml @@ -12,5 +12,5 @@ rust-version = "1.65" readme = "README.md" [dependencies] -hybrid-array = "0.2.0-rc.8" +hybrid-array = "0.2.0-rc.9" diff --git a/inout/Cargo.toml b/inout/Cargo.toml index 9f4aef3c..fea9f730 100644 --- a/inout/Cargo.toml +++ b/inout/Cargo.toml @@ -13,7 +13,7 @@ readme = "README.md" [dependencies] block-padding = { version = "=0.4.0-pre.4", path = "../block-padding", optional = true } -hybrid-array = "0.2.0-rc.8" +hybrid-array = "0.2.0-rc.9" [features] std = ["block-padding/std"]