libhydrogen uses ChaCha20 and SipHash-128 to build an authenticated encryption scheme. Further the implementation of the deterministic RNG uses ChaCha to produce random bytes from a seed.
So implement ChaCha20/12 within a private package: hydrogen/internal/chacha20