26 #include "BlockCipher.h"
38 void initNext(uint8_t omac[16], uint8_t tag);
39 void update(uint8_t omac[16],
const uint8_t *data,
size_t size);
Abstract base class for block ciphers.
Implementation of the OMAC message authenticator.
void initFirst(uint8_t omac[16])
Initialises the first OMAC hashing context and creates the B value.
void clear()
Clears all security-sensitive state from this object.
void update(uint8_t omac[16], const uint8_t *data, size_t size)
Updates an OMAC hashing context with more data.
~OMAC()
Destroys this OMAC object.
BlockCipher * blockCipher() const
Gets the block cipher that is in use for this OMAC object.
void setBlockCipher(BlockCipher *cipher)
Sets the block cipher to use for this OMAC object.
void initNext(uint8_t omac[16], uint8_t tag)
Initialises or restarts an OMAC hashing context.
void finalize(uint8_t omac[16])
Finalises an OMAC hashing context.
OMAC()
Constructs a new OMAC object.