• HChaCha is a one-way function used in XChaCha to extend nonce.

    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