Update src/x25519.rs

Co-Authored-By: DebugSteven <debugsteven@gmail.com>
This commit is contained in:
Henry de Valence 2018-12-15 17:42:25 -05:00 committed by GitHub
parent f6da70d47b
commit 0fc69912d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -35,7 +35,6 @@ impl From<[u8; 32]> for EphemeralPublic {
/// A DH ephemeral secret key.
#[repr(C)]
#[derive(Default)] // we derive Default in order to use the clear() method in Drop
pub struct EphemeralSecret(pub (crate) Scalar);
/// Overwrite ephemeral secret key material with null bytes when it goes out of scope.