Skip to content

Commit

Permalink
Bump elliptic-curve and signature dependencies
Browse files Browse the repository at this point in the history
As well as bumping `hybrid-array` to v0.2.0-rc.0 and `digest` to
v0.11.0-pre.4.

Also cuts `ecdsa` v0.17.0-pre.1 and `rfc6979` v0.5.0-pre.1
  • Loading branch information
tarcieri committed Jan 10, 2024
1 parent d935382 commit 21dfb9f
Show file tree
Hide file tree
Showing 7 changed files with 45 additions and 45 deletions.
46 changes: 23 additions & 23 deletions Cargo.lock

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

10 changes: 5 additions & 5 deletions dsa/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,20 @@ keywords = ["crypto", "nist", "signature"]
rust-version = "1.71"

[dependencies]
digest = "=0.11.0-pre.3"
digest = "=0.11.0-pre.4"
num-bigint = { package = "num-bigint-dig", version = "0.8", default-features = false, features = ["prime", "rand", "zeroize"] }
num-traits = { version = "0.2", default-features = false }
pkcs8 = { version = "=0.11.0-pre.0", default-features = false, features = ["alloc"] }
rfc6979 = { version = "=0.5.0-pre.0", path = "../rfc6979" }
sha2 = { version = "=0.11.0-pre.0", default-features = false }
signature = { version = "=2.3.0-pre.0", default-features = false, features = ["alloc", "digest", "rand_core"] }
rfc6979 = { version = "=0.5.0-pre.1", path = "../rfc6979" }
sha2 = { version = "=0.11.0-pre.1", default-features = false }
signature = { version = "=2.3.0-pre.1", default-features = false, features = ["alloc", "digest", "rand_core"] }
zeroize = { version = "1", default-features = false }

[dev-dependencies]
pkcs8 = { version = "=0.11.0-pre.0", default-features = false, features = ["pem"] }
rand = "0.8"
rand_chacha = "0.3"
sha1 = "=0.11.0-pre.0"
sha1 = "=0.11.0-pre.1"

[features]
std = []
16 changes: 8 additions & 8 deletions ecdsa/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "ecdsa"
version = "0.17.0-pre.0"
version = "0.17.0-pre.1"
description = """
Pure Rust implementation of the Elliptic Curve Digital Signature Algorithm
(ECDSA) as specified in FIPS 186-4 (Digital Signature Standard), providing
Expand All @@ -16,21 +16,21 @@ edition = "2021"
rust-version = "1.73"

[dependencies]
elliptic-curve = { version = "=0.14.0-pre.0", default-features = false, features = ["digest", "sec1"] }
signature = { version = "=2.3.0-pre.0", default-features = false, features = ["rand_core"] }
elliptic-curve = { version = "=0.14.0-pre.1", default-features = false, features = ["digest", "sec1"] }
signature = { version = "=2.3.0-pre.1", default-features = false, features = ["rand_core"] }

# optional dependencies
der = { version = "=0.8.0-pre.0", optional = true }
digest = { version = "=0.11.0-pre.3", optional = true, default-features = false, features = ["oid"] }
rfc6979 = { version = "=0.5.0-pre.0", optional = true, path = "../rfc6979" }
digest = { version = "=0.11.0-pre.4", optional = true, default-features = false, features = ["oid"] }
rfc6979 = { version = "=0.5.0-pre.1", optional = true, path = "../rfc6979" }
serdect = { version = "0.2", optional = true, default-features = false, features = ["alloc"] }
sha2 = { version = "=0.11.0-pre.0", optional = true, default-features = false, features = ["oid"] }
sha2 = { version = "=0.11.0-pre.1", optional = true, default-features = false, features = ["oid"] }
spki = { version = "=0.8.0-pre.0", optional = true, default-features = false }

[dev-dependencies]
elliptic-curve = { version = "=0.14.0-pre.0", default-features = false, features = ["dev"] }
elliptic-curve = { version = "=0.14.0-pre.1", default-features = false, features = ["dev"] }
hex-literal = "0.4"
sha2 = { version = "=0.11.0-pre.0", default-features = false }
sha2 = { version = "=0.11.0-pre.1", default-features = false }

[features]
default = ["digest"]
Expand Down
8 changes: 4 additions & 4 deletions ecdsa/src/dev.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,8 @@ macro_rules! new_verification_test {
fn ecdsa_verify_success() {
for vector in $vectors {
let q_encoded = EncodedPoint::<$curve>::from_affine_coordinates(
Array::ref_from_slice(vector.q_x),
Array::ref_from_slice(vector.q_y),
Array::from_slice(vector.q_x),
Array::from_slice(vector.q_y),
false,
);

Expand All @@ -112,8 +112,8 @@ macro_rules! new_verification_test {
fn ecdsa_verify_invalid_s() {
for vector in $vectors {
let q_encoded = EncodedPoint::<$curve>::from_affine_coordinates(
Array::ref_from_slice(vector.q_x),
Array::ref_from_slice(vector.q_y),
Array::from_slice(vector.q_x),
Array::from_slice(vector.q_y),
false,
);

Expand Down
2 changes: 1 addition & 1 deletion ed25519/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rust-version = "1.71"

[dependencies]
# TODO(tarcieri): relax requirement back to `2` before next release
signature = { version = "=2.3.0-pre.0", default-features = false }
signature = { version = "=2.3.0-pre.1", default-features = false }

# optional dependencies
pkcs8 = { version = "0.10", optional = true }
Expand Down
2 changes: 1 addition & 1 deletion ed448/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ rust-version = "1.71"

[dependencies]
# TODO(tarcieri): relax requirement back to `2` before next release
signature = { version = "=2.3.0-pre.0", default-features = false }
signature = { version = "=2.3.0-pre.1", default-features = false }

# optional dependencies
pkcs8 = { version = "0.10", optional = true }
Expand Down
6 changes: 3 additions & 3 deletions rfc6979/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "rfc6979"
version = "0.5.0-pre.0"
version = "0.5.0-pre.1"
description = """
Pure Rust implementation of RFC6979: Deterministic Usage of the
Digital Signature Algorithm (DSA) and Elliptic Curve Digital Signature Algorithm (ECDSA)
Expand All @@ -15,9 +15,9 @@ edition = "2021"
rust-version = "1.71"

[dependencies]
hmac = { version = "=0.13.0-pre.0", default-features = false, features = ["reset"] }
hmac = { version = "=0.13.0-pre.1", default-features = false, features = ["reset"] }
subtle = { version = "2", default-features = false }

[dev-dependencies]
hex-literal = "0.4"
sha2 = "=0.11.0-pre.0"
sha2 = "=0.11.0-pre.1"

0 comments on commit 21dfb9f

Please sign in to comment.