![]() |
![]() |
![]() |
|
[
About the Wizard's Toolkit ] [ Command-line Tools ] [ Application Program Interface ] [ Install from Source Unix Windows Binary Releases Unix Windows ] [ Download ] [ Search ] [ Sponsors: ] |
AcquireTwofishInfo() allocate the TwofishInfo structure. The format of the AcquireTwofishInfo method is: TwofishInfo *AcquireTwofishInfo(void) DecipherTwofishBlock() deciphers a single block of ciphertext to produce a block of plaintext. The format of the DecipherTwofishBlock method is:
void DecipherTwofishBlock(TwofishInfo *twofish_info,
const unsigned char *ciphertext,unsigned char plaintext)
A description of each parameter follows: twofish_infoThe cipher context. ciphertextThe cipher text. plaintextThe plaint text. DestroyTwofishInfo() zeros memory associated with the TwofishInfo structure. The format of the DestroyTwofishInfo method is: TwofishInfo *DestroyTwofishInfo(TwofishInfo *twofish_info) A description of each parameter follows: twofish_infoThe cipher context. EncipherTwofishBlock() encipher a single block of plaintext to produce a block of ciphertext. The format of the EncipherTwofishBlock method is:
void EncipherTwofishBlock(TwofishInfo *twofish_info,
const unsigned char *plaintext,unsigned char *ciphertext)
A description of each parameter follows: twofish_infoThe cipher context. plaintextThe plain text. ciphertextThe cipher text. GetTwofishBlocksize() returns the Twofish blocksize. The format of the GetTwofishBlocksize method is: unsigned int *GetTwofishBlocksize(const TwofishInfo *twofish_info) A description of each parameter follows: twofish_infoThe twofish info. SetTwofishKey() sets the key for the Twofish cipher. The key length is specified in bits. Valid values are 128, 192, or 256 requiring a key buffer length in bytes of 16, 24, and 32 respectively. The format of the SetTwofishKey method is: SetTwofishKey(TwofishInfo *twofish_info,const StringInfo *key) A description of each parameter follows: twofish_infoThe cipher context. keyThe key. |