Skip to content

Commit 43d0207

Browse files
committed
elliptic-curve: SecretKey::diffie_hellman borrow &self
1 parent 35ec00a commit 43d0207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

elliptic-curve/src/secret_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ where
179179
///
180180
/// See the documentation in the [`ecdh`] module for more information.
181181
#[cfg(feature = "ecdh")]
182-
pub fn diffie_hellman(self, public_key: &PublicKey<C>) -> ecdh::SharedSecret<C>
182+
pub fn diffie_hellman(&self, public_key: &PublicKey<C>) -> ecdh::SharedSecret<C>
183183
where
184184
C: CurveArithmetic,
185185
{

0 commit comments

Comments
 (0)