method DiffieHellman.prototype.setPublicKey
Jump to headingDiffieHellman.prototype.setPublicKey(publicKey: ArrayBufferView): void
Sets 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: ArrayBufferView
Return Type Jump to heading
void
Jump to headingDiffieHellman.prototype.setPublicKey(publicKey: string,encoding: BufferEncoding,): void
Parameters Jump to heading
Jump to headingpublicKey: string
Jump to headingencoding: BufferEncoding
Return Type Jump to heading
void