From c875c4b41acfc8576d6fff76f95e3c2e6a3125d0 Mon Sep 17 00:00:00 2001 From: Tony Arcieri Date: Tue, 23 Jun 2026 19:14:01 -0600 Subject: [PATCH] Bump `elliptic-curve` to v0.14 Release PR: RustCrypto/traits#2466 --- Cargo.lock | 11 ++++++----- Cargo.toml | 2 -- bignp256/Cargo.toml | 4 ++-- bp256/Cargo.toml | 6 +++--- bp384/Cargo.toml | 6 +++--- ed448-goldilocks/Cargo.toml | 2 +- hash2curve/Cargo.toml | 2 +- k256/Cargo.toml | 6 +++--- k256/src/arithmetic/projective.rs | 4 ++-- p192/Cargo.toml | 6 +++--- p224/Cargo.toml | 6 +++--- p256/Cargo.toml | 6 +++--- p384/Cargo.toml | 6 +++--- p521/Cargo.toml | 6 +++--- primeorder/Cargo.toml | 2 +- primeorder/src/affine.rs | 4 ++-- primeorder/src/lib.rs | 2 +- primeorder/src/projective.rs | 6 +++--- sm2/Cargo.toml | 4 ++-- 19 files changed, 45 insertions(+), 46 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index f3d9227fb..cb2ec28bc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -427,9 +427,9 @@ dependencies = [ [[package]] name = "ecdsa" -version = "0.17.0-rc.21" +version = "0.17.0-rc.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8c49632b5dd114acd72982823888124a7f25c97801e6e38df893548f3c45b3b" +checksum = "b7c72d1455753a703ad4b90ed2a759f2bc4562024a303176439cf6e593b5ade4" dependencies = [ "der", "digest", @@ -483,8 +483,9 @@ checksum = "91622ff5e7162018101f2fea40d6ebf4a78bbe5a49736a2020649edf9693679e" [[package]] name = "elliptic-curve" -version = "0.14.0-rc.36" -source = "git+https://github.com/RustCrypto/traits#68dab4109be9432d61cb58bc4438211f7c0a25c3" +version = "0.14.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "3273f1195b6f6253ebda493d6742c8baa9b26a291674cd96d92a0f09e90e9b46" dependencies = [ "base16ct", "crypto-bigint", @@ -1374,7 +1375,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd" dependencies = [ "fastrand", - "getrandom 0.3.4", + "getrandom 0.4.3", "once_cell", "rustix", "windows-sys", diff --git a/Cargo.toml b/Cargo.toml index 4a684072e..3e4204b28 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -28,5 +28,3 @@ hash2curve = { path = "hash2curve" } primefield = { path = "primefield" } primeorder = { path = "primeorder" } wnaf = { path = "wnaf" } - -elliptic-curve = { git = "https://github.com/RustCrypto/traits" } diff --git a/bignp256/Cargo.toml b/bignp256/Cargo.toml index 4f89692a4..bf3a1d93f 100644 --- a/bignp256/Cargo.toml +++ b/bignp256/Cargo.toml @@ -18,7 +18,7 @@ edition = "2024" rust-version = "1.85" [dependencies] -elliptic-curve = { version = "0.14.0-rc.36", features = ["sec1"] } +elliptic-curve = { version = "0.14", features = ["sec1"] } # optional dependencies belt-block = { version = "0.2", optional = true } @@ -40,7 +40,7 @@ signature = { version = "3", optional = true } [dev-dependencies] criterion = "0.7" -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["dev"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["dev"] } hex-literal = "1" primeorder = { version = "0.14.0-rc.13", features = ["dev"] } proptest = "1" diff --git a/bp256/Cargo.toml b/bp256/Cargo.toml index 394def61a..cd97b8d76 100644 --- a/bp256/Cargo.toml +++ b/bp256/Cargo.toml @@ -14,17 +14,17 @@ edition = "2024" rust-version = "1.85" [dependencies] -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["sec1"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["sec1"] } # optional dependencies -ecdsa = { version = "0.17.0-rc.21", optional = true, default-features = false, features = ["der"] } +ecdsa = { version = "0.17.0-rc.22", optional = true, default-features = false, features = ["der"] } primefield = { version = "0.14.0-rc.13", optional = true } primeorder = { version = "0.14.0-rc.13", optional = true } sha2 = { version = "0.11", optional = true, default-features = false } [dev-dependencies] criterion = "0.7" -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["dev"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["dev"] } [features] default = ["pkcs8", "std"] diff --git a/bp384/Cargo.toml b/bp384/Cargo.toml index e52a9cd73..ae60c84cb 100644 --- a/bp384/Cargo.toml +++ b/bp384/Cargo.toml @@ -14,17 +14,17 @@ edition = "2024" rust-version = "1.85" [dependencies] -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["sec1"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["sec1"] } # optional dependencies -ecdsa = { version = "0.17.0-rc.21", optional = true, default-features = false, features = ["der"] } +ecdsa = { version = "0.17.0-rc.22", optional = true, default-features = false, features = ["der"] } primefield = { version = "0.14.0-rc.13", optional = true } primeorder = { version = "0.14.0-rc.13", optional = true } sha2 = { version = "0.11", optional = true, default-features = false } [dev-dependencies] criterion = "0.7" -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["dev"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["dev"] } [features] default = ["pkcs8", "std"] diff --git a/ed448-goldilocks/Cargo.toml b/ed448-goldilocks/Cargo.toml index 7d013062b..37332c0b3 100644 --- a/ed448-goldilocks/Cargo.toml +++ b/ed448-goldilocks/Cargo.toml @@ -16,7 +16,7 @@ This crate also includes signing and verifying of Ed448 signatures. """ [dependencies] -elliptic-curve = { version = "0.14.0-rc.36", features = ["arithmetic", "pkcs8"] } +elliptic-curve = { version = "0.14", features = ["arithmetic", "pkcs8"] } hash2curve = "0.14.0-rc.13" rand_core = { version = "0.10", default-features = false } shake = { version = "0.1", default-features = false } diff --git a/hash2curve/Cargo.toml b/hash2curve/Cargo.toml index 79cfb2ef9..340fe3abe 100644 --- a/hash2curve/Cargo.toml +++ b/hash2curve/Cargo.toml @@ -15,7 +15,7 @@ rust-version = "1.85" [dependencies] digest = { version = "0.11" } -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["arithmetic"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["arithmetic"] } [dev-dependencies] hex-literal = "1" diff --git a/k256/Cargo.toml b/k256/Cargo.toml index 538477cfe..53079e9f1 100644 --- a/k256/Cargo.toml +++ b/k256/Cargo.toml @@ -20,11 +20,11 @@ rust-version = "1.85" [dependencies] cpubits = "0.1" -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["sec1"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["sec1"] } hash2curve = { version = "0.14.0-rc.13", optional = true } # optional dependencies -ecdsa-core = { version = "0.17.0-rc.21", package = "ecdsa", optional = true, default-features = false, features = ["der"] } +ecdsa-core = { version = "0.17.0-rc.22", package = "ecdsa", optional = true, default-features = false, features = ["der"] } hex-literal = { version = "1", optional = true } primeorder = { version = "0.14.0-rc.13", optional = true } serdect = { version = "0.4", optional = true, default-features = false } @@ -34,7 +34,7 @@ wnaf = { version = "0.14.0-rc.0", default-features = false } [dev-dependencies] criterion = "0.7" -ecdsa-core = { version = "0.17.0-rc.21", package = "ecdsa", default-features = false, features = ["dev"] } +ecdsa-core = { version = "0.17.0-rc.22", package = "ecdsa", default-features = false, features = ["dev"] } hex = "0.4.3" hex-literal = "1" num-bigint = "0.4" diff --git a/k256/src/arithmetic/projective.rs b/k256/src/arithmetic/projective.rs index ee3a2bb85..3d9b89aa2 100644 --- a/k256/src/arithmetic/projective.rs +++ b/k256/src/arithmetic/projective.rs @@ -15,8 +15,8 @@ use elliptic_curve::{ cofactor::CofactorGroup, prime::{PrimeCurve, PrimeGroup}, }, - ops::BatchInvert, - point::{Double, NonIdentity}, + ops::{BatchInvert, Double}, + point::NonIdentity, rand_core::{TryCryptoRng, TryRng}, sec1::{FromSec1Point, ToSec1Point}, subtle::{Choice, ConditionallySelectable, ConstantTimeEq, CtOption}, diff --git a/p192/Cargo.toml b/p192/Cargo.toml index 42143fe73..1962bdbb9 100644 --- a/p192/Cargo.toml +++ b/p192/Cargo.toml @@ -17,17 +17,17 @@ edition = "2024" rust-version = "1.85" [dependencies] -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["sec1"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["sec1"] } # optional dependencies -ecdsa-core = { version = "0.17.0-rc.21", package = "ecdsa", optional = true, default-features = false, features = ["der"] } +ecdsa-core = { version = "0.17.0-rc.22", package = "ecdsa", optional = true, default-features = false, features = ["der"] } hex-literal = { version = "1", optional = true } primefield = { version = "0.14.0-rc.13", optional = true } primeorder = { version = "0.14.0-rc.13", optional = true } serdect = { version = "0.4", optional = true, default-features = false } [dev-dependencies] -ecdsa-core = { version = "0.17.0-rc.21", package = "ecdsa", default-features = false, features = ["dev"] } +ecdsa-core = { version = "0.17.0-rc.22", package = "ecdsa", default-features = false, features = ["dev"] } hex-literal = "1" primeorder = { version = "0.14.0-rc.13", features = ["dev"] } diff --git a/p224/Cargo.toml b/p224/Cargo.toml index 7219f2c81..20c65f167 100644 --- a/p224/Cargo.toml +++ b/p224/Cargo.toml @@ -17,10 +17,10 @@ edition = "2024" rust-version = "1.85" [dependencies] -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["sec1"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["sec1"] } # optional dependencies -ecdsa-core = { version = "0.17.0-rc.21", package = "ecdsa", optional = true, default-features = false, features = ["der"] } +ecdsa-core = { version = "0.17.0-rc.22", package = "ecdsa", optional = true, default-features = false, features = ["der"] } hex-literal = { version = "1", optional = true } primefield = { version = "0.14.0-rc.13", optional = true } primeorder = { version = "0.14.0-rc.13", optional = true } @@ -28,7 +28,7 @@ serdect = { version = "0.4", optional = true, default-features = false } sha2 = { version = "0.11", optional = true, default-features = false } [dev-dependencies] -ecdsa-core = { version = "0.17.0-rc.21", package = "ecdsa", default-features = false, features = ["dev"] } +ecdsa-core = { version = "0.17.0-rc.22", package = "ecdsa", default-features = false, features = ["dev"] } hex-literal = "1" primeorder = { version = "0.14.0-rc.13", features = ["dev"] } diff --git a/p256/Cargo.toml b/p256/Cargo.toml index 7ff1245c1..3d4a67827 100644 --- a/p256/Cargo.toml +++ b/p256/Cargo.toml @@ -18,10 +18,10 @@ edition = "2024" rust-version = "1.85" [dependencies] -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["sec1"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["sec1"] } # optional dependencies -ecdsa-core = { version = "0.17.0-rc.21", package = "ecdsa", optional = true, default-features = false, features = ["der"] } +ecdsa-core = { version = "0.17.0-rc.22", package = "ecdsa", optional = true, default-features = false, features = ["der"] } hash2curve = { version = "0.14.0-rc.13", optional = true } hex-literal = { version = "1", optional = true } primefield = { version = "0.14.0-rc.13", optional = true } @@ -31,7 +31,7 @@ sha2 = { version = "0.11", optional = true, default-features = false } [dev-dependencies] criterion = "0.7" -ecdsa-core = { version = "0.17.0-rc.21", package = "ecdsa", default-features = false, features = ["dev"] } +ecdsa-core = { version = "0.17.0-rc.22", package = "ecdsa", default-features = false, features = ["dev"] } hex-literal = "1" primefield = { version = "0.14.0-rc.13" } primeorder = { version = "0.14.0-rc.13", features = ["dev"] } diff --git a/p384/Cargo.toml b/p384/Cargo.toml index 827e71ba4..3b61fd4de 100644 --- a/p384/Cargo.toml +++ b/p384/Cargo.toml @@ -18,10 +18,10 @@ edition = "2024" rust-version = "1.85" [dependencies] -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["sec1"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["sec1"] } # optional dependencies -ecdsa-core = { version = "0.17.0-rc.21", package = "ecdsa", optional = true, default-features = false, features = ["der"] } +ecdsa-core = { version = "0.17.0-rc.22", package = "ecdsa", optional = true, default-features = false, features = ["der"] } hash2curve = { version = "0.14.0-rc.13", optional = true } hex-literal = { version = "1", optional = true } primefield = { version = "0.14.0-rc.13", optional = true } @@ -34,7 +34,7 @@ fiat-crypto = { version = "0.3", default-features = false } [dev-dependencies] criterion = "0.7" -ecdsa-core = { version = "0.17.0-rc.21", package = "ecdsa", default-features = false, features = ["dev"] } +ecdsa-core = { version = "0.17.0-rc.22", package = "ecdsa", default-features = false, features = ["dev"] } hex-literal = "1" primeorder = { version = "0.14.0-rc.13", features = ["dev"] } proptest = "1.11" diff --git a/p521/Cargo.toml b/p521/Cargo.toml index f0613e967..fc30b2bf9 100644 --- a/p521/Cargo.toml +++ b/p521/Cargo.toml @@ -18,10 +18,10 @@ rust-version = "1.85" [dependencies] base16ct = "1" -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["sec1"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["sec1"] } # optional dependencies -ecdsa-core = { version = "0.17.0-rc.21", package = "ecdsa", optional = true, default-features = false, features = ["der"] } +ecdsa-core = { version = "0.17.0-rc.22", package = "ecdsa", optional = true, default-features = false, features = ["der"] } hash2curve = { version = "0.14.0-rc.13", optional = true } hex-literal = { version = "1", optional = true } primefield = { version = "0.14.0-rc.13", optional = true } @@ -32,7 +32,7 @@ sha2 = { version = "0.11", optional = true, default-features = false } [dev-dependencies] criterion = "0.7" -ecdsa-core = { version = "0.17.0-rc.21", package = "ecdsa", default-features = false, features = ["dev"] } +ecdsa-core = { version = "0.17.0-rc.22", package = "ecdsa", default-features = false, features = ["dev"] } hex-literal = "1" primeorder = { version = "0.14.0-rc.13", features = ["dev"] } proptest = "1.11" diff --git a/primeorder/Cargo.toml b/primeorder/Cargo.toml index 04fc0ae6a..d9c5a3496 100644 --- a/primeorder/Cargo.toml +++ b/primeorder/Cargo.toml @@ -18,7 +18,7 @@ edition = "2024" rust-version = "1.85" [dependencies] -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["arithmetic", "sec1"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["arithmetic", "sec1"] } primefield = "0.14.0-rc.13" # optional dependencies diff --git a/primeorder/src/affine.rs b/primeorder/src/affine.rs index 0d141fbcf..79bfeea8b 100644 --- a/primeorder/src/affine.rs +++ b/primeorder/src/affine.rs @@ -10,8 +10,8 @@ use elliptic_curve::{ ctutils::{self, CtGt as _, CtSelect as _}, ff::{Field, PrimeField}, group::{CurveAffine, GroupEncoding}, - ops::{Mul, MulVartime, Neg}, - point::{AffineCoordinates, DecompactPoint, DecompressPoint, Double, NonIdentity}, + ops::{Double, Mul, MulVartime, Neg}, + point::{AffineCoordinates, DecompactPoint, DecompressPoint, NonIdentity}, rand_core::{TryCryptoRng, TryRng}, sec1::{self, CompressedPoint, FromSec1Point, Sec1Point, ToCompactSec1Point, ToSec1Point}, subtle::{Choice, ConditionallySelectable, ConstantTimeEq, CtOption}, diff --git a/primeorder/src/lib.rs b/primeorder/src/lib.rs index 2c9182aed..a75aac722 100644 --- a/primeorder/src/lib.rs +++ b/primeorder/src/lib.rs @@ -36,7 +36,7 @@ pub use elliptic_curve::{ array::{self, ArraySize, sizes::U1}, bigint::{ByteOrder, modular::Retrieve}, hazmat::FieldArithmetic, - point::Double, + ops::Double, }; pub use primefield::{FieldExt, PrimeFieldExt}; diff --git a/primeorder/src/projective.rs b/primeorder/src/projective.rs index b66b19031..5d5f03590 100644 --- a/primeorder/src/projective.rs +++ b/primeorder/src/projective.rs @@ -17,10 +17,10 @@ use elliptic_curve::{ prime::{PrimeCurve, PrimeGroup}, }, ops::{ - Add, AddAssign, BatchInvert, LinearCombination, Mul, MulAssign, MulByGeneratorVartime, - MulVartime, Neg, Sub, SubAssign, + Add, AddAssign, BatchInvert, Double, LinearCombination, Mul, MulAssign, + MulByGeneratorVartime, MulVartime, Neg, Sub, SubAssign, }, - point::{Double, NonIdentity}, + point::NonIdentity, rand_core::{TryCryptoRng, TryRng}, sec1::{CompressedPoint, FromSec1Point, Sec1Point, ToSec1Point}, subtle::{Choice, ConditionallySelectable, ConstantTimeEq, CtOption}, diff --git a/sm2/Cargo.toml b/sm2/Cargo.toml index e1485ebee..1561511d4 100644 --- a/sm2/Cargo.toml +++ b/sm2/Cargo.toml @@ -18,7 +18,7 @@ edition = "2024" rust-version = "1.85" [dependencies] -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["sec1"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["sec1"] } fiat-crypto = { version = "0.3", default-features = false } rand_core = { version = "0.10", default-features = false } @@ -33,7 +33,7 @@ sm3 = { version = "0.5", optional = true, default-features = false } [dev-dependencies] criterion = "0.7" -elliptic-curve = { version = "0.14.0-rc.36", default-features = false, features = ["dev"] } +elliptic-curve = { version = "0.14", default-features = false, features = ["dev"] } hex-literal = "1" proptest = "1"