Skip to content

Commit

Permalink
sec1: bump hybrid-array to v0.2.0-rc.0
Browse files Browse the repository at this point in the history
Also cuts a `sec1` v0.8.0-pre.1 release
  • Loading branch information
tarcieri committed Jan 10, 2024
1 parent fb8db96 commit 35d5522
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions sec1/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "sec1"
version = "0.8.0-pre.0"
version = "0.8.0-pre.1"
description = """
Pure Rust implementation of SEC1: Elliptic Curve Cryptography encoding formats
including ASN.1 DER-serialized private keys as well as the
Expand All @@ -18,7 +18,7 @@ rust-version = "1.71"
[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-pre.8", optional = true, default-features = false }
hybrid-array = { version = "0.2.0-rc.0", 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::ref_from_slice(x_bytes);
let x = Array::from_slice(x_bytes);

if self.is_compressed() {
Coordinates::Compressed {
Expand All @@ -222,7 +222,7 @@ where
} else {
Coordinates::Uncompressed {
x,
y: Array::ref_from_slice(y_bytes),
y: Array::from_slice(y_bytes),
}
}
}
Expand Down

0 comments on commit 35d5522

Please sign in to comment.