• HSalsa20 is a one-way function used in XSalsa20 to extend nonce, and in NaCl to hash X25519 shared keys. It takes 32-byte key and 16-byte src and writes 32-byte result into dst and returns it.

    Parameters

    • key: Uint8Array
    • src: Uint8Array
    • dst: Uint8Array

    Returns Uint8Array