mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-07 06:09:42 +00:00
AEAD/Chacha20/Poly1305 encryption
This commit is contained in:
@@ -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 ();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user