71 #define ERR_SELECTB -8
72 #define ERR_TEST_ENC -9
73 #define ERR_TEST_DEC -10
74 #define ERR_SEQ_ENC -11
75 #define ERR_SEQ_DEC -12
76 #define ERR_ODD_KEY -13
78 #define ERR_KEY_LEN -15
79 #define ERR_ILL_ARG -16
98 Twofish_UInt32 s[4][256];
Structure that contains a prepared Twofish key.
unsigned char Twofish_Byte
A Twofish_Byte must be an unsigned 8-bit integer.
int Twofish_initialise()
Initialise and test the Twofish implementation.
void Twofish_decrypt(Twofish_key *xkey, Twofish_Byte c[16], Twofish_Byte p[16])
Decrypt a single block of data.
void Twofish_encrypt(Twofish_key *xkey, Twofish_Byte p[16], Twofish_Byte c[16])
Encrypt a single block of data.
int Twofish_prepare_key(Twofish_Byte key[], int key_len, Twofish_key *xkey)
Convert a cipher key to the internal form used for encryption and decryption.
unsigned int Twofish_UInt32
A Twofish_UInt32 must be an unsigned integer of at least 32 bits.