dalek-cryptography / x25519-dalek

X25519 elliptic curve Diffie-Hellman key exchange in pure-Rust, using curve25519-dalek.
BSD 3-Clause "New" or "Revised" License
328 stars 133 forks source link

Made StaticSecret cloneable #40

Closed rozbb closed 5 years ago

rozbb commented 5 years ago

I ran into this issue in practice. My use case: I have a TreeKEM tree of private keys that needs updating, but the update operation is fallible. So I run the update on a clone of the tree, and if it fails, I rollback and delete the clone.

hdevalence commented 5 years ago

I can do a point release with this change included.