method ECDH.prototype.setPrivateKey
Jump to headingECDH.prototype.setPrivateKey(privateKey: ArrayBufferView): voidSets the EC Diffie-Hellman private key.
If encoding is provided, privateKey is expected
to be a string; otherwise privateKey is expected to be a Buffer, TypedArray, or DataView.
If privateKey is not valid for the curve specified when the ECDH object was
created, an error is thrown. Upon setting the private key, the associated
public point (key) is also generated and set in the ECDH object.
Parameters Jump to heading
Jump to headingprivateKey: ArrayBufferViewReturn Type Jump to heading
voidJump to headingECDH.prototype.setPrivateKey(privateKey: string,encoding: BinaryToTextEncoding,): voidParameters Jump to heading
Jump to headingprivateKey: stringJump to headingencoding: BinaryToTextEncodingReturn Type Jump to heading
void