Struct containing the parameters required for encrypting/decrypting a message in a single-step operation. More...
#include <AESCBC.h>
Data Fields | |
CryptoKey * | key |
uint8_t * | input |
uint8_t * | output |
uint8_t * | iv |
size_t | inputLength |
bool | ivInternallyGenerated |
Struct containing the parameters required for encrypting/decrypting a message in a single-step operation.
uint8_t* AESCBC_OneStepOperation::input |
uint8_t* AESCBC_OneStepOperation::output |
uint8_t* AESCBC_OneStepOperation::iv |
A buffer containing an IV. IVs must be unique to each CBC operation and may not be reused. If ivInternallyGenerated is set, the IV will be generated by AESCBC_oneStepEncrypt() and copied to this buffer.
size_t AESCBC_OneStepOperation::inputLength |
Length of the input buffer in bytes for one-step AES CBC operations. Must be a multiple of the AES block size (16 bytes). Also, the output buffer must be large enough to receive the same number of bytes. The user or application should take care of necessary padding. Max length supported may be limited depending on the return behavior.
bool AESCBC_OneStepOperation::ivInternallyGenerated |
When true, the IV buffer passed into AESCBC_oneStepEncrypt() will be overwritten with a randomly generated IV. Not supported by all implementations.