mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-06 20:41:14 +00:00
Make ReusableSecret derive Clone.
This commit is contained in:
parent
3924797b59
commit
588e48f8f2
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ impl<'a> From<&'a EphemeralSecret> for PublicKey {
|
||||||
/// secret keys are never reused, which can have very serious security
|
/// secret keys are never reused, which can have very serious security
|
||||||
/// implications for many protocols.
|
/// implications for many protocols.
|
||||||
#[cfg(feature = "reusable_secrets")]
|
#[cfg(feature = "reusable_secrets")]
|
||||||
#[derive(Zeroize)]
|
#[derive(Clone, Zeroize)]
|
||||||
#[zeroize(drop)]
|
#[zeroize(drop)]
|
||||||
pub struct ReusableSecret(pub(crate) Scalar);
|
pub struct ReusableSecret(pub(crate) Scalar);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue