Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Krc2 Class Reference

#include </home/clem/local/src/opie/noncore/apps/zsafe/krc2.h>

List of all members.

Public Member Functions

 Krc2 ()
 ~Krc2 ()
void rc2_expandkey (char key[], int length, int ekl)
void rc2_encrypt (unsigned short *input)
void rc2_decrypt (unsigned short *input)

Private Member Functions

void _rc2_mix (unsigned short *input)
void _rc2_mash (unsigned short *input)
void _rc2_rmix (unsigned short *input)
void _rc2_rmash (unsigned short *input)
int _rc2_pow (int base, int exponent)
unsigned short _rc2_ror (unsigned short input, int places)
unsigned short _rc2_rol (unsigned short input, int places)


Constructor & Destructor Documentation

Krc2::Krc2  ) 
 

Definition at line 44 of file krc2.cpp.

Krc2::~Krc2  ) 
 

Definition at line 48 of file krc2.cpp.


Member Function Documentation

void Krc2::_rc2_mash unsigned short *  input  )  [private]
 

void Krc2::_rc2_mix unsigned short *  input  )  [private]
 

int Krc2::_rc2_pow int  base,
int  exponent
[private]
 

Definition at line 163 of file krc2.cpp.

Referenced by rc2_expandkey().

void Krc2::_rc2_rmash unsigned short *  input  )  [private]
 

void Krc2::_rc2_rmix unsigned short *  input  )  [private]
 

unsigned short Krc2::_rc2_rol unsigned short  input,
int  places
[private]
 

Definition at line 177 of file krc2.cpp.

unsigned short Krc2::_rc2_ror unsigned short  input,
int  places
[private]
 

Definition at line 191 of file krc2.cpp.

void Krc2::rc2_decrypt unsigned short *  input  ) 
 

Referenced by ZSafe::loadInit().

void Krc2::rc2_encrypt unsigned short *  input  ) 
 

Referenced by ZSafe::saveFinalize().

void Krc2::rc2_expandkey char  key[],
int  length,
int  ekl
 

Definition at line 52 of file krc2.cpp.

References _rc2_expkey, _rc2_pitable, _rc2_pow(), and i.

Referenced by ZSafe::loadInit(), and ZSafe::saveInit().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:37:58 2005 for OPIE by  doxygen 1.4.2