method DiffieHellman.prototype.setPublicKey
Jump to headingDiffieHellman.prototype.setPublicKey(publicKey: ArrayBufferView): voidSets the Diffie-Hellman public key. If the encoding argument is provided, publicKey is expected
to be a string. If no encoding is provided, publicKey is expected
to be a Buffer, TypedArray, or DataView.
Parameters Jump to heading
Jump to headingpublicKey: ArrayBufferViewReturn Type Jump to heading
voidJump to headingDiffieHellman.prototype.setPublicKey(publicKey: string,encoding: BufferEncoding,): voidParameters Jump to heading
Jump to headingpublicKey: stringJump to headingencoding: BufferEncodingReturn Type Jump to heading
void