Extracted the core ChaCha20 transform.