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

Go to the source code of this file.

Classes

struct  rc5_key_st
 

Macros

#define RC5_ENCRYPT   1
 
#define RC5_DECRYPT   0
 
#define RC5_32_INT   unsigned long
 
#define RC5_32_BLOCK   8
 
#define RC5_32_KEY_LENGTH   16 /* This is a default, max is 255 */
 
#define RC5_8_ROUNDS   8
 
#define RC5_12_ROUNDS   12
 
#define RC5_16_ROUNDS   16
 

Typedefs

typedef struct rc5_key_st RC5_32_KEY
 

Functions

void RC5_32_set_key (RC5_32_KEY *key, int len, const unsigned char *data, int rounds)
 
void ASM_EXPORT RC5_32_ecb_encrypt (const unsigned char *in, unsigned char *out, RC5_32_KEY *key, int enc)
 
void ASM_EXPORT RC5_32_encrypt (unsigned long *data, RC5_32_KEY *key)
 
void ASM_EXPORT RC5_32_decrypt (unsigned long *data, RC5_32_KEY *key)
 
void ASM_EXPORT RC5_32_cbc_encrypt (const unsigned char *in, unsigned char *out, long length, RC5_32_KEY *ks, unsigned char *iv, int enc)
 
void ASM_EXPORT RC5_32_cfb64_encrypt (const unsigned char *in, unsigned char *out, long length, RC5_32_KEY *schedule, unsigned char *ivec, int *num, int enc)
 
void ASM_EXPORT RC5_32_ofb64_encrypt (const unsigned char *in, unsigned char *out, long length, RC5_32_KEY *schedule, unsigned char *ivec, int *num)
 

Macro Definition Documentation

#define RC5_12_ROUNDS   12

Definition at line 93 of file rc5.h.

#define RC5_16_ROUNDS   16

Definition at line 94 of file rc5.h.

#define RC5_32_BLOCK   8

Definition at line 84 of file rc5.h.

#define RC5_32_INT   unsigned long

Definition at line 82 of file rc5.h.

#define RC5_32_KEY_LENGTH   16 /* This is a default, max is 255 */

Definition at line 85 of file rc5.h.

#define RC5_8_ROUNDS   8

Definition at line 92 of file rc5.h.

#define RC5_DECRYPT   0

Definition at line 79 of file rc5.h.

#define RC5_ENCRYPT   1

Definition at line 78 of file rc5.h.

Typedef Documentation

typedef struct rc5_key_st RC5_32_KEY

Function Documentation

void ASM_EXPORT RC5_32_cbc_encrypt ( const unsigned char *  in,
unsigned char *  out,
long  length,
RC5_32_KEY ks,
unsigned char *  iv,
int  enc 
)

Definition at line 71 of file rc5enc.c.

void ASM_EXPORT RC5_32_cfb64_encrypt ( const unsigned char *  in,
unsigned char *  out,
long  length,
RC5_32_KEY schedule,
unsigned char *  ivec,
int *  num,
int  enc 
)
void ASM_EXPORT RC5_32_decrypt ( unsigned long *  data,
RC5_32_KEY key 
)

Definition at line 185 of file rc5enc.c.

void ASM_EXPORT RC5_32_ecb_encrypt ( const unsigned char *  in,
unsigned char *  out,
RC5_32_KEY key,
int  enc 
)

Definition at line 69 of file rc5ecb.c.

void ASM_EXPORT RC5_32_encrypt ( unsigned long *  data,
RC5_32_KEY key 
)

Definition at line 146 of file rc5enc.c.

void ASM_EXPORT RC5_32_ofb64_encrypt ( const unsigned char *  in,
unsigned char *  out,
long  length,
RC5_32_KEY schedule,
unsigned char *  ivec,
int *  num 
)
void RC5_32_set_key ( RC5_32_KEY key,
int  len,
const unsigned char *  data,
int  rounds 
)

Definition at line 69 of file rc5skey.c.