boolAEADChaCha20Poly1305(constuint8_t*msg,size_tmsgLen,constuint8_t*ad,size_tadLen,constuint8_t*key,constuint8_t*nonce,uint8_t*buf,size_tlen,boolencrypt);// msgLen is len without tag
voidAEADChaCha20Poly1305Encrypt(std::vector<std::pair<uint8_t*,size_t>>&bufs,constuint8_t*key,constuint8_t*nonce,uint8_t*mac);// encrypt multiple buffers with zero ad
voidAEADChaCha20Poly1305Encrypt(conststd::vector<std::pair<uint8_t*,size_t>>&bufs,constuint8_t*key,constuint8_t*nonce,uint8_t*mac);// encrypt multiple buffers with zero ad