Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
incertia committed Apr 19, 2024
1 parent adf4eb7 commit fc57d90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dhkem/src/arithmetic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ where
type Error = ();

fn decapsulate(&self, encapsulated_key: &PublicKey<C>) -> Result<SharedSecret<C>, Self::Error> {
let ss = self.0.diffie_hellman(&encapsulated_key);
let ss = self.0.diffie_hellman(encapsulated_key);

Ok(ss)
}
Expand Down
2 changes: 1 addition & 1 deletion dhkem/src/x25519_kem.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ impl Decapsulate<PublicKey, SharedSecret> for DhDecapsulator<ReusableSecret> {
type Error = ();

fn decapsulate(&self, encapsulated_key: &PublicKey) -> Result<SharedSecret, Self::Error> {
let ss = self.0.diffie_hellman(&encapsulated_key);
let ss = self.0.diffie_hellman(encapsulated_key);

Ok(ss)
}
Expand Down

0 comments on commit fc57d90

Please sign in to comment.