crypto_box_keypair

The crypto_box_keypair() function randomly generates a secret key and a corresponding public key. The public key is put into pkey and the secret key into skey.

  1. alias crypto_box_keypair = deimos.sodium.crypto_box.crypto_box_keypair
  2. bool crypto_box_keypair(ubyte[crypto_box_PUBLICKEYBYTES] pkey, ubyte[crypto_box_SECRETKEYBYTES] skey)
    pragma(inline, true) @nogc @trusted
    bool
    crypto_box_keypair
    (
    out ubyte[crypto_box_PUBLICKEYBYTES] pkey
    ,
    out ubyte[crypto_box_SECRETKEYBYTES] skey
    )

Meta