dalek-cryptography / x25519-dalek

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

Make `static_secrets` optional #122

Closed pinkforest closed 1 year ago

pinkforest commented 1 year ago

Makes StaticSecret optional behind feature flag static_secrets following reusable_secrets

rozbb commented 1 year ago

The reasoning for this, as I understand it, is the same for gating reusable secrets: accidental reuse is really bad, and the priority of this crate is (allegedly) ephemeral ECDH. I'm convinced enough.

cc @tarcieri