mirror of
https://github.com/saymrwulf/curve25519-dalek-source.git
synced 2026-09-04 20:24:10 +00:00
Merge branch 'release/0.5.2'
This commit is contained in:
commit
9567e021c5
3 changed files with 11 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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>",
|
||||
|
|
|
|||
|
|
@ -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