diffieHellman.setPrivateKey(privateKey[, encoding])
privateKey<string> | <ArrayBuffer> | <Buffer> | <TypedArray> | <DataView>encoding<string>privateKey字符串的编码。
设置 Diffie-Hellman 私钥。
如果提供了 encoding 参数,则 privateKey 应该是字符串。
如果未提供 encoding,则 privateKey 应为 Buffer、TypedArray 或 DataView。
privateKey<string> | <ArrayBuffer> | <Buffer> | <TypedArray> | <DataView>encoding<string> The encoding of theprivateKeystring.
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.