
|
My Project
|
Functions | |
| WOLFSSL_API int | wc_RabbitProcess (Rabbit *, byte *, const byte *, word32) |
| This function encrypts or decrypts a message of any size, storing the result in output. It requires that the Rabbit ctx structure be initialized with a key and an iv before encryption. | |
| WOLFSSL_API int | wc_RabbitSetKey (Rabbit *, const byte *key, const byte *iv) |
| This function initializes a Rabbit context for use with encryption or decryption by setting its iv and key. | |
| WOLFSSL_API int wc_RabbitProcess | ( | Rabbit * | ctx, |
| byte * | output, | ||
| const byte * | input, | ||
| word32 | msglen ) |
This function encrypts or decrypts a message of any size, storing the result in output. It requires that the Rabbit ctx structure be initialized with a key and an iv before encryption.
| ctx | pointer to the Rabbit structure to use for encryption/decryption |
| output | pointer to the buffer in which to store the processed message. Should be at least msglen long |
| input | pointer to the buffer containing the message to process |
| msglen | the length of the message to process |
Example
| WOLFSSL_API int wc_RabbitSetKey | ( | Rabbit * | ctx, |
| const byte * | key, | ||
| const byte * | iv ) |
This function initializes a Rabbit context for use with encryption or decryption by setting its iv and key.
| ctx | pointer to the Rabbit structure to initialize |
| key | pointer to the buffer containing the 16 byte key to use for encryption/decryption |
| iv | pointer to the buffer containing the 8 byte iv with which to initialize the Rabbit structure |
Example