CernVM-FS
2.12.0
|
#include <encrypt.h>
Public Member Functions | |
virtual | ~CipherAes256Cbc () |
virtual std::string | name () const |
virtual Algorithms | algorithm () const |
virtual unsigned | key_size () const |
virtual unsigned | iv_size () const |
virtual unsigned | block_size () const |
Public Member Functions inherited from cipher::Cipher | |
virtual | ~Cipher () |
bool | Encrypt (const std::string &plaintext, const Key &key, std::string *ciphertext) |
Static Public Attributes | |
static const unsigned | kKeySize = 256/8 |
static const unsigned | kIvSize = 128/8 |
static const unsigned | kBlockSize = 128/8 |
Protected Member Functions | |
virtual std::string | DoEncrypt (const std::string &plaintext, const Key &key) |
virtual std::string | DoDecrypt (const std::string &ciphertext, const Key &key) |
Protected Member Functions inherited from cipher::Cipher | |
Cipher () | |
Private Member Functions | |
FRIEND_TEST (T_Encrypt, Aes_256_Cbc_Iv) | |
shash::Md5 | GenerateIv (const Key &key) |
Additional Inherited Members | |
Static Public Member Functions inherited from cipher::Cipher | |
static Cipher * | Create (const Algorithms a) |
static bool | Decrypt (const std::string &ciphertext, const Key &key, std::string *plaintext) |
Uses OpenSSL EVP_... format. The IV is created from the system time.
|
inlinevirtual |
|
inlinevirtual |
Implements cipher::Cipher.
|
inlinevirtual |
Implements cipher::Cipher.
|
protectedvirtual |
Implements cipher::Cipher.
Definition at line 216 of file encrypt.cc.
|
protectedvirtual |
Implements cipher::Cipher.
Definition at line 277 of file encrypt.cc.
|
private |
|
private |
The block size of AES-256-CBC happens to be the same of the MD5 digest (128 bits). Use the HMAC of a UUID to make it random and unpredictable.
Definition at line 331 of file encrypt.cc.
|
inlinevirtual |
Implements cipher::Cipher.
|
inlinevirtual |
Implements cipher::Cipher.
|
inlinevirtual |
Implements cipher::Cipher.
|
static |
|
static |
|
static |