MagickCore 7.0.10
hash.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 secure hash algorithm methods.
17*/
18#ifndef _WIZARDSTOOLKIT_HASH_H
19#define _WIZARDSTOOLKIT_HASH_H
20
21#include "wizard/string_.h"
22
23#if defined(__cplusplus) || defined(c_plusplus)
24extern "C" {
25#endif
26
27typedef enum
28{
45
46typedef struct _HashInfo
48
49extern WizardExport char
50 *GetHashHexDigest(const HashInfo *);
51
52extern WizardExport const StringInfo
53 *GetHashDigest(const HashInfo *);
54
58
59extern WizardExport size_t
62
67
68#if defined(__cplusplus) || defined(c_plusplus)
69}
70#endif
71
72#endif
WizardExport HashInfo * DestroyHashInfo(HashInfo *)
WizardExport size_t GetHashDigestsize(const HashInfo *)
Definition hash.c:598
HashType
Definition hash.h:28
@ SHA3512Hash
Definition hash.h:43
@ SHA3Hash
Definition hash.h:39
@ CRC64Hash
Definition hash.h:31
@ SHA2224Hash
Definition hash.h:35
@ SHA2512Hash
Definition hash.h:38
@ SHA3256Hash
Definition hash.h:41
@ MD5Hash
Definition hash.h:32
@ SHA3384Hash
Definition hash.h:42
@ SHA2256Hash
Definition hash.h:36
@ SHA2Hash
Definition hash.h:34
@ SHA3224Hash
Definition hash.h:40
@ SHA1Hash
Definition hash.h:33
@ NoHash
Definition hash.h:30
@ SHA2384Hash
Definition hash.h:37
@ UndefinedHash
Definition hash.h:29
WizardExport char * GetHashHexDigest(const HashInfo *)
Definition hash.c:713
WizardExport size_t GetHashBlocksize(const HashInfo *)
WizardExport WizardBooleanType FinalizeHash(HashInfo *)
WizardExport WizardBooleanType UpdateHash(HashInfo *, const StringInfo *)
Definition hash.c:849
WizardExport const StringInfo * GetHashDigest(const HashInfo *)
Definition hash.c:568
WizardExport HashInfo * AcquireHashInfo(const HashType)
Definition hash.c:99
WizardExport WizardBooleanType InitializeHash(HashInfo *)
#define WizardExport
WizardBooleanType
Definition wizard-type.h:26