#include <EncryptionMode.h>
Public Types | |
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 | |
bool | isValidStringRep (std::string srep) |
bool | isValidIntegerRep (unsigned int irep) |
std::string | translate (IRep irep) |
IRep | translate (std::string srep) |
Static Public Attributes | |
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 | |
const unsigned int | NumValues = 8 |
const Translation | Translations [] |
|
|
|
|
|
construct a new EncryptionMode object setting Value to ECB |
|
|
|
construct a new EncryptionMode object from a std::string representation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: |
|
|