CernVM-FS
2.12.0
|
#include <encrypt.h>
Public Member Functions | |
bool | SaveToFile (const std::string &path) |
~Key () | |
unsigned | size () const |
const unsigned char * | data () const |
std::string | ToBase64 () const |
Static Public Member Functions | |
static Key * | CreateRandomly (const unsigned size) |
static Key * | CreateFromFile (const std::string &path) |
static Key * | CreateFromString (const std::string &key) |
Static Public Attributes | |
static const unsigned | kMaxSize = 64 |
Private Member Functions | |
Key () | |
Private Member Functions inherited from SingleCopy | |
SingleCopy () | |
Private Attributes | |
unsigned char * | data_ |
unsigned | size_ |
Encapsulates a small non-copyable piece of pinned memory. Is actively set to zero on destruction.
cipher::Key::~Key | ( | ) |
Definition at line 89 of file encrypt.cc.
|
static |
|
static |
Definition at line 77 of file encrypt.cc.
Referenced by receiver::CheckToken().
|
static |
Definition at line 32 of file encrypt.cc.
Referenced by receiver::GenerateSessionToken().
|
inline |
Definition at line 49 of file encrypt.h.
Referenced by cipher::CipherAes256Cbc::DoDecrypt(), cipher::CipherAes256Cbc::DoEncrypt(), cipher::CipherAes256Cbc::GenerateIv(), and cipher::MemoryKeyDatabase::StoreNew().
bool cipher::Key::SaveToFile | ( | const std::string & | path | ) |
|
inline |
Definition at line 48 of file encrypt.h.
Referenced by cipher::Cipher::Decrypt(), cipher::CipherAes256Cbc::DoDecrypt(), cipher::CipherAes256Cbc::DoEncrypt(), cipher::Cipher::Encrypt(), cipher::CipherAes256Cbc::GenerateIv(), and cipher::MemoryKeyDatabase::StoreNew().
string cipher::Key::ToBase64 | ( | ) | const |
Definition at line 109 of file encrypt.cc.
Referenced by receiver::GenerateSessionToken().
|
private |
Definition at line 54 of file encrypt.h.
Referenced by CreateFromFile(), and CreateRandomly().
|
private |
Definition at line 55 of file encrypt.h.
Referenced by CreateFromFile(), and CreateRandomly().