ChaCha20 decrypt

This commit is contained in:
orignal 2019-02-28 13:31:51 -05:00
parent af65af5be9
commit 9188e3ad3f
3 changed files with 26 additions and 3 deletions

View file

@ -290,6 +290,8 @@ namespace crypto
void AEADChaCha20Poly1305Encrypt (const std::vector<std::pair<uint8_t *, size_t> >& bufs, const uint8_t * key, const uint8_t * nonce, uint8_t * mac); // encrypt multiple buffers with zero ad
void ChaCha20 (const uint8_t * msg, size_t msgLen, const uint8_t * key, const uint8_t * nonce, uint8_t * out);
// init and terminate
void InitCrypto (bool precomputation);
void TerminateCrypto ();