#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) |
typedef struct cast_key_st CAST_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_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 | |||
) |