first stage of adding ChaCha20, Poly1305 and AEAD