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

Go to the source code of this file.

Classes

struct  bf_key_st
 

Macros

#define BF_ENCRYPT   1
 
#define BF_DECRYPT   0
 
#define BF_LONG   unsigned int
 
#define BF_ROUNDS   16
 
#define BF_BLOCK   8
 

Typedefs

typedef struct bf_key_st BF_KEY
 

Functions

void BF_set_key (BF_KEY *key, int len, const unsigned char *data)
 
void BF_encrypt (BF_LONG *data, const BF_KEY *key)
 
void BF_decrypt (BF_LONG *data, const BF_KEY *key)
 
void BF_ecb_encrypt (const unsigned char *in, unsigned char *out, const BF_KEY *key, int enc)
 
void BF_cbc_encrypt (const unsigned char *in, unsigned char *out, long length, const BF_KEY *schedule, unsigned char *ivec, int enc)
 
void BF_cfb64_encrypt (const unsigned char *in, unsigned char *out, long length, const BF_KEY *schedule, unsigned char *ivec, int *num, int enc)
 
void BF_ofb64_encrypt (const unsigned char *in, unsigned char *out, long length, const BF_KEY *schedule, unsigned char *ivec, int *num)
 
const char * BF_options (void)
 

Macro Definition Documentation

#define BF_BLOCK   8

Definition at line 99 of file blowfish.h.

#define BF_DECRYPT   0

Definition at line 73 of file blowfish.h.

#define BF_ENCRYPT   1

Definition at line 72 of file blowfish.h.

#define BF_LONG   unsigned int

Definition at line 95 of file blowfish.h.

#define BF_ROUNDS   16

Definition at line 98 of file blowfish.h.

Typedef Documentation

typedef struct bf_key_st BF_KEY

Function Documentation

void BF_cbc_encrypt ( const unsigned char *  in,
unsigned char *  out,
long  length,
const BF_KEY schedule,
unsigned char *  ivec,
int  enc 
)

Definition at line 62 of file bf_cbc.c.

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

Definition at line 67 of file bf_cfb64.c.

void BF_decrypt ( BF_LONG data,
const BF_KEY key 
)

Definition at line 149 of file bf_enc.c.

void BF_ecb_encrypt ( const unsigned char *  in,
unsigned char *  out,
const BF_KEY key,
int  enc 
)

Definition at line 81 of file bf_ecb.c.

void BF_encrypt ( BF_LONG data,
const BF_KEY key 
)

Definition at line 72 of file bf_enc.c.

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

Definition at line 66 of file bf_ofb64.c.

const char* BF_options ( void  )

Definition at line 70 of file bf_ecb.c.

void BF_set_key ( BF_KEY key,
int  len,
const unsigned char *  data 
)

Definition at line 66 of file bf_skey.c.