Skip to content

Commit 4be5aa4

Browse files
authored
Bump rand_core to v0.10.0-rc-4 (#2195)
It seems like the changes are backwards compatible with every crate except for `elliptic-curve`, where some reborrowing was required
1 parent 226d743 commit 4be5aa4

12 files changed

Lines changed: 31 additions & 31 deletions

File tree

Cargo.lock

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

aead/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "aead"
3-
version = "0.6.0-rc.5"
3+
version = "0.6.0-rc.6"
44
authors = ["RustCrypto Developers"]
55
edition = "2024"
66
rust-version = "1.85"
@@ -16,7 +16,7 @@ such as AES-GCM as ChaCha20Poly1305, which provide a high-level API
1616
"""
1717

1818
[dependencies]
19-
crypto-common = { version = "0.2.0-rc.9", path = "../crypto-common" }
19+
crypto-common = { version = "0.2.0-rc.10", path = "../crypto-common" }
2020
inout = "0.2.2"
2121

2222
# optional dependencies

cipher/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "cipher"
3-
version = "0.5.0-rc.3"
3+
version = "0.5.0-rc.4"
44
authors = ["RustCrypto Developers"]
55
edition = "2024"
66
rust-version = "1.85"
@@ -13,7 +13,7 @@ categories = ["cryptography", "no-std"]
1313
description = "Traits for describing block ciphers and stream ciphers"
1414

1515
[dependencies]
16-
crypto-common = { version = "0.2.0-rc.9", path = "../crypto-common" }
16+
crypto-common = { version = "0.2.0-rc.10", path = "../crypto-common" }
1717
inout = "0.2.2"
1818

1919
# optional dependencies

crypto-common/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "crypto-common"
3-
version = "0.2.0-rc.9"
3+
version = "0.2.0-rc.10"
44
authors = ["RustCrypto Developers"]
55
edition = "2024"
66
rust-version = "1.85"
@@ -17,7 +17,7 @@ hybrid-array = "0.4"
1717

1818
# optional dependencies
1919
getrandom = { version = "0.4.0-rc.0", optional = true, features = ["sys_rng"] }
20-
rand_core = { version = "0.10.0-rc-3", optional = true }
20+
rand_core = { version = "0.10.0-rc-4", optional = true }
2121

2222
[features]
2323
getrandom = ["rand_core", "dep:getrandom"]

digest/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "digest"
3-
version = "0.11.0-rc.5"
3+
version = "0.11.0-rc.6"
44
authors = ["RustCrypto Developers"]
55
edition = "2024"
66
rust-version = "1.85"
@@ -13,7 +13,7 @@ categories = ["cryptography", "no-std"]
1313
description = "Traits for cryptographic hash functions and message authentication codes"
1414

1515
[dependencies]
16-
crypto-common = { version = "0.2.0-rc.9", path = "../crypto-common" }
16+
crypto-common = { version = "0.2.0-rc.10", path = "../crypto-common" }
1717

1818
# optional dependencies
1919
block-buffer = { version = "0.11", optional = true }

elliptic-curve/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ features = ["hybrid-array", "rand_core", "subtle", "zeroize"]
2525
[dependencies]
2626
array = { package = "hybrid-array", version = "0.4", default-features = false, features = ["zeroize"] }
2727
base16ct = "1"
28-
common = { package = "crypto-common", version = "0.2.0-rc.9", features = ["rand_core"], path = "../crypto-common" }
29-
rand_core = { version = "0.10.0-rc-3", default-features = false }
28+
common = { package = "crypto-common", version = "0.2.0-rc.10", features = ["rand_core"], path = "../crypto-common" }
29+
rand_core = { version = "0.10.0-rc-4", default-features = false }
3030
subtle = { version = "2.6", default-features = false }
3131
zeroize = { version = "1.7", default-features = false }
3232

elliptic-curve/src/point/non_identity.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ where
8888
P: ConditionallySelectable + ConstantTimeEq + CurveGroup + Default,
8989
{
9090
/// Generate a random `NonIdentity<ProjectivePoint>`.
91-
pub fn random<R: CryptoRng + ?Sized>(rng: &mut R) -> Self {
91+
pub fn random<R: CryptoRng + ?Sized>(mut rng: &mut R) -> Self {
9292
loop {
93-
if let Some(point) = Self::new(P::random(rng)).into() {
93+
if let Some(point) = Self::new(P::random(&mut rng)).into() {
9494
break point;
9595
}
9696
}

elliptic-curve/src/scalar/blinded.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ where
3838
C: CurveArithmetic,
3939
{
4040
/// Create a new [`BlindedScalar`] from a scalar and a [`CryptoRng`].
41-
pub fn new<R: CryptoRng + ?Sized>(scalar: Scalar<C>, rng: &mut R) -> Self {
41+
pub fn new<R: CryptoRng + ?Sized>(scalar: Scalar<C>, mut rng: &mut R) -> Self {
4242
Self {
4343
scalar,
44-
mask: Scalar::<C>::random(rng),
44+
mask: Scalar::<C>::random(&mut rng),
4545
}
4646
}
4747
}

kem/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ Traits for Key Encapsulation Mechanisms (KEMs): public-key cryptosystems designe
1717
"""
1818

1919
[dependencies]
20-
crypto-common = { version = "0.2.0-rc.9", features = ["rand_core"], path = "../crypto-common" }
21-
rand_core = "0.10.0-rc-3"
20+
crypto-common = { version = "0.2.0-rc.10", features = ["rand_core"], path = "../crypto-common" }
21+
rand_core = "0.10.0-rc-4"
2222

2323
[features]
2424
getrandom = ["crypto-common/getrandom"]

password-hash/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "password-hash"
3-
version = "0.6.0-rc.8"
3+
version = "0.6.0-rc.9"
44
authors = ["RustCrypto Developers"]
55
edition = "2024"
66
rust-version = "1.85"
@@ -19,7 +19,7 @@ formats (e.g. Modular Crypt Format)
1919
[dependencies]
2020
getrandom = { version = "0.4.0-rc.0", optional = true, default-features = false }
2121
phc = { version = "0.6.0-rc.1", optional = true, default-features = false }
22-
rand_core = { version = "0.10.0-rc-3", optional = true, default-features = false }
22+
rand_core = { version = "0.10.0-rc-4", optional = true, default-features = false }
2323

2424
[features]
2525
alloc = ["phc?/alloc"]

0 commit comments

Comments
 (0)