#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(), relval_2017::k, and m_ctx.
cond::auth::Cipher::~Cipher | ( | ) |
std::string cond::auth::Cipher::b64decrypt | ( | const std::string & | input | ) |
Definition at line 117 of file Cipher.cc.
References base64_decode_alloc, input, runTheMatrix::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::auth::Cipher::b64encrypt | ( | const std::string & | input | ) |
Definition at line 105 of file Cipher.cc.
References base64_encode_alloc(), edm::false, GenerateHcalLaserBadRunList::out, runTheMatrix::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 assert(), Blowfish_Decrypt(), Blowfish_Encrypt(), i, j, dttmaxenums::L, 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 i, GenerateHcalLaserBadRunList::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 71 of file Cipher.cc.
References edm::false, and convertSQLitetoXML_cfg::output.
Referenced by cond::auth::DecodingKey::flush().
|
private |