AEAD/Chacha20/Poly1305 encryption

This commit is contained in:
orignal 2018-06-13 11:41:46 -04:00
parent bf1e1ad457
commit df60e78766
5 changed files with 52 additions and 10 deletions

View file

@ -252,6 +252,10 @@ namespace crypto
CBCDecryption m_LayerDecryption;
};
// AEAD/ChaCha20/Poly1305
size_t AEADChaCha20Poly1305Encrypt (const uint8_t * msg, size_t msgLen, const uint8_t * ad, size_t adLen, const uint8_t * key, const uint8_t * nonce, uint8_t * buf, size_t len);
// init and terminate
void InitCrypto (bool precomputation);
void TerminateCrypto ();
}