|
WizardsToolkit
1.0.7
|
#include "wizard/random_.h"

Go to the source code of this file.
| #define MaxCipherBlocksize 128 |
Definition at line 27 of file cipher.h.
Referenced by FileToBlob(), DecipherCBCMode(), DecipherCFBMode(), DecipherCTRMode(), DecipherECBMode(), DecipherOFBMode(), EncipherCBCMode(), EncipherCFBMode(), EncipherCTRMode(), EncipherECBMode(), EncipherOFBMode(), AcquireStringInfo(), CloneStringInfo(), ConfigureFileToStringInfo(), SetStringInfoLength(), and SplitStringInfo().
| typedef struct _CipherInfo CipherInfo |
| enum CipherMode |
| enum CipherType |
| WizardExport CipherInfo* AcquireCipherInfo | ( | const CipherType | , |
| const CipherMode | |||
| ) |
| WizardExport StringInfo* DecipherCipher | ( | CipherInfo * | , |
| StringInfo * | |||
| ) |
| WizardExport StringInfo* DecryptCipher | ( | CipherInfo * | , |
| StringInfo * | |||
| ) |
| WizardExport CipherInfo * DestroyCipherInfo | ( | CipherInfo * | ) |
Definition at line 689 of file cipher.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, CipherDomain, _CipherInfo::signature, WizardSignature, _CipherInfo::handle, _CipherInfo::cipher, AESCipher, DestroyAESInfo(), SerpentCipher, DestroySerpentInfo(), TwofishCipher, DestroyTwofishInfo(), ThrowWizardFatalError, EnumerateError, _CipherInfo::nonce, DestroyStringInfo(), _CipherInfo::random_info, DestroyRandomInfo(), and RelinquishWizardMemory().
Referenced by DestroyKeyInfo(), and DestroySecretInfo().
| WizardExport StringInfo * EncipherCipher | ( | CipherInfo * | , |
| StringInfo * | |||
| ) |
| WizardExport StringInfo * EncryptCipher | ( | CipherInfo * | , |
| StringInfo * | |||
| ) |
Definition at line 918 of file cipher.c.
References EncipherCipher().
| WizardExport StringInfo * GenerateCipherNonce | ( | CipherInfo * | ) |
Definition at line 1254 of file cipher.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, CipherDomain, _CipherInfo::signature, WizardSignature, _CipherInfo::mode, CBCMode, CFBMode, ECBMode, OFBMode, GetRandomKey(), _CipherInfo::random_info, _CipherInfo::blocksize, CTRMode, AcquireStringInfo(), ResetStringInfo(), SetRandomKey(), GetStringInfoDatum(), ThrowWizardFatalError, and EnumerateError.
Referenced by AcquireCipherInfo(), AcquireKeyInfo(), and AcquireSecretInfo().
| WizardExport size_t GetCipherBlocksize | ( | const CipherInfo * | ) |
Definition at line 1224 of file cipher.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, CipherDomain, _CipherInfo::signature, WizardSignature, and _CipherInfo::blocksize.
| WizardExport const StringInfo* GetCipherNonce | ( | CipherInfo * | ) |
Definition at line 1308 of file cipher.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, CipherDomain, _CipherInfo::signature, WizardSignature, and _CipherInfo::nonce.
| WizardExport void ResetCipherNonce | ( | CipherInfo * | ) |
| WizardExport void SetCipherKey | ( | CipherInfo * | , |
| const StringInfo * | |||
| ) |
Definition at line 1405 of file cipher.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, CipherDomain, _CipherInfo::signature, WizardSignature, _CipherInfo::cipher, AESCipher, SetAESKey(), _CipherInfo::handle, SerpentCipher, SetSerpentKey(), TwofishCipher, SetTwofishKey(), ThrowWizardFatalError, and EnumerateError.
Referenced by GetKeyInfo(), SetKeyInfo(), AuthenticateSecretKey(), and GenerateSecretKey().
| WizardExport void SetCipherNonce | ( | CipherInfo * | , |
| const StringInfo * | |||
| ) |