chacha20-poly1305: fix wrong en/decryption on large input buffers