Skip to content

Commit

Permalink
Bump p256 version in tls-mpc to 0.13
Browse files Browse the repository at this point in the history
- Add feedback
  • Loading branch information
th4s committed Jun 26, 2023
1 parent f1809a0 commit 841d406
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion components/key-exchange/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "tlsn-key-exchange"
authors = ["TLSNotary Team"]
description = "Implementation of the TLSN-specific key-exchange protocol"
description = "Implementation of the TLSNotary-specific key-exchange protocol"
keywords = ["tls", "mpc", "2pc", "pms", "key-exchange"]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion components/tls/tls-mpc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ tlsn-hmac-sha256 = { path = "../../prf/hmac-sha256" }
tlsn-utils = { git = "https://github.com/tlsnotary/tlsn-utils" }
tlsn-utils-aio = { git = "https://github.com/tlsnotary/tlsn-utils" }

p256 = { version = "0.12" }
p256 = { version = "0.13" }

rand.workspace = true

Expand Down
2 changes: 1 addition & 1 deletion components/tls/tls-mpc/src/follower.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl MpcTlsFollower {
// Key exchange
_ = self
.ke
.compute_client_key(p256::SecretKey::random(rand::rngs::OsRng))
.compute_client_key(p256::SecretKey::random(&mut rand::rngs::OsRng))
.await?;

if self.config.common().handshake_commit() {
Expand Down
2 changes: 1 addition & 1 deletion components/tls/tls-mpc/src/leader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ impl MpcTlsLeader {
pub async fn compute_client_key(&mut self) -> Result<PublicKey, MpcTlsError> {
let pk = self
.ke
.compute_client_key(SecretKey::random(rand::rngs::OsRng))
.compute_client_key(SecretKey::random(&mut rand::rngs::OsRng))
.await?
.expect("client key is returned as leader");

Expand Down

0 comments on commit 841d406

Please sign in to comment.