libutil++  1.9.3
 All Classes Functions Variables
Public Member Functions | List of all members
sella::util::Crypt Class Reference

Public Member Functions

 Crypt (const char *algo=CRYPT_ALGO_DEF, const char *mode=CRYPT_MODE_DEF, int bits=CRYPT_KEYLEN_DEF, uint32_t seed=0)
 
 Crypt (const Crypt &other)
 
Cryptoperator= (const Crypt &other) throw ()
 
void clear (void)
 
void setSeed (uint32_t seed)
 
void setFlipSeed (uint32_t seed, uint32_t pattern=CRYPT_SERIAL_XOR)
 
uint32_t getSeed (void) const
 
bool setPassword (const char *password=CRYPT_PASSWORD_DEF, const char *salt=CRYPT_SALT_DEF)
 
const char * getPassword (void)
 
const unsigned char * getKey (void)
 
void setKeyLen (int bits)
 
int getKeyLen (void) const
 
bool encrypt (char *plainetext, int len)
 
bool decrypt (char *ciphertext, int len)
 
bool check (const char *ciphertext, int len)
 

Detailed Description

Definition at line 32 of file Crypt.h.


The documentation for this class was generated from the following files: