OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
cast.h File Reference
#include <openssl/opensslconf.h>

Go to the source code of this file.

Classes

struct  cast_key_st
 

Macros

#define CAST_ENCRYPT   1
 
#define CAST_DECRYPT   0
 
#define CAST_LONG   unsigned int
 
#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, const CAST_KEY *key, int enc)
 
void CAST_encrypt (CAST_LONG *data, const CAST_KEY *key)
 
void CAST_decrypt (CAST_LONG *data, const CAST_KEY *key)
 
void CAST_cbc_encrypt (const unsigned char *in, unsigned char *out, long length, const CAST_KEY *ks, unsigned char *iv, int enc)
 
void CAST_cfb64_encrypt (const unsigned char *in, unsigned char *out, long length, const CAST_KEY *schedule, unsigned char *ivec, int *num, int enc)
 
void CAST_ofb64_encrypt (const unsigned char *in, unsigned char *out, long length, const CAST_KEY *schedule, unsigned char *ivec, int *num)
 

Macro Definition 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 int

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,
const CAST_KEY ks,
unsigned char *  iv,
int  enc 
)

Definition at line 128 of file c_enc.c.

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

Definition at line 67 of file c_cfb64.c.

void CAST_decrypt ( CAST_LONG data,
const CAST_KEY key 
)

Definition at line 95 of file c_enc.c.

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

Definition at line 65 of file c_ecb.c.

void CAST_encrypt ( CAST_LONG data,
const CAST_KEY key 
)

Definition at line 62 of file c_enc.c.

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

Definition at line 66 of file c_ofb64.c.

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

Definition at line 75 of file c_skey.c.