Rc4.h: Difference between revisions

From
Jump to navigation Jump to search
No edit summary
 
No edit summary
 
Line 1: Line 1:
/* rc4.h */
/* rc4.h */
typedef struct rc4_key
typedef struct rc4_key
{
{
unsigned char state[256];
unsigned char state[256];
unsigned char x;
unsigned char x;
unsigned char y;
unsigned char y;
} rc4_key;
} rc4_key;
void prepare_key(unsigned char *key_data_ptr,int key_data_len,
void prepare_key(unsigned char *key_data_ptr,int key_data_len,
rc4_key *key);
rc4_key *key);
void rc4(unsigned char *buffer_ptr,int buffer_len,rc4_key * key);
void rc4(unsigned char *buffer_ptr,int buffer_len,rc4_key * key);

Latest revision as of 10:30, 31 October 2006

/* rc4.h */
typedef struct rc4_key
{      
    unsigned char state[256];       
    unsigned char x;        
    unsigned char y;
} rc4_key;
void prepare_key(unsigned char *key_data_ptr,int key_data_len,
rc4_key *key);
void rc4(unsigned char *buffer_ptr,int buffer_len,rc4_key * key);