Skip to content

libsodium.KeyStream.RandomNonce

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

libsodium.KeyStream.RandomNonce

Method Signature

  Shared Function RandomNonce(Type As libsodium.KeyStream.StreamType = libsodium.KeyStream.StreamType.XSalsa20) As MemoryBlock

Parameters

Name Type Comment
Type StreamType Optional. The cipher being used. If not specified then XSalsa20 is used.

Return value

Unpredictable bytes that are suitable to be used as a Nonce with KeyStream.Process and KeyStream.DeriveKey

Clone this wiki locally