cast.h File Reference

#include <openssl/opensslconf.h>

Go to the source code of this file.

Data Structures

struct  cast_key_st

Defines

#define CAST_ENCRYPT   1
#define CAST_DECRYPT   0
#define CAST_LONG   unsigned long
#define CAST_BLOCK   8
#define CAST_KEY_LENGTH   16

Typedefs

typedef struct cast_key_st CAST_KEY

Functions

void CAST_set_key (CAST_KEY *key, int len, const unsigned char *data)
void CAST_ecb_encrypt (const unsigned char *in, unsigned char *out, CAST_KEY *key, int enc)
void CAST_encrypt (CAST_LONG *data, CAST_KEY *key)
void CAST_decrypt (CAST_LONG *data, CAST_KEY *key)
void CAST_cbc_encrypt (const unsigned char *in, unsigned char *out, long length, CAST_KEY *ks, unsigned char *iv, int enc)
void CAST_cfb64_encrypt (const unsigned char *in, unsigned char *out, long length, CAST_KEY *schedule, unsigned char *ivec, int *num, int enc)
void CAST_ofb64_encrypt (const unsigned char *in, unsigned char *out, long length, CAST_KEY *schedule, unsigned char *ivec, int *num)


Define Documentation

#define CAST_BLOCK   8

Definition at line 77 of file cast.h.

#define CAST_DECRYPT   0

Definition at line 73 of file cast.h.

#define CAST_ENCRYPT   1

Definition at line 72 of file cast.h.

#define CAST_KEY_LENGTH   16

Definition at line 78 of file cast.h.

#define CAST_LONG   unsigned long

Definition at line 75 of file cast.h.


Typedef Documentation

typedef struct cast_key_st CAST_KEY


Function Documentation

void CAST_cbc_encrypt ( const unsigned char *  in,
unsigned char *  out,
long  length,
CAST_KEY ks,
unsigned char *  iv,
int  enc 
)

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

void CAST_decrypt ( CAST_LONG *  data,
CAST_KEY key 
)

void CAST_ecb_encrypt ( const unsigned char *  in,
unsigned char *  out,
CAST_KEY key,
int  enc 
)

void CAST_encrypt ( CAST_LONG *  data,
CAST_KEY key 
)

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

void CAST_set_key ( CAST_KEY key,
int  len,
const unsigned char *  data 
)


Generated on Thu Aug 20 22:33:06 2009 for OpenXDAS by  doxygen 1.5.6