mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Made StaticSecret cloneable
This commit is contained in:
parent
45bc970eec
commit
935f6e8e35
1 changed files with 1 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue