#include <EncryptionMode.h>
Public Types | |
ECB = 0 | |
CBC = 1 | |
OFB = 2 | |
CFB = 3 | |
NOFB = 4 | |
NCFB = 5 | |
CTR = 6 | |
STREAM = 7 | |
enum | IRep { ECB = 0, CBC = 1, OFB = 2, CFB = 3, NOFB = 4, NCFB = 5, CTR = 6, STREAM = 7 } |
integer representation of encryption mode More... | |
Public Member Functions | |
EncryptionMode (void) | |
EncryptionMode (IRep irep) | |
EncryptionMode (std::string srep) | |
void | setValue (IRep irep) |
std::string | getStringRep (void) const |
IRep | getIntegerRep (void) const |
bool | operator== (const EncryptionMode &mode) const |
Static Public Member Functions | |
static bool | isValidStringRep (std::string srep) |
static bool | isValidIntegerRep (unsigned int irep) |
static std::string | translate (IRep irep) |
static IRep | translate (std::string srep) |
Static Public Attributes | |
static const unsigned int | IRep_size = 3 |
number of bits needed to code the mode | |
Private Types | |
typedef EncryptionMode::struct_Translation | Translation |
Private Attributes | |
IRep | Value |
Static Private Attributes | |
static const unsigned int | NumValues = 8 |
static const Translation | Translations [] |
Classes | |
struct | struct_Translation |
typedef struct EncryptionMode::struct_Translation EncryptionMode::Translation [private] |
enum EncryptionMode::IRep |
EncryptionMode::EncryptionMode | ( | void | ) |
construct a new EncryptionMode object setting Value to ECB
EncryptionMode::EncryptionMode | ( | IRep | irep | ) |
EncryptionMode::EncryptionMode | ( | std::string | srep | ) |
construct a new EncryptionMode object from a std::string representation
srep | a valid(!) std::string representation |
EncryptionMode::IRep EncryptionMode::getIntegerRep | ( | void | ) | const |
std::string EncryptionMode::getStringRep | ( | void | ) | const |
bool EncryptionMode::isValidIntegerRep | ( | unsigned int | irep | ) | [static] |
bool EncryptionMode::isValidStringRep | ( | std::string | srep | ) | [static] |
bool EncryptionMode::operator== | ( | const EncryptionMode & | mode | ) | const [inline] |
void EncryptionMode::setValue | ( | IRep | irep | ) |
EncryptionMode::IRep EncryptionMode::translate | ( | std::string | srep | ) | [static] |
std::string EncryptionMode::translate | ( | IRep | irep | ) | [static] |
const unsigned int EncryptionMode::IRep_size = 3 [static] |
const unsigned int EncryptionMode::NumValues = 8 [static, private] |
const EncryptionMode::Translation EncryptionMode::Translations [static, private] |
IRep EncryptionMode::Value [private] |