Merge pull request #110 from tesselode/fixes
[wdl/wdl-ol.git] / WDL / blowfish.h
blobac6550f63972c3bdf8b757f04a2a7de104f62cf2
1 /*
2 * Author : Paul Kocher
3 * E-mail : pck@netcom.com
4 * Date : 1997
5 * Description: C implementation of the Blowfish algorithm.
6 */
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
12 typedef struct {
13 unsigned int P[16 + 2];
14 unsigned int S[4*256];
15 } BLOWFISH_CTX;
17 void Blowfish_Init(BLOWFISH_CTX *ctx, unsigned char *key, int keyLen);
18 void Blowfish_Encrypt(BLOWFISH_CTX *ctx, unsigned int *xl, unsigned int *xr);
19 void Blowfish_Decrypt(BLOWFISH_CTX *ctx, unsigned int *xl, unsigned int *xr);
21 #ifdef __cplusplus
23 #endif