privateKey
{string | Buffer | TypedArray | DataView}encoding
{string} The [encoding][] of theprivateKey
string.
Sets the Diffie-Hellman private key. If the encoding
argument is provided,
privateKey
is expected
to be a string. If no encoding
is provided, privateKey
is expected
to be a [Buffer
][], TypedArray
, or DataView
.