Cuberite
A lightweight, fast and extensible game server for Minecraft
|
Decrypts data using the AES / CFB 128 algorithm. More...
#include <AesCfb128Decryptor.h>
Public Member Functions | |
cAesCfb128Decryptor (void) | |
void | Init (const Byte a_Key[16], const Byte a_IV[16]) |
Initializes the decryptor with the specified Key / IV. More... | |
bool | IsValid (void) const |
Returns true if the object has been initialized with the Key / IV. More... | |
void | ProcessData (std::byte *a_EncryptedIn, size_t a_Length) |
Decrypts a_Length bytes of the encrypted data in-place; produces a_Length output bytes. More... | |
~cAesCfb128Decryptor () | |
Protected Attributes | |
mbedtls_aes_context | m_Aes |
bool | m_IsValid |
Indicates whether the object has been initialized with the Key / IV. More... | |
Byte | m_IV [16] |
The InitialVector, used by the CFB mode decryption. More... | |
Decrypts data using the AES / CFB 128 algorithm.
Definition at line 23 of file AesCfb128Decryptor.h.
cAesCfb128Decryptor::cAesCfb128Decryptor | ( | void | ) |
Definition at line 13 of file AesCfb128Decryptor.cpp.
cAesCfb128Decryptor::~cAesCfb128Decryptor | ( | ) |
Definition at line 30 of file AesCfb128Decryptor.cpp.
Initializes the decryptor with the specified Key / IV.
Definition at line 44 of file AesCfb128Decryptor.cpp.
|
inline |
Returns true if the object has been initialized with the Key / IV.
Definition at line 37 of file AesCfb128Decryptor.h.
void cAesCfb128Decryptor::ProcessData | ( | std::byte * | a_EncryptedIn, |
size_t | a_Length | ||
) |
Decrypts a_Length bytes of the encrypted data in-place; produces a_Length output bytes.
Definition at line 76 of file AesCfb128Decryptor.cpp.
|
protected |
Definition at line 45 of file AesCfb128Decryptor.h.
|
protected |
Indicates whether the object has been initialized with the Key / IV.
Definition at line 52 of file AesCfb128Decryptor.h.
|
protected |
The InitialVector, used by the CFB mode decryption.
Definition at line 49 of file AesCfb128Decryptor.h.