sword::sapphire Class Reference

List of all members.

Public Member Functions

 sapphire (unsigned char *key=0, unsigned char keysize=0)
void initialize (unsigned char *key, unsigned char keysize)
void hash_init (void)
unsigned char encrypt (unsigned char b=0)
unsigned char decrypt (unsigned char b)
void hash_final (unsigned char *hash, unsigned char hashlength=20)
void burn (void)

Private Member Functions

unsigned char keyrand (int limit, unsigned char *user_key, unsigned char keysize, unsigned char *rsum, unsigned *keypos)

Private Attributes

unsigned char cards [256]
unsigned char rotor
unsigned char ratchet
unsigned char avalanche
unsigned char last_plain
unsigned char last_cipher

Detailed Description

Definition at line 26 of file sapphire.h.


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