SWILIB API (ELKA)    
Loading...
Searching...
No Matches
cast.h File Reference

Go to the source code of this file.

Data Structures

struct  cast_key_st
 

Macros

#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, unsigned char *data)
 
void CAST_ecb_encrypt (const unsigned char *in, unsigned char *out, CAST_KEY *key, int enc)
 
void CAST_encrypt (unsigned long *data, CAST_KEY *key)
 
void CAST_decrypt (unsigned 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)
 

Data Structure Documentation

◆ cast_key_st

struct cast_key_st

Macro Definition Documentation

◆ CAST_ENCRYPT

#define CAST_ENCRYPT   1

Definition at line 70 of file cast.h.

◆ CAST_DECRYPT

#define CAST_DECRYPT   0

Definition at line 71 of file cast.h.

◆ CAST_LONG

#define CAST_LONG   unsigned long

Definition at line 73 of file cast.h.

◆ CAST_BLOCK

#define CAST_BLOCK   8

Definition at line 75 of file cast.h.

◆ CAST_KEY_LENGTH

#define CAST_KEY_LENGTH   16

Definition at line 76 of file cast.h.

Typedef Documentation

◆ CAST_KEY

typedef struct cast_key_st CAST_KEY

Function Documentation

◆ CAST_set_key()

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

◆ CAST_ecb_encrypt()

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

◆ CAST_encrypt()

void CAST_encrypt ( unsigned long * data,
CAST_KEY * key )

◆ CAST_decrypt()

void CAST_decrypt ( unsigned long * data,
CAST_KEY * key )

◆ CAST_cbc_encrypt()

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

◆ CAST_cfb64_encrypt()

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

◆ CAST_ofb64_encrypt()

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