Skip to content

Commit

Permalink
chore(deps): bump hybrid-array from 0.2.0-rc.8 to 0.2.0-rc.9 (#1435)
Browse files Browse the repository at this point in the history
* 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] <support@github.com>

* sec1: Array conversions should not fail.

* cms: Array conversions should not fail.

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Arthur Gautier <arthur.gautier@arista.com>
  • Loading branch information
dependabot[bot] and baloo authored Jun 25, 2024
1 parent 1a58705 commit f2d0ab4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion cms/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,8 @@ macro_rules! encrypt_block_mode {
)));
}
(
Key::<$block_mode::$typ<$alg>>::from_slice(key).to_owned(),
Key::<$block_mode::$typ<$alg>>::try_from(key)
.expect("size invariants violation"),
$block_mode::$typ::<$alg>::generate_iv_with_rng($rng)?,
)
}
Expand Down
2 changes: 1 addition & 1 deletion sec1/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ rust-version = "1.72"
[dependencies]
base16ct = { version = "0.2", optional = true, default-features = false }
der = { version = "=0.8.0-pre.0", optional = true, features = ["oid"] }
hybrid-array = { version = "0.2.0-rc.8", optional = true, default-features = false }
hybrid-array = { version = "0.2.0-rc.9", optional = true, default-features = false }
pkcs8 = { version = "=0.11.0-pre.0", optional = true, default-features = false }
serdect = { version = "=0.3.0-pre.0", optional = true, default-features = false, features = ["alloc"] }
subtle = { version = "2", optional = true, default-features = false }
Expand Down
4 changes: 2 additions & 2 deletions sec1/src/point.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ where
}

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

if self.is_compressed() {
Coordinates::Compressed {
Expand All @@ -222,7 +222,7 @@ where
} else {
Coordinates::Uncompressed {
x,
y: Array::from_slice(y_bytes),
y: y_bytes.try_into().expect("size invariants were violated"),
}
}
}
Expand Down

0 comments on commit f2d0ab4

Please sign in to comment.