The key parameters structure containing key, nonce, and info arrays and lengths. More...
#include <rcs.h>
Data Fields | |
const uint8_t * | key |
size_t | keylen |
uint8_t * | nonce |
const uint8_t * | info |
size_t | infolen |
The key parameters structure containing key, nonce, and info arrays and lengths.
Use this structure to load an input cipher-key and optional info tweak using the qsc_rcs_initialize function. Keys must be random and secret, and align to the corresponding key size of the cipher implemented. The info parameter is optional and can be a salt or secondary key. The nonce is always QSC_RCS_BLOCK_SIZE in length.
const uint8_t* info |
[const] The information tweak.
size_t infolen |
The length in bytes of the information tweak.
const uint8_t* key |
[const] The input cipher key.
size_t keylen |
The length in bytes of the cipher key.
uint8_t* nonce |
The nonce or initialization vector.