NodecryptodiffieHellmanfunction diffieHellman#diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject; }): BufferComputes the Diffie-Hellman secret based on a privateKey and a publicKey. Both keys must have the same asymmetricKeyType, which must be one of 'dh' (for Diffie-Hellman), 'ec' (for ECDH), 'x448', or 'x25519' (for ECDH-ES). Parameters ##options: { privateKey: KeyObject; publicKey: KeyObject; }Return Type #Buffer
function diffieHellman#diffieHellman(options: { privateKey: KeyObject; publicKey: KeyObject; }): BufferComputes the Diffie-Hellman secret based on a privateKey and a publicKey. Both keys must have the same asymmetricKeyType, which must be one of 'dh' (for Diffie-Hellman), 'ec' (for ECDH), 'x448', or 'x25519' (for ECDH-ES). Parameters ##options: { privateKey: KeyObject; publicKey: KeyObject; }Return Type #Buffer