ddn.api.crypto.kex
Key Exchange (Key Agreement) API.
iface KeyAgreement
Types 1
interfaceKeyAgreement
Interface for Key Agreement protocols (e.g., Diffie-Hellman, ECDH).
A key agreement protocol allows two parties to establish a shared secret over an insecure channel using their public and private keys.
Methods
void init(PrivateKey privateKey)Initializes the key agreement with the local private key.ubyte[] calculateSecret(PublicKey publicKey)Calculates the shared secret using the peer's public key.