• Encrypt src with Salsa20/20 stream generated for the given 32-byte key and 24-byte and write the result into dst and return it.

    dst and src may be the same, but otherwise must not overlap.

    Never use the same key and nonce to encrypt more than one message.

    Parameters

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

    Returns Uint8Array