#include <DataBlockEncryptor.h>
Public Member Functions | |
| DataBlockEncryptor () | |
| Constructor. | |
| ~DataBlockEncryptor () | |
| Destructor. | |
| bool | IsKeySet (void) const |
| void | SetKey (const unsigned char key[16]) |
| void | UnsetKey (void) |
| Unset the encryption key. | |
| void | Encrypt (unsigned char *input, int inputLength, unsigned char *output, int *outputLength) |
| bool | Decrypt (unsigned char *input, int inputLength, unsigned char *output, int *outputLength) |
Protected Attributes | |
| keyInstance | keyEncrypt |
| keyInstance | keyDecrypt |
| cipherInstance | cipherInst |
| bool | keySet |
|
||||||||||||||||||||
|
Decryption removes bytes, as few as 6. Output should be large enough to hold this. Output can be the same memory block as input
|
|
||||||||||||||||||||
|
Encryption adds up to 15 bytes. Output should be large enough to hold this. Output can be the same memory block as input
|
|
|
|
|
|
Set the encryption key
|
1.4.6-NO