Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Stephane Raux <[email protected]>
  • Loading branch information
mulmarta and stefunctional authored Jan 10, 2025
1 parent 507fcdc commit 206af34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mls-rs-crypto-rustcrypto/src/ecdh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ impl DhType for Ecdh {
}

fn public_key_size(&self) -> usize {
self.0.secret_key_size()
self.0.public_key_size()
}
}

Expand Down
2 changes: 1 addition & 1 deletion mls-rs-crypto-webcrypto/src/ec/ecdh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ impl DhType for Ecdh {
}

fn public_key_size(&self) -> usize {
self.curve.secret_key_size()
self.curve.public_key_size()
}
}

Expand Down

0 comments on commit 206af34

Please sign in to comment.