#include <Cipher.h>
Public Member Functions | |
std::string | b64decrypt (const std::string &input) |
std::string | b64encrypt (const std::string &input) |
Cipher (const std::string &key) | |
std::string | decrypt (const unsigned char *input, size_t inputSize) |
size_t | encrypt (const std::string &input, unsigned char *&output) |
~Cipher () | |
Private Member Functions | |
size_t | bf_process_alloc (const unsigned char *input, size_t input_size, unsigned char *&output, bool decrypt=false) |
Private Attributes | |
BLOWFISH_CTX * | m_ctx |
|
explicit |
Definition at line 9 of file Cipher.cc.
References Blowfish_Init(), gen::k, and m_ctx.
cond::Cipher::~Cipher | ( | ) |
std::string cond::Cipher::b64decrypt | ( | const std::string & | input | ) |
Definition at line 91 of file Cipher.cc.
References base64_decode_alloc, LaserDQM_cfg::input, run_regression::ret, and cond::throwException().
Referenced by cond::CredentialStore::exportAll(), cond::CredentialStore::importForPrincipal(), cond::CredentialStore::listConnections(), cond::CredentialStore::selectForUser(), cond::CredentialStore::setPermission(), cond::CredentialStore::startSession(), cond::CredentialStore::updateConnection(), and cond::CredentialStore::updatePrincipal().
std::string cond::Cipher::b64encrypt | ( | const std::string & | input | ) |
Definition at line 80 of file Cipher.cc.
References base64_encode_alloc(), funct::false, dbtoconf::out, and run_regression::ret.
Referenced by cond::CredentialStore::addUser(), cond::CredentialStore::installAdmin(), cond::CredentialStore::setPermission(), cond::CredentialStore::updateConnection(), and cond::CredentialStore::updatePrincipal().
|
private |
Definition at line 19 of file Cipher.cc.
References Blowfish_Decrypt(), Blowfish_Encrypt(), i, j, dttmaxenums::L, and dttmaxenums::R.
std::string cond::Cipher::decrypt | ( | const unsigned char * | input, |
size_t | inputSize | ||
) |
Definition at line 66 of file Cipher.cc.
References dbtoconf::out, and run_regression::ret.
Referenced by cond::DecodingKey::init().
size_t cond::Cipher::encrypt | ( | const std::string & | input, |
unsigned char *& | output | ||
) |
Definition at line 62 of file Cipher.cc.
References funct::false, and convertSQLitetoXML_cfg::output.
Referenced by cond::DecodingKey::flush().
|
private |