Skip to content

libsodium.PKI.EncryptionKey.Generate

Andrew Lambert edited this page Nov 26, 2022 · 5 revisions

Method Signature

 Shared Function Generate(Optional SeedData As MemoryBlock) As libsodium.PKI.EncryptionKey

Parameters

Name Type Comment
SeedData MemoryBlock Optional. A random seed (exactly crypto_box_SEEDBYTES long).

Return value

An instance of EncryptionKey containing the newly generated key pair, or Nil on error.

Remarks

Randomly generates a new EncryptionKey pair, optionally using the specified seed.

See also

Clone this wiki locally