16 mbedtls_aes_init(&
m_Aes);
26 mbedtls_aes_free(&
m_Aes);
37 memcpy(
m_IV, a_IV, 16);
38 mbedtls_aes_setkey_enc(&
m_Aes, a_Key, 128);
49 mbedtls_aes_crypt_cfb8(&
m_Aes, MBEDTLS_AES_DECRYPT, a_Length,
m_IV, a_EncryptedIn, a_DecryptedOut);
cAesCfb128Decryptor(void)
void Init(const Byte a_Key[16], const Byte a_IV[16])
Initializes the decryptor with the specified Key / IV.
Byte m_IV[16]
The InitialVector, used by the CFB mode decryption.
bool m_IsValid
Indicates whether the object has been initialized with the Key / IV.
mbedtls_aes_context m_Aes
void ProcessData(Byte *a_DecryptedOut, const Byte *a_EncryptedIn, size_t a_Length)
Decrypts a_Length bytes of the encrypted data; produces a_Length output bytes.
bool IsValid(void) const
Returns true if the object has been initialized with the Key / IV.