SKINNY block cipher with a 128-bit block, a 128-bit key, and a 128-bit tweak. More...
#include <Skinny128.h>
Public Member Functions | |
Skinny128_256_Tweaked () | |
Constructs a tweakable Skinny-128 block cipher with a 128-bit key and a 128-bit tweak. | |
virtual | ~Skinny128_256_Tweaked () |
Destroys this tweakable Skinny-128 block cipher object after clearing sensitive information. | |
size_t | keySize () const |
Size of a Skinny128_256_Tweaked key in bytes. More... | |
bool | setKey (const uint8_t *key, size_t len) |
Sets the key to use for future encryption and decryption operations. More... | |
Public Member Functions inherited from Skinny128_Tweaked | |
virtual | ~Skinny128_Tweaked () |
Destroys this tweakable Skinny-128 block cipher object after clearing sensitive information. | |
bool | setTweak (const uint8_t *tweak, size_t len) |
Sets the 128-bit tweak value for this block cipher. More... | |
void | clear () |
Clears all security-sensitive state from this block cipher. More... | |
Public Member Functions inherited from Skinny128 | |
virtual | ~Skinny128 () |
Destroys this Skinny-128 block cipher object after clearing sensitive information. | |
size_t | blockSize () const |
Size of a Skinny-128 block in bytes. More... | |
void | encryptBlock (uint8_t *output, const uint8_t *input) |
Encrypts a single block using this cipher. More... | |
void | decryptBlock (uint8_t *output, const uint8_t *input) |
Decrypts a single block using this cipher. More... | |
Public Member Functions inherited from BlockCipher | |
BlockCipher () | |
Constructs a block cipher. | |
virtual | ~BlockCipher () |
Destroys this block cipher object. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Skinny128_Tweaked | |
Skinny128_Tweaked (uint32_t *schedule, uint8_t rounds) | |
Constructs a tweakable Skinny-128 block cipher object. More... | |
void | resetTweak () |
Resets the tweak to all-zeroes. More... | |
Protected Member Functions inherited from Skinny128 | |
Skinny128 (uint32_t *schedule, uint8_t rounds) | |
Constructs a Skinny-128 block cipher object. More... | |
void | setTK1 (const uint8_t *key, bool tweaked=false) |
Clears the key schedule and sets it to the schedule for TK1. More... | |
void | xorTK1 (const uint8_t *key) |
XOR's the key schedule with the schedule for TK1. More... | |
void | setTK2 (const uint8_t *key) |
XOR's the key schedule with the schedule for TK2. More... | |
void | setTK3 (const uint8_t *key) |
XOR's the key schedule with the schedule for TK3. More... | |
SKINNY block cipher with a 128-bit block, a 128-bit key, and a 128-bit tweak.
Definition at line 99 of file Skinny128.h.
|
virtual |
Size of a Skinny128_256_Tweaked key in bytes.
Implements BlockCipher.
Definition at line 1382 of file Skinny128.cpp.
|
virtual |
Sets the key to use for future encryption and decryption operations.
key | The key to use. |
len | The length of the key. |
Use clear() or the destructor to remove the key and any other sensitive data from the object once encryption or decryption is complete.
Implements BlockCipher.
Definition at line 1387 of file Skinny128.cpp.