My Project
Functions
chacha.h File Reference

Go to the source code of this file.

Functions

int wc_Chacha_SetIV (ChaCha *ctx, const byte *inIv, word32 counter)
 This function sets the initialization vector (nonce) for a ChaCha object, initializing it for use as a cipher. It should be called after the key has been set, using wc_Chacha_SetKey. A difference nonce should be used for each round of encryption. More...
 
int wc_Chacha_Process (ChaCha *ctx, byte *cipher, const byte *plain, word32 msglen)
 This function processes the text from the buffer input, encrypts or decrypts it, and stores the result in the buffer output. More...
 
int wc_Chacha_SetKey (ChaCha *ctx, const byte *key, word32 keySz)
 This function sets the key for a ChaCha object, initializing it for use as a cipher. It should be called before setting the nonce with wc_Chacha_SetIV, and before using it for encryption with wc_Chacha_Process. More...