|
Fawkes API
Fawkes Development Version
|
Decrypt buffers encrypted with BufferEncryptor. More...
#include <>>
Public Member Functions | |
| BufferDecryptor (const std::string &key) | |
| Constructor. More... | |
| ~BufferDecryptor () | |
| Destructor. More... | |
| size_t | decrypt (int cipher, const void *enc, size_t enc_size, void *plain, size_t plain_size) |
| Decrypt a buffer. More... | |
Decrypt buffers encrypted with BufferEncryptor.
| protobuf_comm::BufferDecryptor::BufferDecryptor | ( | const std::string & | key | ) |
Constructor.
| key | encryption key, can be any string, will be processed to meet AES128 requirements. |
Definition at line 171 of file crypto.cpp.
| protobuf_comm::BufferDecryptor::~BufferDecryptor | ( | ) |
Destructor.
Definition at line 176 of file crypto.cpp.
| size_t protobuf_comm::BufferDecryptor::decrypt | ( | int | cipher, |
| const void * | enc, | ||
| size_t | enc_size, | ||
| void * | plain, | ||
| size_t | plain_size | ||
| ) |
Decrypt a buffer.
| cipher | cipher ID |
| enc | encrypted buffer |
| enc_size | number of bytes in enc |
| plain | on return contains plain text data |
| plain_size | size in bytes of plain |
Definition at line 221 of file crypto.cpp.