#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 10 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 117 of file Cipher.cc.
References base64_decode_alloc, input, run_regression::ret, AlCaHLTBitMon_QueryRunRegistry::string, 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 105 of file Cipher.cc.
References base64_encode_alloc(), edm::false, dbtoconf::out, run_regression::ret, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::CredentialStore::addUser(), cond::CredentialStore::installAdmin(), cond::CredentialStore::setPermission(), cond::CredentialStore::updateConnection(), and cond::CredentialStore::updatePrincipal().
|
private |
Definition at line 20 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 79 of file Cipher.cc.
References i, dbtoconf::out, run_regression::ret, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::DecodingKey::init().
size_t cond::Cipher::encrypt | ( | const std::string & | input, |
unsigned char *& | output | ||
) |
Definition at line 71 of file Cipher.cc.
References edm::false, and convertSQLitetoXML_cfg::output.
Referenced by cond::DecodingKey::flush().
|
private |