diffieHellman
Computes the Diffie-Hellman shared secret based on a privateKey and a publicKey. Both keys must have the same asymmetricKeyType and must support either the DH or ECDH operation.
If the callback function is provided this function uses libuv's threadpool.
Since
v13.9.0, v12.17.0
external fun diffieHellman(options: DiffieHellmanOptions, callback: (@R|kotlin/ParameterName|(name = String(err)) ERROR CLASS: Symbol not found for js.errors.JsError??, secret: Buffer<*>) -> Unit)(source)