We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
SecretKey::diffie_hellman
&self
1 parent 35ec00a commit 43d0207Copy full SHA for 43d0207
elliptic-curve/src/secret_key.rs
@@ -179,7 +179,7 @@ where
179
///
180
/// See the documentation in the [`ecdh`] module for more information.
181
#[cfg(feature = "ecdh")]
182
- pub fn diffie_hellman(self, public_key: &PublicKey<C>) -> ecdh::SharedSecret<C>
+ pub fn diffie_hellman(&self, public_key: &PublicKey<C>) -> ecdh::SharedSecret<C>
183
where
184
C: CurveArithmetic,
185
{
0 commit comments