#include <EncryptionAlgorithm.h>
Public Types | |
enum | IRep { NONE = 0, TWOFISH = 1, RIJNDAEL128 = 2, RIJNDAEL192 = 3, RIJNDAEL256 = 4, SAFERPLUS = 5, RC2 = 6, XTEA = 7, SERPENT = 8, SAFERSK64 = 9, SAFERSK128 = 10, CAST256 = 11, LOKI97 = 12, GOST = 13, THREEWAY = 14, CAST128 = 15, BLOWFISH = 16, DES = 17, TRIPLEDES = 18, ENIGMA = 19, ARCFOUR = 20, PANAMA = 21, WAKE = 22 } |
integer representation of encryption algorithm More... | |
Public Member Functions | |
EncryptionAlgorithm (void) | |
EncryptionAlgorithm (IRep irep) | |
EncryptionAlgorithm (std::string srep) | |
void | setValue (IRep irep) |
std::string | getStringRep (void) const |
IRep | getIntegerRep (void) const |
bool | operator== (const EncryptionAlgorithm &algo) 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 = 5 |
number of bits needed to code the algorithm | |
Private Types | |
typedef EncryptionAlgorithm::struct_Translation | Translation |
Private Attributes | |
IRep | Value |
Static Private Attributes | |
const unsigned int | NumValues = 23 |
const Translation | Translations [] |
|
|
|
|
|
|
|
|
|
construct a new EncryptionAlgorithm object from a std::string representation
|
|
|
|
|
|
|
|
check if srep is a valid std::string representation (w.r.t the Translations array)
|
|
|
|
|
|
translate a valid std::string representation into the corresponding integer representation |
|
translate an integer representation into the corresponding std::string representation |
|
|
|
|
|
Initial value:
|
|
|