7 #if !defined(_RijndaelCTR_h_) 8 #define _RijndaelCTR_h_ 11 #include "AESCounter.h" 35 void encrypt(
const uint8_t *data,
unsigned length, uint8_t *dest);
38 void decrypt(
const uint8_t *data,
unsigned length, uint8_t *dest);
53 void baseProcess(
const uint8_t *data,
unsigned length, uint8_t *dest);
60 #endif // _RijndaelCTR_h_ Class to compute AES 128 CTR encryption/decryption.
Definition: apps/elftosb/common/RijndaelCTR.h:19
AESCounter< 128 > m_counter
Counter value for encrypt/decrypt.
Definition: apps/elftosb/common/RijndaelCTR.h:50
RijndaelCTR & operator=(const RijndaelCTR &other)
Assignment operator.
Definition: apps/elftosb/common/RijndaelCTR.h:41
uint8_t block_t[BLOCK_SIZE]
The cipher block data type.
Definition: apps/elftosb/common/RijndaelCTR.h:28
Number of bytes in one cipher block.
Definition: apps/elftosb/common/RijndaelCTR.h:24
void encrypt(const uint8_t *data, unsigned length, uint8_t *dest)
Encrypt data.
Definition: apps/elftosb/common/RijndaelCTR.cpp:28
AESKey< 128 > m_key
128-bit key to use for encrypt/decrypt
Definition: apps/elftosb/common/RijndaelCTR.h:49
void decrypt(const uint8_t *data, unsigned length, uint8_t *dest)
Encrypt data.
Definition: apps/elftosb/common/RijndaelCTR.cpp:23