Initial version of the chacha crypt function.