23 #ifndef CRYPTO_SPECK_LOW_MEMORY_H
24 #define CRYPTO_SPECK_LOW_MEMORY_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);
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.
Abstract base class for block ciphers.
void clear()
Clears all security-sensitive state from this block cipher.
void decryptBlock(uint8_t *output, const uint8_t *input)
Decrypts a single block using this cipher.
Speck block cipher with a 128-bit block size (low-memory version).
SpeckLowMemory()
Constructs a low-memory 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.