MagickCore 7.0.10
secret.h
Go to the documentation of this file.
1/*
2 Copyright @ 1999 ImageMagick Studio LLC, a non-profit organization
3 dedicated to making software imaging solutions freely available.
4
5 You may not use this file except in compliance with the License.
6 obtain a copy of the License at
7
8 https://imagemagick.org/script/license.php
9
10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" BASIS,
12 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and
14 limitations under the License.
15
16 Wizard's Toolkit Secret authentication methods.
17*/
18#ifndef _WIZARDSTOOLKIT_SECRET_H_
19#define _WIZARDSTOOLKIT_SECRET_H_
20
21#include "wizard/cipher.h"
22#include "wizard/exception.h"
23#include "wizard/hash.h"
24#include "wizard/hmac.h"
25#include "wizard/keyring.h"
26#include "wizard/random_.h"
27
28#if defined(__cplusplus) || defined(c_plusplus)
29extern "C" {
30#endif
31
32typedef struct _SecretInfo
34
35extern WizardExport const char
37
38extern WizardExport const StringInfo
40 *GetSecretKey(const SecretInfo *);
41
43 *AcquireSecretInfo(const char *,const HashType,const size_t),
45
46extern WizardExport size_t
48
49extern WizardExport void
52 SetSecretPassphrase(SecretInfo *,const char *);
53
57
58#if defined(__cplusplus) || defined(c_plusplus)
59}
60#endif
61
62#endif
HashType
Definition hash.h:28
#define WizardExport
WizardExport void SetSecretId(SecretInfo *, const StringInfo *)
WizardExport void SetSecretPassphrase(SecretInfo *, const char *)
Definition secret.c:547
WizardExport const StringInfo * GetSecretKey(const SecretInfo *)
Definition secret.c:390
WizardExport SecretInfo * AcquireSecretInfo(const char *, const HashType, const size_t)
WizardExport size_t GetSecretKeyLength(const SecretInfo *)
Definition secret.c:420
WizardExport void SetSecretKeyLength(SecretInfo *, const size_t)
WizardExport SecretInfo * DestroySecretInfo(SecretInfo *)
Definition secret.c:234
WizardExport const StringInfo * GetSecretId(const SecretInfo *)
WizardExport const char * GetSecretPassphrase(const SecretInfo *)
Definition secret.c:450
WizardExport WizardBooleanType AuthenticateSecretKey(SecretInfo *, ExceptionInfo *)
WizardExport WizardBooleanType GenerateSecretKey(SecretInfo *, ExceptionInfo *)
Definition secret.c:286
WizardBooleanType
Definition wizard-type.h:26