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