Merge branch 'release/0.5.2'

This commit is contained in:
Henry de Valence 2019-03-29 12:56:08 -07:00
commit 9567e021c5
3 changed files with 11 additions and 1 deletions

View file

@ -2,6 +2,15 @@
Entries are listed in reverse chronological order.
## 0.5.2
* Implement `Clone` for `StaticSecret`.
## 0.5.1
* Implement `Copy, Clone, Debug` for `PublicKey`.
* Remove doctests.
## 0.5.0
* Adds support for static and ephemeral keys.

View file

@ -1,6 +1,6 @@
[package]
name = "x25519-dalek"
version = "0.5.1"
version = "0.5.2"
authors = [
"Isis Lovecruft <isis@patternsinthevoid.net>",
"DebugSteven <debugsteven@gmail.com>",

View file

@ -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.