
|
My Project
|
Functions | |
| WOLFSSL_API int | wc_Hc128_Process (HC128 *, byte *, const byte *, word32) |
| This function encrypts or decrypts a message of any size from the input buffer input, and stores the resulting plaintext/ciphertext in the output buffer output. | |
| WOLFSSL_API int | wc_Hc128_SetKey (HC128 *, const byte *key, const byte *iv) |
| This function initializes an HC128 context object by setting its key and iv. | |
| WOLFSSL_API int wc_Hc128_Process | ( | HC128 * | ctx, |
| byte * | output, | ||
| const byte * | input, | ||
| word32 | msglen ) |
This function encrypts or decrypts a message of any size from the input buffer input, and stores the resulting plaintext/ciphertext in the output buffer output.
| ctx | pointer to a HC-128 context object with an initialized key to use for encryption or decryption |
| output | buffer in which to store the processed input |
| input | buffer containing the plaintext to encrypt or the ciphertext to decrypt |
| msglen | length of the plaintext to encrypt or the ciphertext to decrypt |
Example
| WOLFSSL_API int wc_Hc128_SetKey | ( | HC128 * | ctx, |
| const byte * | key, | ||
| const byte * | iv ) |
This function initializes an HC128 context object by setting its key and iv.
| ctx | pointer to an HC-128 context object to initialize |
| key | pointer to the buffer containing the 16 byte key to use with encryption/decryption |
| iv | pointer to the buffer containing the 16 byte iv (nonce) with which to initialize the HC128 object |
Example