My Project
Loading...
Searching...
No Matches
chacha20_poly1305.h
1
49WOLFSSL_API
51 const byte inKey[CHACHA20_POLY1305_AEAD_KEYSIZE],
52 const byte inIV[CHACHA20_POLY1305_AEAD_IV_SIZE],
53 const byte* inAAD, const word32 inAADLen,
54 const byte* inPlaintext, const word32 inPlaintextLen,
55 byte* outCiphertext,
56 byte outAuthTag[CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE]);
57
113WOLFSSL_API
115 const byte inKey[CHACHA20_POLY1305_AEAD_KEYSIZE],
116 const byte inIV[CHACHA20_POLY1305_AEAD_IV_SIZE],
117 const byte* inAAD, const word32 inAADLen,
118 const byte* inCiphertext, const word32 inCiphertextLen,
119 const byte inAuthTag[CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE],
120 byte* outPlaintext);
WOLFSSL_API int wc_ChaCha20Poly1305_Encrypt(const byte inKey[CHACHA20_POLY1305_AEAD_KEYSIZE], const byte inIV[CHACHA20_POLY1305_AEAD_IV_SIZE], const byte *inAAD, const word32 inAADLen, const byte *inPlaintext, const word32 inPlaintextLen, byte *outCiphertext, byte outAuthTag[CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE])
This function encrypts an input message, inPlaintext, using the ChaCha20 stream cipher,...
Definition chacha20_poly1305.c:44
WOLFSSL_API int wc_ChaCha20Poly1305_Decrypt(const byte inKey[CHACHA20_POLY1305_AEAD_KEYSIZE], const byte inIV[CHACHA20_POLY1305_AEAD_IV_SIZE], const byte *inAAD, const word32 inAADLen, const byte *inCiphertext, const word32 inCiphertextLen, const byte inAuthTag[CHACHA20_POLY1305_AEAD_AUTHTAG_SIZE], byte *outPlaintext)
This function decrypts input ciphertext, inCiphertext, using the ChaCha20 stream cipher,...
Definition chacha20_poly1305.c:76