#include <crypto_asdcp.h>
Inheritance diagram for AESDecrypt:
Public Member Functions | |
virtual bool | SetKey (size_t KeySize, const UInt8 *Key) |
Set an encryption key. | |
bool | SetIV (size_t IVSize, const UInt8 *IV, bool Force=false) |
Set a decryption Initialization Vector. | |
DataChunkPtr | GetIV (void) |
Get the Initialization Vector that will be used for the next decryption. | |
bool | CanDecryptInPlace (size_t BlockSize=0) |
Can this decryption system safely decrypt in place? | |
bool | DecryptInPlace (size_t Size, UInt8 *Data) |
Decrypt data bytes in place. | |
DataChunkPtr | Decrypt (size_t Size, const UInt8 *Data) |
Decrypt data and return in a new buffer. | |
Protected Attributes | |
AES_KEY | CurrentKey |
UInt8 | CurrentIV [16] |
virtual bool SetKey | ( | size_t | KeySize, | |
const UInt8 * | Key | |||
) | [inline, virtual] |
bool SetIV | ( | size_t | IVSize, | |
const UInt8 * | IV, | |||
bool | Force = false | |||
) | [inline, virtual] |
Set a decryption Initialization Vector.
Implements Decrypt_Base.
DataChunkPtr GetIV | ( | void | ) | [inline, virtual] |
Get the Initialization Vector that will be used for the next decryption.
If called immediately after SetIV() with Force=true or SetIV() for a crypto scheme that accepts each offered vector (rather than creating its own ones) the result will be the vector offered in that SetIV() call.
Implements Decrypt_Base.
bool CanDecryptInPlace | ( | size_t | BlockSize = 0 |
) | [inline, virtual] |
Can this decryption system safely decrypt in place?
If BlockSize is 0 this function will return true if decryption of all block sizes can be "in place". Otherwise the result will indicate whether the given blocksize can be decrypted "in place".
Implements Decrypt_Base.
bool DecryptInPlace | ( | size_t | Size, | |
UInt8 * | Data | |||
) | [inline, virtual] |
Decrypt data bytes in place.
Implements Decrypt_Base.
DataChunkPtr Decrypt | ( | size_t | Size, | |
const UInt8 * | Data | |||
) | [virtual] |
Decrypt data and return in a new buffer.
Implements Decrypt_Base.
AES_KEY CurrentKey [protected] |