Base Framework
|
Advanced Encryption Standard (AES) implementation. More...
#include <base/security/AdvancedEncryptionStandard.h>
Inherits Object.
Classes | |
class | Cipher128Traits |
class | Cipher192Traits |
class | Cipher256Traits |
Public Types | |
enum | Cipher { CIPHER_128, CIPHER_192, CIPHER_256 } |
Public Member Functions | |
AdvancedEncryptionStandard (const uint8 *key, Cipher cipher, bool inverse=false) noexcept | |
unsigned int | push (uint8 *dest, const uint8 *src, unsigned int size) noexcept |
unsigned int | pushEnd (uint8 *dest, unsigned int size) noexcept |
Static Public Member Functions | |
static unsigned int | getKeyLenght (Cipher cipher) noexcept |
Advanced Encryption Standard (AES) implementation.
Implementation of the Advanced Encryption Standard (AES) as specified by FIPS-197.
|
noexcept |
Initializes encryption object.
key | The key. |
cipher | The cipher. |
inverse | Specifies if the inverse cipher should be used. The default is false. |
|
inlinestaticnoexcept |
Returns the key length in bytes for the specified cipher.
|
noexcept |
Encrypts the specified data. May be called multiple times.
dest | The cipher text. |
src | The buffer holding the data to be encrypted (plain text). |
size | The number of octets in the buffer. |
|
noexcept |
This function should be invoked when the entire message has been pushed. Do NOT use push() after invoking this function.
dest | The cipher text. |
size | The number of octets in the buffer. |