CondCore
CondDB
interface
Cipher.h
Go to the documentation of this file.
1
#ifndef CondCore_CondDB_Cipher_h
2
#define CondCore_CondDB_Cipher_h
3
4
#include <iostream>
5
#include <string>
6
7
struct
BLOWFISH_CTX
;
8
9
namespace
cond
{
10
11
namespace
auth
{
12
13
class
Cipher
{
14
public
:
15
explicit
Cipher
(
const
std::string
&
key
);
16
17
~Cipher
();
18
19
size_t
encrypt
(
const
std::string
&
input
,
unsigned
char
*&
output
);
20
21
std::string
decrypt
(
const
unsigned
char
*
input
,
size_t
inputSize);
22
23
std::string
b64encrypt
(
const
std::string
&
input
);
24
25
std::string
b64decrypt
(
const
std::string
&
input
);
26
27
private
:
28
size_t
bf_process_alloc
(
const
unsigned
char
*
input
,
29
size_t
input_size,
30
unsigned
char
*&
output
,
31
bool
decrypt
=
false
);
32
33
private
:
34
BLOWFISH_CTX
*
m_ctx
;
35
};
36
}
// namespace auth
37
38
}
// namespace cond
39
40
#endif // CondCore_CondDB_Cipher_h
input
static const std::string input
Definition:
EdmProvDump.cc:48
convertSQLitetoXML_cfg.output
output
Definition:
convertSQLitetoXML_cfg.py:72
cond::auth::Cipher::decrypt
std::string decrypt(const unsigned char *input, size_t inputSize)
Definition:
Cipher.cc:79
cond::auth::Cipher::bf_process_alloc
size_t bf_process_alloc(const unsigned char *input, size_t input_size, unsigned char *&output, bool decrypt=false)
Definition:
Cipher.cc:17
BLOWFISH_CTX
Definition:
blowfish.h:39
cond::auth::Cipher::~Cipher
~Cipher()
Definition:
Cipher.cc:15
cond::auth::Cipher::b64encrypt
std::string b64encrypt(const std::string &input)
Definition:
Cipher.cc:109
cond::auth::Cipher::Cipher
Cipher(const std::string &key)
Definition:
Cipher.cc:10
cond
Definition:
plugin.cc:23
cond::auth::Cipher::b64decrypt
std::string b64decrypt(const std::string &input)
Definition:
Cipher.cc:122
cond::auth::Cipher::m_ctx
BLOWFISH_CTX * m_ctx
Definition:
Cipher.h:34
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
beamvalidation.auth
auth
Definition:
beamvalidation.py:383
cond::auth::Cipher
Definition:
Cipher.h:13
cond::auth::Cipher::encrypt
size_t encrypt(const std::string &input, unsigned char *&output)
Definition:
Cipher.cc:70
crabWrapper.key
key
Definition:
crabWrapper.py:19
Generated for CMSSW Reference Manual by
1.8.16