#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(), dqmdumpme::k, crabWrapper::key, and m_ctx.
std::string cond::auth::Cipher::b64decrypt | ( | const std::string & | input | ) |
Definition at line 122 of file Cipher.cc.
References base64_decode_alloc, input, runTheMatrix::ret, AlCaHLTBitMon_QueryRunRegistry::string, and cond::throwException().
Referenced by cond::CredentialStore::exportAll(), cond::CredentialStore::getUserCredentials(), cond::CredentialStore::importForPrincipal(), cond::CredentialStore::listConnections(), cond::CredentialStore::resetAdmin(), cond::CredentialStore::selectForUser(), cond::CredentialStore::setPermission(), cond::CredentialStore::startSession(), cond::updateConnectionData(), cond::CredentialStore::updatePrincipal(), and cond::updatePrincipalData().
std::string cond::auth::Cipher::b64encrypt | ( | const std::string & | input | ) |
Definition at line 109 of file Cipher.cc.
References base64_encode_alloc(), input, MillePedeFileConverter_cfg::out, runTheMatrix::ret, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::setPermissionData(), cond::updateConnectionData(), and cond::updatePrincipalData().
|
private |
Definition at line 17 of file Cipher.cc.
References cms::cuda::assert(), Blowfish_Decrypt(), Blowfish_Encrypt(), mps_fire::i, input, dqmiolumiharvest::j, dttmaxenums::L, EgHLTOffHistBins_cfi::nr, convertSQLitetoXML_cfg::output, and dttmaxenums::R.
std::string cond::auth::Cipher::decrypt | ( | const unsigned char * | input, |
size_t | inputSize | ||
) |
Definition at line 79 of file Cipher.cc.
References mps_fire::i, input, MillePedeFileConverter_cfg::out, runTheMatrix::ret, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by cond::auth::DecodingKey::init().
size_t cond::auth::Cipher::encrypt | ( | const std::string & | input, |
unsigned char *& | output | ||
) |
Definition at line 70 of file Cipher.cc.
References input, and convertSQLitetoXML_cfg::output.
Referenced by cond::auth::DecodingKey::flush().
|
private |