webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Macros | Typedefs | Functions
blowfish.h File Reference
#include <openssl/base.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_ROUNDS   16
 
#define BF_BLOCK   8
 

Typedefs

typedef struct bf_key_st BF_KEY
 

Functions

OPENSSL_EXPORT void BF_set_key (BF_KEY *key, size_t len, const uint8_t *data)
 
OPENSSL_EXPORT void BF_encrypt (uint32_t *data, const BF_KEY *key)
 
OPENSSL_EXPORT void BF_decrypt (uint32_t *data, const BF_KEY *key)
 
OPENSSL_EXPORT void BF_ecb_encrypt (const uint8_t *in, uint8_t *out, const BF_KEY *key, int enc)
 
OPENSSL_EXPORT void BF_cbc_encrypt (const uint8_t *in, uint8_t *out, long length, const BF_KEY *schedule, uint8_t *ivec, int enc)
 

Macro Definition Documentation

◆ BF_BLOCK

#define BF_BLOCK   8

◆ BF_DECRYPT

#define BF_DECRYPT   0

◆ BF_ENCRYPT

#define BF_ENCRYPT   1

◆ BF_ROUNDS

#define BF_ROUNDS   16

Typedef Documentation

◆ BF_KEY

Function Documentation

◆ BF_cbc_encrypt()

OPENSSL_EXPORT void BF_cbc_encrypt ( const uint8_t in,
uint8_t out,
long  length,
const BF_KEY schedule,
uint8_t ivec,
int  enc 
)

◆ BF_decrypt()

OPENSSL_EXPORT void BF_decrypt ( uint32_t data,
const BF_KEY key 
)

◆ BF_ecb_encrypt()

OPENSSL_EXPORT void BF_ecb_encrypt ( const uint8_t in,
uint8_t out,
const BF_KEY key,
int  enc 
)

◆ BF_encrypt()

OPENSSL_EXPORT void BF_encrypt ( uint32_t data,
const BF_KEY key 
)

◆ BF_set_key()

OPENSSL_EXPORT void BF_set_key ( BF_KEY key,
size_t  len,
const uint8_t data 
)