SWILIB API (SG)    
Loading...
Searching...
No Matches
blowfish.h File Reference

Go to the source code of this file.

Data Structures

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 (unsigned int *data, const BF_KEY *key)
 
void BF_decrypt (unsigned int *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)
 

Data Structure Documentation

◆ bf_key_st

struct bf_key_st

Macro Definition Documentation

◆ BF_ENCRYPT

#define BF_ENCRYPT   1

Definition at line 70 of file blowfish.h.

◆ BF_DECRYPT

#define BF_DECRYPT   0

Definition at line 71 of file blowfish.h.

◆ BF_LONG

#define BF_LONG   unsigned int

Definition at line 93 of file blowfish.h.

◆ BF_ROUNDS

#define BF_ROUNDS   16

Definition at line 96 of file blowfish.h.

◆ BF_BLOCK

#define BF_BLOCK   8

Definition at line 97 of file blowfish.h.

Typedef Documentation

◆ BF_KEY

typedef struct bf_key_st BF_KEY

Function Documentation

◆ BF_set_key()

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

◆ BF_encrypt()

void BF_encrypt ( unsigned int * data,
const BF_KEY * key )

◆ BF_decrypt()

void BF_decrypt ( unsigned int * data,
const BF_KEY * key )

◆ BF_ecb_encrypt()

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

◆ BF_cbc_encrypt()

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

◆ BF_cfb64_encrypt()

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

◆ BF_ofb64_encrypt()

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

◆ BF_options()

const char * BF_options ( void )