Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: simplify zeroizing and add test to DHKE (#197)
Simplifies the implementation of zeroizing support for Diffie-Hellman key exchanges and improves test coverage. Currently, the `DiffieHellmanSharedSecret` struct has manual implementations of `zeroize` and `drop` to handle zeroizing. Now that we have a more modern version of `zeroize` as a dependency, we can do better. This PR uses that crate's `Zeroize` and `ZeroizeOnDrop` derived traits to handle this more cleanly. It also adds a sanity check that the byte representations of both sides of a key exchange match, which improves test coverage. Partially addresses #196.
- Loading branch information