23 #ifndef CRYPTO_ACORN128_H 
   24 #define CRYPTO_ACORN128_H 
   26 #include "AuthenticatedCipher.h" 
   60 #define CRYPTO_ACORN128_AVR 1 
   62 #define CRYPTO_ACORN128_DEFAULT 1 
   77     bool setKey(
const uint8_t *key, 
size_t len);
 
   78     bool setIV(
const uint8_t *iv, 
size_t len);
 
   80     void encrypt(uint8_t *output, 
const uint8_t *input, 
size_t len);
 
   81     void decrypt(uint8_t *output, 
const uint8_t *input, 
size_t len);
 
   86     bool checkTag(
const void *tag, 
size_t len);
 
ACORN-128 authenticated cipher.
bool checkTag(const void *tag, size_t len)
Finalizes the decryption process and checks the authentication tag.
virtual ~Acorn128()
Destroys this Acorn128 authenticated cipher.
bool setKey(const uint8_t *key, size_t len)
Sets the key to use for future encryption and decryption operations.
void computeTag(void *tag, size_t len)
Finalizes the encryption process and computes the authentication tag.
void encrypt(uint8_t *output, const uint8_t *input, size_t len)
Encrypts an input buffer and writes the ciphertext to an output buffer.
size_t keySize() const
Gets the size of the Acorn128 key in bytes.
void decrypt(uint8_t *output, const uint8_t *input, size_t len)
Decrypts an input buffer and writes the plaintext to an output buffer.
size_t tagSize() const
Gets the size of the Acorn128 authentication tag in bytes.
void addAuthData(const void *data, size_t len)
Adds extra data that will be authenticated but not encrypted.
void clear()
Clears all security-sensitive state from this cipher object.
bool setIV(const uint8_t *iv, size_t len)
Sets the initialization vector to use for future encryption and decryption operations.
size_t ivSize() const
Gets the size of the Acorn128 initialization vector in bytes.
Acorn128()
Constructs a new Acorn128 authenticated cipher.
Abstract base class for authenticated ciphers.