VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Crypto/Blowfish.h
blob: d9cf4bc5c78c3c17f0e2a3c415aa0cb2f8b8f5f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* Deprecated/legacy */


#ifndef TC_HEADER_Crypto_Blowfish
#define TC_HEADER_Crypto_Blowfish

#ifdef  __cplusplus
extern "C" {
#endif

typedef struct BF_KEY_STRUCT
{
	unsigned __int32 pbox[18];
	unsigned __int32 pbox_dec[18];
	unsigned __int32 sbox[4*256];
} BF_KEY;

void BlowfishSetKey (BF_KEY *key, int keylength, unsigned char *key_string);
void BlowfishEncryptLE (unsigned char *in, unsigned char *out, BF_KEY *ks, int encrypt);

#ifdef  __cplusplus
}
#endif

#endif // TC_HEADER_Crypto_Blowfish