Create a public/private keypair to be used with createNoiseStream.
Warning: When using the overload taking two ubyte[] buffers,
the privKey buffer needs to be a secure buffer. Avoid copying this
data around and make sure to (properly!) zero the data if you no longer need it.
Also guarding the key memory page as done by libsodium is recommended.
The overloads not taking a privateKey ubyte[] buffer handle all these details.
Create a public/private keypair to be used with createNoiseStream.
Warning: When using the overload taking two ubyte[] buffers, the privKey buffer needs to be a secure buffer. Avoid copying this data around and make sure to (properly!) zero the data if you no longer need it. Also guarding the key memory page as done by libsodium is recommended.
The overloads not taking a privateKey ubyte[] buffer handle all these details.