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

Use zeroize crate #39

Closed DebugSteven closed 4 years ago

DebugSteven commented 5 years ago

This PR removes the use of clear_on_drop and replaces it with zeroize. The switch to use zeroize would be nice because the crate has nicer documentation and platform support. This PR depends on https://github.com/dalek-cryptography/curve25519-dalek/pull/236 and should change theCargo.toml to use a newer version of curve25519-dalek if this change is accepted. Currently the Cargo.toml has a git dependency on the branch I implemented the Zeroize traits for Scalar and MontgomeryPoint on.