|
MagickCore 7.0.10
|
Go to the source code of this file.
Typedefs | |
| typedef struct _SerpentInfo | SerpentInfo |
Functions | |
| WizardExport SerpentInfo * | AcquireSerpentInfo (void) |
| WizardExport SerpentInfo * | DestroySerpentInfo (SerpentInfo *) |
| WizardExport unsigned int | GetSerpentBlocksize (const SerpentInfo *) |
| WizardExport void | DecipherSerpentBlock (SerpentInfo *, const unsigned char *, unsigned char *) |
| WizardExport void | EncipherSerpentBlock (SerpentInfo *, const unsigned char *, unsigned char *) |
| WizardExport void | SetSerpentKey (SerpentInfo *, const StringInfo *) |
| typedef struct _SerpentInfo SerpentInfo |
| WizardExport SerpentInfo * AcquireSerpentInfo | ( | void | ) |
| WizardExport void DecipherSerpentBlock | ( | SerpentInfo * | , |
| const unsigned char * | , | ||
| unsigned char * | |||
| ) |
| WizardExport SerpentInfo * DestroySerpentInfo | ( | SerpentInfo * | serpent_info | ) |
Definition at line 359 of file serpent.c.
References CipherDomain, GetWizardModule, LogWizardEvent(), RelinquishWizardMemory(), _SerpentInfo::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by DestroyCipherInfo().
| WizardExport void EncipherSerpentBlock | ( | SerpentInfo * | , |
| const unsigned char * | , | ||
| unsigned char * | |||
| ) |
| WizardExport unsigned int GetSerpentBlocksize | ( | const SerpentInfo * | serpent_info | ) |
Definition at line 603 of file serpent.c.
References _SerpentInfo::blocksize, CipherDomain, GetWizardModule, LogWizardEvent(), _SerpentInfo::signature, TraceEvent, WizardAssert, and WizardSignature.
Referenced by AcquireCipherInfo().
| WizardExport void SetSerpentKey | ( | SerpentInfo * | serpent_info, |
| const StringInfo * | key | ||
| ) |
Definition at line 637 of file serpent.c.
References ChurnKey, CipherDomain, _SerpentInfo::crypt_key, EncipherSbox0, EncipherSbox1, EncipherSbox2, EncipherSbox3, EncipherSbox4, EncipherSbox5, EncipherSbox6, EncipherSbox7, GetStringInfoDatum(), GetStringInfoLength(), GetWizardModule, LoadKey, LogWizardEvent(), MaximumSerpentKeyLength, Min, Read32Bits, _SerpentInfo::signature, StoreKey, TraceEvent, WizardAssert, and WizardSignature.
Referenced by SetCipherKey().