PandA-2024.02
Macros | Functions | Variables
blowfish.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BF_ENCRYPT   1
 
#define BF_LONG   unsigned long
 
#define BF_ROUNDS   16
 

Functions

void BF_set_key (int len, unsigned char *data)
 
void BF_encrypt (BF_LONG *data, int encrypt)
 
void BF_cfb64_encrypt (unsigned char *in, unsigned char *out, long length, unsigned char *ivec, int *num, int encrypt)
 

Variables

BF_LONG key_P [BF_ROUNDS+2]
 
BF_LONG key_S [4 *256]
 

Macro Definition Documentation

◆ BF_ENCRYPT

#define BF_ENCRYPT   1

Definition at line 80 of file blowfish.h.

◆ BF_LONG

#define BF_LONG   unsigned long

Definition at line 86 of file blowfish.h.

◆ BF_ROUNDS

#define BF_ROUNDS   16

Definition at line 88 of file blowfish.h.

Function Documentation

◆ BF_cfb64_encrypt()

void BF_cfb64_encrypt ( unsigned char *  in,
unsigned char *  out,
long  length,
unsigned char *  ivec,
int *  num,
int  encrypt 
)

Definition at line 82 of file bf_cfb64.c.

References BF_ENCRYPT, BF_encrypt(), BF_LONG, encrypt(), l2n, and n2l.

Referenced by blowfish_main().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BF_encrypt()

void BF_encrypt ( BF_LONG data,
int  encrypt 
)

Definition at line 82 of file bf_enc.c.

References BF_ENC, BF_LONG, BF_ROUNDS, encrypt(), key_P, and key_S.

Referenced by __attribute__(), BF_cfb64_encrypt(), and BF_set_key().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ BF_set_key()

void BF_set_key ( int  len,
unsigned char *  data 
)

Definition at line 95 of file bf_skey.c.

References BF_ENCRYPT, BF_encrypt(), bf_init_P, bf_init_S, BF_LONG, BF_ROUNDS, key_P, key_S, L, and local_memcpy().

Referenced by blowfish_main().

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ key_P

BF_LONG key_P[BF_ROUNDS+2]

Definition at line 89 of file blowfish.h.

◆ key_S

BF_LONG key_S[4 *256]

Definition at line 90 of file blowfish.h.


Generated on Mon Feb 12 2024 13:03:07 for PandA-2024.02 by doxygen 1.8.13