|
WizardsToolkit
1.0.7
|
#include "wizard/cipher.h"#include "wizard/exception.h"#include "wizard/hash.h"#include "wizard/hmac.h"#include "wizard/keyring.h"#include "wizard/random_.h"

Go to the source code of this file.
Typedefs | |
| typedef struct _SecretInfo | SecretInfo |
Functions | |
| WizardExport const char * | GetSecretPassphrase (const SecretInfo *) |
| WizardExport const StringInfo * | GetSecretId (const SecretInfo *) |
| WizardExport const StringInfo * | GetSecretKey (const SecretInfo *) |
| WizardExport SecretInfo * | AcquireSecretInfo (const char *, const HashType, const size_t) |
| WizardExport SecretInfo * | DestroySecretInfo (SecretInfo *) |
| WizardExport size_t | GetSecretKeyLength (const SecretInfo *) |
| WizardExport void | SetSecretId (SecretInfo *, const StringInfo *) |
| WizardExport void | SetSecretKeyLength (SecretInfo *, const size_t) |
| WizardExport void | SetSecretPassphrase (SecretInfo *, const char *) |
| WizardExport WizardBooleanType | AuthenticateSecretKey (SecretInfo *, ExceptionInfo *) |
| WizardExport WizardBooleanType | GenerateSecretKey (SecretInfo *, ExceptionInfo *) |
| typedef struct _SecretInfo SecretInfo |
| WizardExport SecretInfo* AcquireSecretInfo | ( | const char * | , |
| const HashType | , | ||
| const size_t | |||
| ) |
| WizardExport WizardBooleanType AuthenticateSecretKey | ( | SecretInfo * | , |
| ExceptionInfo * | |||
| ) |
| WizardExport SecretInfo * DestroySecretInfo | ( | SecretInfo * | ) |
Definition at line 234 of file secret.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _SecretInfo::signature, WizardSignature, _SecretInfo::random_info, DestroyRandomInfo(), _SecretInfo::hmac_info, DestroyHMACInfo(), _SecretInfo::cipher_info, DestroyCipherInfo(), _SecretInfo::keyring_info, DestroyKeyringInfo(), _SecretInfo::nonce, DestroyStringInfo(), _SecretInfo::key, _SecretInfo::id, _SecretInfo::digest, and RelinquishWizardMemory().
Referenced by DestroyAuthenticateInfo().
| WizardExport WizardBooleanType GenerateSecretKey | ( | SecretInfo * | , |
| ExceptionInfo * | |||
| ) |
Definition at line 286 of file secret.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _SecretInfo::signature, WizardSignature, _SecretInfo::passphrase, GetPassphrase(), FileToStringInfo(), WizardFalse, AcquireExceptionInfo(), _SecretInfo::key, DestroyStringInfo(), GetRandomKey(), _SecretInfo::random_info, _SecretInfo::key_length, ConstructHMAC(), _SecretInfo::hmac_info, _SecretInfo::id, CloneStringInfo(), GetHMACDigest(), SetKeyringId(), _SecretInfo::keyring_info, ExportKeyringKey(), DestroyExceptionInfo(), SetKeyringKey(), SetKeyringNonce(), _SecretInfo::nonce, SetCipherKey(), _SecretInfo::cipher_info, SetCipherNonce(), GetKeyringNonce(), GetKeyringKey(), EncipherCipher(), ImportKeyringKey(), and WizardTrue.
Referenced by GenerateAuthenticateKey().
| WizardExport const StringInfo* GetSecretId | ( | const SecretInfo * | ) |
| WizardExport const StringInfo * GetSecretKey | ( | const SecretInfo * | ) |
Definition at line 390 of file secret.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _SecretInfo::signature, WizardSignature, and _SecretInfo::key.
Referenced by GetAuthenticateKey().
| WizardExport size_t GetSecretKeyLength | ( | const SecretInfo * | ) |
Definition at line 420 of file secret.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _SecretInfo::signature, WizardSignature, and _SecretInfo::key_length.
Referenced by GetAuthenticateKeyLength().
| WizardExport const char* GetSecretPassphrase | ( | const SecretInfo * | ) |
Definition at line 450 of file secret.c.
References LogWizardEvent(), TraceEvent, GetWizardModule, WizardAssert, AuthenticateDomain, _SecretInfo::signature, WizardSignature, and _SecretInfo::passphrase.
Referenced by GetAuthenticatePassphrase().
| WizardExport void SetSecretId | ( | SecretInfo * | , |
| const StringInfo * | |||
| ) |
| WizardExport void SetSecretKeyLength | ( | SecretInfo * | , |
| const size_t | |||
| ) |
| WizardExport void SetSecretPassphrase | ( | SecretInfo * | , |
| const char * | |||
| ) |
Definition at line 547 of file secret.c.
References _SecretInfo::passphrase, DestroyString(), and ConstantString().
Referenced by SetAuthenticatePassphrase().