57#define SecretKeyCipher AESCipher
58#define SecretKeyMode CTRMode
59#define SecretKeyHash SHA2256Hash
60#define SecretRandomHash SHA2256Hash
125 const size_t key_length)
133 (void) memset(secret_info,0,
sizeof(*secret_info));
140 secret_info->
timestamp=time((time_t *) NULL);
255 secret_info->
signature=(~WizardSignature);
365 return(secret_info->
id);
395 return(secret_info->
key);
515 const size_t key_length)
548 const char *passphrase)
WizardExport CipherInfo * DestroyCipherInfo(CipherInfo *cipher_info)
WizardExport void SetCipherNonce(CipherInfo *cipher_info, const StringInfo *nonce)
WizardExport void SetCipherKey(CipherInfo *cipher_info, const StringInfo *key)
WizardExport StringInfo * DecipherCipher(CipherInfo *cipher_info, StringInfo *ciphertext)
WizardExport StringInfo * GenerateCipherNonce(CipherInfo *cipher_info)
WizardExport CipherInfo * AcquireCipherInfo(const CipherType cipher, const CipherMode mode)
WizardExport StringInfo * EncipherCipher(CipherInfo *cipher_info, StringInfo *plaintext)
#define WizardAssert(domain, predicate)
#define ThrowWizardFatalError(domain, error)
WizardExport ExceptionInfo * AcquireExceptionInfo(void)
WizardExport ExceptionInfo * DestroyExceptionInfo(ExceptionInfo *exception)
WizardExport void ConstructHMAC(HMACInfo *hmac_info, const StringInfo *key, const StringInfo *message)
WizardExport HMACInfo * AcquireHMACInfo(const HashType hash)
WizardExport const StringInfo * GetHMACDigest(const HMACInfo *hmac_info)
WizardExport HMACInfo * DestroyHMACInfo(HMACInfo *hmac_info)
WizardExport WizardBooleanType ImportKeyringKey(KeyringInfo *keyring_info, ExceptionInfo *exception)
WizardExport const StringInfo * GetKeyringKey(const KeyringInfo *keyring_info)
WizardExport void SetKeyringId(KeyringInfo *keyring_info, const StringInfo *id)
WizardExport const StringInfo * GetKeyringNonce(const KeyringInfo *keyring_info)
WizardExport WizardBooleanType ExportKeyringKey(KeyringInfo *keyring_info, ExceptionInfo *exception)
WizardExport void SetKeyringKey(KeyringInfo *keyring_info, const StringInfo *key)
WizardExport void SetKeyringNonce(KeyringInfo *keyring_info, const StringInfo *nonce)
WizardExport KeyringInfo * DestroyKeyringInfo(KeyringInfo *keyring_info)
WizardExport KeyringInfo * AcquireKeyringInfo(const char *path)
WizardBooleanType LogWizardEvent(const LogEventType type, const char *module, const char *function, const size_t line, const char *format,...)
#define GetWizardModule()
WizardExport void * AcquireWizardMemory(const size_t size)
WizardExport void * RelinquishWizardMemory(void *memory)
WizardExport StringInfo * GetPassphrase(ExceptionInfo *exception)
WizardExport RandomInfo * AcquireRandomInfo(const HashType hash)
WizardExport StringInfo * GetRandomKey(RandomInfo *random_info, const size_t length)
WizardExport RandomInfo * DestroyRandomInfo(RandomInfo *random_info)
WizardExport void SetSecretId(SecretInfo *secret_info, const StringInfo *id)
WizardExport WizardBooleanType AuthenticateSecretKey(SecretInfo *secret_info, ExceptionInfo *exception)
WizardExport SecretInfo * DestroySecretInfo(SecretInfo *secret_info)
WizardExport const StringInfo * GetSecretKey(const SecretInfo *secret_info)
WizardExport SecretInfo * AcquireSecretInfo(const char *path, const HashType hash, const size_t key_length)
WizardExport void SetSecretPassphrase(SecretInfo *secret_info, const char *passphrase)
WizardExport void SetSecretKeyLength(SecretInfo *secret_info, const size_t key_length)
WizardExport const StringInfo * GetSecretId(const SecretInfo *secret_info)
WizardExport const char * GetSecretPassphrase(const SecretInfo *secret_info)
WizardExport WizardBooleanType GenerateSecretKey(SecretInfo *secret_info, ExceptionInfo *exception)
WizardExport size_t GetSecretKeyLength(const SecretInfo *secret_info)
WizardExport StringInfo * FileToStringInfo(const char *filename, const size_t extent, ExceptionInfo *exception)
WizardExport char * DestroyString(char *string)
WizardExport char * ConstantString(const char *source)
WizardExport int CompareStringInfo(const StringInfo *target, const StringInfo *source)
WizardExport StringInfo * CloneStringInfo(const StringInfo *string_info)
WizardExport StringInfo * DestroyStringInfo(StringInfo *string_info)
KeyringInfo * keyring_info