crypto_box_keypair

The crypto_box_keypair() function randomly generates a secret key and a corresponding public key.

void
crypto_box_keypair
()
(
ubyte[] pk
,
ubyte[] sk
)

Parameters

pk ubyte[]

slice to put generated public key into

sk ubyte[]

slice to put generated secret key into

Return Value

Type: void

pair of new keys

Meta