diff options
author | Jedidiah Barber <contact@jedbarber.id.au> | 2021-07-14 11:27:03 +1200 |
---|---|---|
committer | Jedidiah Barber <contact@jedbarber.id.au> | 2021-07-14 11:27:03 +1200 |
commit | 3cb7fdea950dd2d0377f0d9ad8a88fcb7c48b842 (patch) | |
tree | cedbfc08a6bf0bd8cb6ec6c8d8dd94a4e715439b /Crypto/Blowfish.h |
Diffstat (limited to 'Crypto/Blowfish.h')
-rw-r--r-- | Crypto/Blowfish.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Crypto/Blowfish.h b/Crypto/Blowfish.h new file mode 100644 index 0000000..29f323d --- /dev/null +++ b/Crypto/Blowfish.h @@ -0,0 +1,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 |