cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Macros | Functions
rc4skey.c File Reference
#include "crypt/osconfig.h"
#include "crypt/rc4.h"
#include "crypt/rc4locl.h"

Go to the source code of this file.

Macros

#define SK_LOOP(n)
 

Functions

const char * RC4_options (void)
 
void RC4_set_key (RC4_KEY *key, int len, const unsigned char *data)
 

Macro Definition Documentation

#define SK_LOOP (   n)
Value:
{ \
tmp=d[(n)]; \
id2 = (data[id1] + tmp + id2) & 0xff; \
if (++id1 == len) id1=0; \
d[(n)]=d[id2]; \
d[id2]=tmp; }

Function Documentation

const char* RC4_options ( void  )

Definition at line 69 of file rc4skey.c.

void RC4_set_key ( RC4_KEY key,
int  len,
const unsigned char *  data 
)

Definition at line 92 of file rc4skey.c.