Skip to content

Commit

Permalink
Merge pull request #40 from rozbb/master
Browse files Browse the repository at this point in the history
Made StaticSecret cloneable
  • Loading branch information
hdevalence committed Mar 22, 2019
2 parents daf8629 + 935f6e8 commit 9aa1b8b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/x25519.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ impl<'a> From<&'a EphemeralSecret> for PublicKey {
/// A `StaticSecret` is a static Diffie-Hellman secret key that
/// can be saved and loaded to create a `SharedSecret` when given
/// their `PublicKey`.
#[derive(Clone)]
pub struct StaticSecret(pub (crate) Scalar);

/// Overwrite static secret key material with null bytes when it goes out of scope.
Expand Down

0 comments on commit 9aa1b8b

Please sign in to comment.