• Generate Salsa20/20 stream for the given 32-byte key and 24-byte nonce and write it into dst and return it.

    Never use the same key and nonce to generate more than one stream.

    stream is like streamXOR with all-zero src.

    Parameters

    • key: Uint8Array
    • nonce: Uint8Array
    • dst: Uint8Array
    • nonceInplaceCounterLength: number = 0

    Returns Uint8Array