23 #ifndef CRYPTO_SPECK_H 
   24 #define CRYPTO_SPECK_H 
   26 #include "BlockCipher.h" 
   37     bool setKey(
const uint8_t *key, 
size_t len);
 
   39     void encryptBlock(uint8_t *output, 
const uint8_t *input);
 
   40     void decryptBlock(uint8_t *output, 
const uint8_t *input);
 
Abstract base class for block ciphers.
Speck block cipher with a 128-bit block size.
Speck()
Constructs a Speck block cipher with no initial key.
bool setKey(const uint8_t *key, size_t len)
Sets the key to use for future encryption and decryption operations.
void clear()
Clears all security-sensitive state from this block cipher.
size_t blockSize() const
Size of a single block processed by this cipher, in bytes.
size_t keySize() const
Default size of the key for this block cipher, in bytes.
void decryptBlock(uint8_t *output, const uint8_t *input)
Decrypts a single block using this cipher.
void encryptBlock(uint8_t *output, const uint8_t *input)
Encrypts a single block using this cipher.