Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Attributes | List of all members
cAesCfb128Decryptor Class Reference

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...
 

Detailed Description

Decrypts data using the AES / CFB 128 algorithm.

Definition at line 23 of file AesCfb128Decryptor.h.

Constructor & Destructor Documentation

◆ cAesCfb128Decryptor()

cAesCfb128Decryptor::cAesCfb128Decryptor ( void  )

Definition at line 13 of file AesCfb128Decryptor.cpp.

◆ ~cAesCfb128Decryptor()

cAesCfb128Decryptor::~cAesCfb128Decryptor ( )

Definition at line 30 of file AesCfb128Decryptor.cpp.

Member Function Documentation

◆ Init()

void cAesCfb128Decryptor::Init ( const Byte  a_Key[16],
const Byte  a_IV[16] 
)

Initializes the decryptor with the specified Key / IV.

Definition at line 44 of file AesCfb128Decryptor.cpp.

◆ IsValid()

bool cAesCfb128Decryptor::IsValid ( void  ) const
inline

Returns true if the object has been initialized with the Key / IV.

Definition at line 37 of file AesCfb128Decryptor.h.

◆ ProcessData()

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.

Member Data Documentation

◆ m_Aes

mbedtls_aes_context cAesCfb128Decryptor::m_Aes
protected

Definition at line 45 of file AesCfb128Decryptor.h.

◆ m_IsValid

bool cAesCfb128Decryptor::m_IsValid
protected

Indicates whether the object has been initialized with the Key / IV.

Definition at line 52 of file AesCfb128Decryptor.h.

◆ m_IV

Byte cAesCfb128Decryptor::m_IV[16]
protected

The InitialVector, used by the CFB mode decryption.

Definition at line 49 of file AesCfb128Decryptor.h.


The documentation for this class was generated from the following files: