🚀 Feature Release: Elliptic Curve Diffie-Hellman (ECDH)
This release introduces a major new feature: Elliptic Curve Diffie-Hellman (ECDH) key exchange. This allows two parties to securely establish a shared secret over an insecure channel, which can then be used to derive symmetric encryption keys.
✨ New Features
- ECDH Key Exchange: A new
ecdh()method has been added to thePrivateKeyclass, providing a clean, object-oriented API for performing key agreement. - Secure Key Derivation: The shared secret is derived using a standard HMAC-based Key Derivation Function (HKDF) as specified in RFC 5869. This is the industry best practice for turning a raw shared secret into a cryptographically strong key.
- Fully Tested: The new ECDH implementation is rigorously tested to ensure correctness and that both parties always arrive at the same shared secret.
Full Changelog: v0.1.2...v0.2.0