|
MagickCore 7.0.10
|
Go to the source code of this file.
Typedefs | |
| typedef struct _TwofishInfo | TwofishInfo |
Functions | |
| WizardExport TwofishInfo * | AcquireTwofishInfo (void) |
| WizardExport TwofishInfo * | DestroyTwofishInfo (TwofishInfo *) |
| WizardExport unsigned int | GetTwofishBlocksize (const TwofishInfo *) |
| WizardExport void | DecipherTwofishBlock (TwofishInfo *, const unsigned char *, unsigned char *) |
| WizardExport void | EncipherTwofishBlock (TwofishInfo *, const unsigned char *, unsigned char *) |
| WizardExport void | SetTwofishKey (TwofishInfo *, const StringInfo *) |
| typedef struct _TwofishInfo TwofishInfo |
| WizardExport TwofishInfo * AcquireTwofishInfo | ( | void | ) |
| WizardExport void DecipherTwofishBlock | ( | TwofishInfo * | , |
| const unsigned char * | , | ||
| unsigned char * | |||
| ) |
| WizardExport TwofishInfo * DestroyTwofishInfo | ( | TwofishInfo * | twofish_info | ) |
Definition at line 245 of file twofish.c.
References CipherDomain, GetWizardModule, LogWizardEvent(), RelinquishWizardMemory(), _TwofishInfo::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by DestroyCipherInfo().
| WizardExport void EncipherTwofishBlock | ( | TwofishInfo * | , |
| const unsigned char * | , | ||
| unsigned char * | |||
| ) |
| WizardExport unsigned int GetTwofishBlocksize | ( | const TwofishInfo * | twofish_info | ) |
Definition at line 374 of file twofish.c.
References _TwofishInfo::blocksize, CipherDomain, GetWizardModule, LogWizardEvent(), _TwofishInfo::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by AcquireCipherInfo().
| WizardExport void SetTwofishKey | ( | TwofishInfo * | twofish_info, |
| const StringInfo * | key | ||
| ) |
Definition at line 408 of file twofish.c.
References CipherDomain, GetStringInfoDatum(), GetStringInfoLength(), GetWizardModule, K128, K192, K256, LogWizardEvent(), MaximumTwofishKeyLength, Min, ResetWizardMemory(), Sbox, _TwofishInfo::sbox, _TwofishInfo::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by SetCipherKey().