Skip to content

Commit 7d982f7

Browse files
deps(identity): bump ring to v0.17.5
The `libp2p-identity` crate is a dependency of the entire ecosystem. We should keep its dependencies up to date as much as possible. At the moment, we can't bump `ring` across the entire workspace because we still need releases of `rustls` that update to the new `ring` version. Not all our users depend in `libp2p-tls` or `libp2p-quic` though. For those users, a bump in `libp2p-identity` will be useful. Pull-Request: #4779.
1 parent 9fed1a9 commit 7d982f7

File tree

5 files changed

+11
-6
lines changed

5 files changed

+11
-6
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ libp2p-dns = { version = "0.41.1", path = "transports/dns" }
8181
libp2p-floodsub = { version = "0.44.0", path = "protocols/floodsub" }
8282
libp2p-gossipsub = { version = "0.46.0", path = "protocols/gossipsub" }
8383
libp2p-identify = { version = "0.44.0", path = "protocols/identify" }
84-
libp2p-identity = { version = "0.2.7" }
84+
libp2p-identity = { version = "0.2.8" }
8585
libp2p-kad = { version = "0.45.1", path = "protocols/kad" }
8686
libp2p-mdns = { version = "0.45.0", path = "protocols/mdns" }
8787
libp2p-memory-connection-limits = { version = "0.2.0", path = "misc/memory-connection-limits" }

identity/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.2.8
2+
3+
- Bump `ring` to `0.17.5.
4+
See [PR 4779](https://github.com/libp2p/rust-libp2p/pull/4779).
5+
16
## 0.2.7
27

38
- Add `rand` feature to gate methods requiring a random number generator, enabling use in restricted environments (e.g. smartcontracts).

identity/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "libp2p-identity"
3-
version = "0.2.7"
3+
version = "0.2.8"
44
edition = "2021"
55
description = "Data structures and algorithms for identifying peers in libp2p."
66
rust-version = { workspace = true }
@@ -30,7 +30,7 @@ void = { version = "1.0", optional = true }
3030
zeroize = { version = "1.6", optional = true }
3131

3232
[target.'cfg(not(target_arch = "wasm32"))'.dependencies]
33-
ring = { version = "0.16.9", features = [ "alloc", "std"], default-features = false, optional = true }
33+
ring = { version = "0.17.5", features = [ "alloc", "std"], default-features = false, optional = true }
3434

3535
[features]
3636
secp256k1 = ["dep:libsecp256k1", "dep:asn1_der", "dep:sha2", "dep:hkdf", "dep:zeroize"]

identity/src/rsa.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ impl Keypair {
7171

7272
/// Sign a message with this keypair.
7373
pub fn sign(&self, data: &[u8]) -> Result<Vec<u8>, SigningError> {
74-
let mut signature = vec![0; self.0.public_modulus_len()];
74+
let mut signature = vec![0; self.0.public().modulus_len()];
7575
let rng = SystemRandom::new();
7676
match self.0.sign(&RSA_PKCS1_SHA256, &rng, data, &mut signature) {
7777
Ok(()) => Ok(signature),

0 commit comments

Comments
 (0)