Skip to content

Commit f2d0ab4

Browse files
chore(deps): bump hybrid-array from 0.2.0-rc.8 to 0.2.0-rc.9 (#1435)
* chore(deps): bump hybrid-array from 0.2.0-rc.8 to 0.2.0-rc.9 Bumps [hybrid-array](https://github.com/RustCrypto/hybrid-array) from 0.2.0-rc.8 to 0.2.0-rc.9. - [Changelog](https://github.com/RustCrypto/hybrid-array/blob/master/CHANGELOG.md) - [Commits](RustCrypto/hybrid-array@v0.2.0-rc.8...v0.2.0-rc.9) --- updated-dependencies: - dependency-name: hybrid-array dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <[email protected]> * sec1: Array conversions should not fail. * cms: Array conversions should not fail. --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Arthur Gautier <[email protected]>
1 parent 1a58705 commit f2d0ab4

File tree

4 files changed

+7
-6
lines changed

4 files changed

+7
-6
lines changed

Cargo.lock

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cms/src/builder.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1020,7 +1020,8 @@ macro_rules! encrypt_block_mode {
10201020
)));
10211021
}
10221022
(
1023-
Key::<$block_mode::$typ<$alg>>::from_slice(key).to_owned(),
1023+
Key::<$block_mode::$typ<$alg>>::try_from(key)
1024+
.expect("size invariants violation"),
10241025
$block_mode::$typ::<$alg>::generate_iv_with_rng($rng)?,
10251026
)
10261027
}

sec1/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ rust-version = "1.72"
1919
[dependencies]
2020
base16ct = { version = "0.2", optional = true, default-features = false }
2121
der = { version = "=0.8.0-pre.0", optional = true, features = ["oid"] }
22-
hybrid-array = { version = "0.2.0-rc.8", optional = true, default-features = false }
22+
hybrid-array = { version = "0.2.0-rc.9", optional = true, default-features = false }
2323
pkcs8 = { version = "=0.11.0-pre.0", optional = true, default-features = false }
2424
serdect = { version = "=0.3.0-pre.0", optional = true, default-features = false, features = ["alloc"] }
2525
subtle = { version = "2", optional = true, default-features = false }

sec1/src/point.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ where
210210
}
211211

212212
let (x_bytes, y_bytes) = self.bytes[1..].split_at(Size::to_usize());
213-
let x = Array::from_slice(x_bytes);
213+
let x = x_bytes.try_into().expect("size invariants were violated");
214214

215215
if self.is_compressed() {
216216
Coordinates::Compressed {
@@ -222,7 +222,7 @@ where
222222
} else {
223223
Coordinates::Uncompressed {
224224
x,
225-
y: Array::from_slice(y_bytes),
225+
y: y_bytes.try_into().expect("size invariants were violated"),
226226
}
227227
}
228228
}

0 commit comments

Comments
 (0)