From c4ecf9463c1e10c7bf98192eb19dd67d4115cd38 Mon Sep 17 00:00:00 2001 From: SW van Heerden Date: Fri, 28 Jun 2024 15:05:36 +0200 Subject: [PATCH] adds in a public constructer to make a shared secret from a public key --- src/dhke.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dhke.rs b/src/dhke.rs index 2282ab89..f7e02d06 100644 --- a/src/dhke.rs +++ b/src/dhke.rs @@ -18,7 +18,7 @@ use crate::keys::PublicKey; /// The result of a Diffie-Hellman key exchange #[derive(PartialEq, Eq, Zeroize, ZeroizeOnDrop)] -pub struct DiffieHellmanSharedSecret

(P) +pub struct DiffieHellmanSharedSecret

(pub P) where P: PublicKey; impl

DiffieHellmanSharedSecret