Skip to content

Commit 893e8e9

Browse files
authored
Bump dependency requirements in Cargo.toml (#1631)
Upgrades the following dependencies: - `crypto-bigint` v0.7.0-rc.22 - `digest` v0.11.0-rc.8 - `ecdsa` v0.17.0-rc.14 - `elliptic-curve` v0.14.0-rc.24 - `getrandom` v0.4.0-rc.1 - `rand_core` v0.10.0-rc-6 - `sha2` v0.11.0-rc.4 - `sha3` v0.11.0-rc.6 - `signature` v3.0.0-rc.9 The `rand_core` update includes changes that rename `(Try)RngCore` => `(Try)Rng`.
1 parent c12f2e2 commit 893e8e9

File tree

31 files changed

+362
-139
lines changed

31 files changed

+362
-139
lines changed

Cargo.lock

Lines changed: 269 additions & 46 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bignp256/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ edition = "2024"
1818
rust-version = "1.85"
1919

2020
[dependencies]
21-
elliptic-curve = { version = "0.14.0-rc.23", features = ["sec1"] }
21+
elliptic-curve = { version = "0.14.0-rc.24", features = ["sec1"] }
2222

2323
# optional dependencies
2424
belt-hash = { version = "0.2.0-rc.0", optional = true, default-features = false }
@@ -27,17 +27,17 @@ digest = { version = "0.11.0-rc.7", optional = true }
2727
hex-literal = { version = "1", optional = true }
2828
hkdf = { version = "0.13.0-rc.3", optional = true }
2929
hmac = { version = "0.13.0-rc.3", optional = true }
30-
rand_core = "0.10.0-rc-5"
30+
rand_core = "0.10.0-rc-6"
3131
rfc6979 = { version = "0.5.0-rc.3", optional = true }
3232
pkcs8 = { version = "0.11.0-rc.9", optional = true }
3333
primefield = { version = "0.14.0-rc.5", optional = true }
3434
primeorder = { version = "0.14.0-rc.5", optional = true }
3535
sec1 = { version = "0.8.0-rc.13", optional = true }
36-
signature = { version = "3.0.0-rc.8", optional = true }
36+
signature = { version = "3.0.0-rc.9", optional = true }
3737

3838
[dev-dependencies]
3939
criterion = "0.7"
40-
elliptic-curve = { version = "0.14.0-rc.23", default-features = false, features = ["dev"] }
40+
elliptic-curve = { version = "0.14.0-rc.24", default-features = false, features = ["dev"] }
4141
hex-literal = "1"
4242
primeorder = { version = "0.14.0-rc.5", features = ["dev"] }
4343
proptest = "1"

bp256/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ edition = "2024"
1414
rust-version = "1.85"
1515

1616
[dependencies]
17-
elliptic-curve = { version = "0.14.0-rc.23", default-features = false, features = ["sec1"] }
17+
elliptic-curve = { version = "0.14.0-rc.24", default-features = false, features = ["sec1"] }
1818

1919
# optional dependencies
20-
ecdsa = { version = "0.17.0-rc.13", optional = true, default-features = false, features = ["der"] }
20+
ecdsa = { version = "0.17.0-rc.14", optional = true, default-features = false, features = ["der"] }
2121
primefield = { version = "0.14.0-rc.5", optional = true }
2222
primeorder = { version = "0.14.0-rc.5", optional = true }
23-
sha2 = { version = "0.11.0-rc.3", optional = true, default-features = false }
23+
sha2 = { version = "0.11.0-rc.4", optional = true, default-features = false }
2424

2525
[dev-dependencies]
2626
criterion = "0.7"
27-
elliptic-curve = { version = "0.14.0-rc.23", default-features = false, features = ["dev"] }
27+
elliptic-curve = { version = "0.14.0-rc.24", default-features = false, features = ["dev"] }
2828

2929
[features]
3030
default = ["pkcs8", "std"]

bp384/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ edition = "2024"
1414
rust-version = "1.85"
1515

1616
[dependencies]
17-
elliptic-curve = { version = "0.14.0-rc.23", default-features = false, features = ["sec1"] }
17+
elliptic-curve = { version = "0.14.0-rc.24", default-features = false, features = ["sec1"] }
1818

1919
# optional dependencies
20-
ecdsa = { version = "0.17.0-rc.13", optional = true, default-features = false, features = ["der"] }
20+
ecdsa = { version = "0.17.0-rc.14", optional = true, default-features = false, features = ["der"] }
2121
primefield = { version = "0.14.0-rc.5", optional = true }
2222
primeorder = { version = "0.14.0-rc.5", optional = true }
23-
sha2 = { version = "0.11.0-rc.3", optional = true, default-features = false }
23+
sha2 = { version = "0.11.0-rc.4", optional = true, default-features = false }
2424

2525
[dev-dependencies]
2626
criterion = "0.7"
27-
elliptic-curve = { version = "0.14.0-rc.23", default-features = false, features = ["dev"] }
27+
elliptic-curve = { version = "0.14.0-rc.24", default-features = false, features = ["dev"] }
2828

2929
[features]
3030
default = ["pkcs8", "std"]

ed448-goldilocks/Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,24 @@ This crate also includes signing and verifying of Ed448 signatures.
1616
"""
1717

1818
[dependencies]
19-
elliptic-curve = { version = "0.14.0-rc.23", features = ["arithmetic", "pkcs8"] }
19+
elliptic-curve = { version = "0.14.0-rc.24", features = ["arithmetic", "pkcs8"] }
2020
hash2curve = "0.14.0-rc.8"
21-
rand_core = { version = "0.10.0-rc-5", default-features = false }
22-
sha3 = { version = "0.11.0-rc.3", default-features = false }
21+
rand_core = { version = "0.10.0-rc-6", default-features = false }
22+
sha3 = { version = "0.11.0-rc.4", default-features = false }
2323
subtle = { version = "2.6", default-features = false }
2424

2525
# optional dependencies
2626
ed448 = { version = "0.5.0-rc.2", optional = true, default-features = false }
2727
serdect = { version = "0.4", optional = true }
28-
signature = { version = "3.0.0-rc.8", optional = true, default-features = false, features = ["digest", "rand_core"] }
28+
signature = { version = "3.0.0-rc.9", optional = true, default-features = false, features = ["digest", "rand_core"] }
2929

3030
[dev-dependencies]
3131
criterion = { version = "0.7", default-features = false, features = ["cargo_bench_support"] }
32-
getrandom = { version = "0.4.0-rc.0", features = ["sys_rng"] }
32+
getrandom = { version = "0.4.0-rc.1", features = ["sys_rng"] }
3333
hex-literal = "1"
3434
hex = "0.4"
3535
proptest = { version = "1", features = ["attr-macro"] }
36-
chacha20 = { version = "0.10.0-rc.8", features = ["rng"] }
36+
chacha20 = { version = "0.10.0-rc.9", features = ["rng"] }
3737
serde_bare = "0.5"
3838
serde_json = "1.0"
3939

ed448-goldilocks/benches/bench.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use ed448_goldilocks::{
33
Decaf448, DecafPoint, DecafScalar, Ed448, EdwardsPoint, EdwardsScalar, MontgomeryPoint,
44
elliptic_curve::{Generate, group::GroupEncoding},
55
};
6-
use getrandom::{SysRng, rand_core::TryRngCore};
6+
use getrandom::{SysRng, rand_core::TryRng};
77
use hash2curve::GroupDigest;
88

99
pub fn ed448(c: &mut Criterion) {

ed448-goldilocks/src/decaf/points.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use elliptic_curve::{
1212
ops::LinearCombination,
1313
point::NonIdentity,
1414
};
15-
use rand_core::{CryptoRng, TryCryptoRng, TryRngCore};
15+
use rand_core::{CryptoRng, TryCryptoRng, TryRng};
1616
use subtle::{Choice, ConditionallyNegatable, ConditionallySelectable, ConstantTimeEq, CtOption};
1717

1818
/// The bytes representation of a compressed point
@@ -268,7 +268,7 @@ impl Group for DecafPoint {
268268

269269
fn try_from_rng<R>(rng: &mut R) -> Result<Self, R::Error>
270270
where
271-
R: TryRngCore + ?Sized,
271+
R: TryRng + ?Sized,
272272
{
273273
let mut bytes = DecafPointRepr::default();
274274

ed448-goldilocks/src/edwards/affine.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ use crate::*;
33
use core::fmt::{Display, Formatter, LowerHex, Result as FmtResult, UpperHex};
44
use core::ops::Mul;
55
use elliptic_curve::{Error, Generate, ctutils, point::NonIdentity, zeroize::DefaultIsZeroes};
6-
use rand_core::{TryCryptoRng, TryRngCore};
6+
use rand_core::{TryCryptoRng, TryRng};
77
use subtle::{Choice, ConditionallyNegatable, ConditionallySelectable, ConstantTimeEq, CtOption};
88

99
/// Affine point on untwisted curve
@@ -100,11 +100,11 @@ impl AffinePoint {
100100

101101
/// Generate a random [`AffinePoint`].
102102
///
103-
/// Helper method that has `TryRngCore` bounds so `ProjectivePoint` can call it for its `group`
103+
/// Helper method that has `TryRng` bounds so `ProjectivePoint` can call it for its `group`
104104
/// impls, otherwise end users should use the `Generate` trait.
105105
pub(crate) fn try_from_rng<R>(rng: &mut R) -> Result<Self, R::Error>
106106
where
107-
R: TryRngCore + ?Sized,
107+
R: TryRng + ?Sized,
108108
{
109109
let mut bytes = CompressedEdwardsY::default();
110110

ed448-goldilocks/src/edwards/extended.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ use elliptic_curve::{
2626
ops::{BatchInvert, LinearCombination},
2727
point::NonIdentity,
2828
};
29-
use rand_core::{TryCryptoRng, TryRngCore};
29+
use rand_core::{TryCryptoRng, TryRng};
3030
use subtle::{Choice, ConditionallySelectable, ConstantTimeEq, CtOption};
3131

3232
#[cfg(feature = "alloc")]
@@ -134,7 +134,7 @@ impl Group for EdwardsPoint {
134134

135135
fn try_from_rng<R>(rng: &mut R) -> Result<Self, R::Error>
136136
where
137-
R: TryRngCore + ?Sized,
137+
R: TryRng + ?Sized,
138138
{
139139
loop {
140140
let point = AffinePoint::try_from_rng(rng)?;

ed448-goldilocks/src/field/element.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ use elliptic_curve::{
1919
zeroize::DefaultIsZeroes,
2020
};
2121
use hash2curve::MapToCurve;
22-
use rand_core::TryRngCore;
22+
use rand_core::TryRng;
2323
use subtle::{
2424
Choice, ConditionallyNegatable, ConditionallySelectable, ConstantTimeEq, ConstantTimeLess,
2525
CtOption,
@@ -238,7 +238,7 @@ impl Field for FieldElement {
238238
const ZERO: Self = Self::ZERO;
239239
const ONE: Self = Self::ONE;
240240

241-
fn try_from_rng<R: TryRngCore + ?Sized>(rng: &mut R) -> Result<Self, R::Error> {
241+
fn try_from_rng<R: TryRng + ?Sized>(rng: &mut R) -> Result<Self, R::Error> {
242242
let mut bytes = [0; 56];
243243

244244
loop {

0 commit comments

Comments
 (0)