OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
rc5.h File Reference
#include <openssl/opensslconf.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 RC5_32_ecb_encrypt (const unsigned char *in, unsigned char *out, RC5_32_KEY *key, int enc)
 
void RC5_32_encrypt (unsigned long *data, RC5_32_KEY *key)
 
void RC5_32_decrypt (unsigned long *data, RC5_32_KEY *key)
 
void RC5_32_cbc_encrypt (const unsigned char *in, unsigned char *out, long length, RC5_32_KEY *ks, unsigned char *iv, int enc)
 
void 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 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 87 of file rc5.h.

#define RC5_16_ROUNDS   16

Definition at line 88 of file rc5.h.

#define RC5_32_BLOCK   8

Definition at line 78 of file rc5.h.

#define RC5_32_INT   unsigned long

Definition at line 76 of file rc5.h.

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

Definition at line 79 of file rc5.h.

#define RC5_8_ROUNDS   8

Definition at line 86 of file rc5.h.

#define RC5_DECRYPT   0

Definition at line 73 of file rc5.h.

#define RC5_ENCRYPT   1

Definition at line 72 of file rc5.h.

Typedef Documentation

typedef struct rc5_key_st RC5_32_KEY

Function Documentation

void 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 63 of file rc5_enc.c.

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

Definition at line 67 of file rc5cfb64.c.

void RC5_32_decrypt ( unsigned long *  data,
RC5_32_KEY key 
)

Definition at line 177 of file rc5_enc.c.

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

Definition at line 65 of file rc5_ecb.c.

void RC5_32_encrypt ( unsigned long *  data,
RC5_32_KEY key 
)

Definition at line 138 of file rc5_enc.c.

void RC5_32_ofb64_encrypt ( const unsigned char *  in,
unsigned char *  out,
long  length,
RC5_32_KEY schedule,
unsigned char *  ivec,
int *  num 
)

Definition at line 66 of file rc5ofb64.c.

void RC5_32_set_key ( RC5_32_KEY key,
int  len,
const unsigned char *  data,
int  rounds 
)

Definition at line 62 of file rc5_skey.c.