2019-03-22 22:00:07 +01:00
|
|
|
/**
|
|
|
|
* Author......: See docs/credits.txt
|
|
|
|
* License.....: MIT
|
|
|
|
*/
|
|
|
|
|
2019-03-23 22:15:38 +01:00
|
|
|
#ifndef _INC_CIPHER_TWOFISH_H
|
|
|
|
#define _INC_CIPHER_TWOFISH_H
|
|
|
|
|
2019-03-22 22:27:58 +01:00
|
|
|
DECLSPEC u32 mds_rem (u32 p0, u32 p1);
|
2019-03-31 19:41:28 +02:00
|
|
|
DECLSPEC u32 h_fun128 (const u32 x, const u32 *key);
|
2019-03-22 22:27:58 +01:00
|
|
|
DECLSPEC void twofish128_set_key (u32 *sk, u32 *lk, const u32 *ukey);
|
|
|
|
DECLSPEC void twofish128_encrypt (const u32 *sk, const u32 *lk, const u32 *in, u32 *out);
|
|
|
|
DECLSPEC void twofish128_decrypt (const u32 *sk, const u32 *lk, const u32 *in, u32 *out);
|
2021-05-06 23:24:46 +02:00
|
|
|
DECLSPEC u32 h_fun192 (const u32 x, const u32 *key);
|
|
|
|
DECLSPEC void twofish192_set_key (u32 *sk, u32 *lk, const u32 *ukey);
|
|
|
|
DECLSPEC void twofish192_encrypt (const u32 *sk, const u32 *lk, const u32 *in, u32 *out);
|
|
|
|
DECLSPEC void twofish192_decrypt (const u32 *sk, const u32 *lk, const u32 *in, u32 *out);
|
2019-03-31 19:41:28 +02:00
|
|
|
DECLSPEC u32 h_fun256 (const u32 x, const u32 *key);
|
2019-03-22 22:27:58 +01:00
|
|
|
DECLSPEC void twofish256_set_key (u32 *sk, u32 *lk, const u32 *ukey);
|
|
|
|
DECLSPEC void twofish256_encrypt (const u32 *sk, const u32 *lk, const u32 *in, u32 *out);
|
|
|
|
DECLSPEC void twofish256_decrypt (const u32 *sk, const u32 *lk, const u32 *in, u32 *out);
|
2019-03-23 22:15:38 +01:00
|
|
|
|
|
|
|
#endif // _INC_CIPHER_TWOFISH_H
|