mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 03:37:49 +02:00
AEAD/Chacha20/Poly1305 encryption
This commit is contained in:
parent
bf1e1ad457
commit
df60e78766
5 changed files with 52 additions and 10 deletions
|
@ -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 ();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue