Skip to content

Commit

Permalink
adds in a public constructer to make a shared secret from a public key
Browse files Browse the repository at this point in the history
  • Loading branch information
SWvheerden committed Jun 28, 2024
1 parent 25ca71a commit c4ecf94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dhke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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>(P)
pub struct DiffieHellmanSharedSecret<P>(pub P)
where P: PublicKey;

impl<P> DiffieHellmanSharedSecret<P>
Expand Down

0 comments on commit c4ecf94

Please sign in to comment.