gwenhywfar
4.10.0beta
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
gwenhywfar4
gwenhywfar
hashalgo.h
Go to the documentation of this file.
1
/***************************************************************************
2
$RCSfile$
3
-------------------
4
cvs : $Id: crypttoken.h 1113 2007-01-10 09:14:16Z martin $
5
begin : Wed Mar 16 2005
6
copyright : (C) 2005 by Martin Preuss
7
email : martin@libchipcard.de
8
9
***************************************************************************
10
* Please see toplevel file COPYING for license details *
11
***************************************************************************/
12
13
14
#ifndef GWEN_CRYPT_HASHALGO_H
15
#define GWEN_CRYPT_HASHALGO_H
16
17
18
#include <
gwenhywfar/list2.h
>
19
20
21
typedef
struct
GWEN_CRYPT_HASHALGO
GWEN_CRYPT_HASHALGO
;
22
23
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
GWEN_LIST2_FUNCTION_LIB_DEFS
(
GWEN_CRYPT_HASHALGO
,
29
GWEN_Crypt_HashAlgo,
30
GWENHYWFAR_API
)
31
32
#ifdef __cplusplus
33
}
34
#endif
35
36
37
typedef
enum
{
38
GWEN_Crypt_HashAlgoId_Unknown=-1,
39
GWEN_Crypt_HashAlgoId_None=0,
40
GWEN_Crypt_HashAlgoId_Any,
42
GWEN_Crypt_HashAlgoId_Sha1,
44
GWEN_Crypt_HashAlgoId_Rmd160,
46
GWEN_Crypt_HashAlgoId_Md5,
47
GWEN_Crypt_HashAlgoId_Sha256,
48
}
GWEN_CRYPT_HASHALGOID
;
49
50
51
#include <
gwenhywfar/db.h
>
52
53
54
#ifdef __cplusplus
55
extern
"C"
{
56
#endif
57
58
GWENHYWFAR_API
GWEN_CRYPT_HASHALGOID
GWEN_Crypt_HashAlgoId_fromString
(
const
char
*s);
59
GWENHYWFAR_API
const
char
*
GWEN_Crypt_HashAlgoId_toString
(
GWEN_CRYPT_HASHALGOID
a);
60
61
62
GWENHYWFAR_API
GWEN_CRYPT_HASHALGO
*
GWEN_Crypt_HashAlgo_new
(
GWEN_CRYPT_HASHALGOID
id
);
63
GWENHYWFAR_API
GWEN_CRYPT_HASHALGO
*
GWEN_Crypt_HashAlgo_dup
(
const
GWEN_CRYPT_HASHALGO
*a);
64
GWENHYWFAR_API
GWEN_CRYPT_HASHALGO
*
GWEN_Crypt_HashAlgo_fromDb
(
GWEN_DB_NODE
*db);
65
GWENHYWFAR_API
int
GWEN_Crypt_HashAlgo_toDb
(
const
GWEN_CRYPT_HASHALGO
*a,
GWEN_DB_NODE
*db);
66
GWENHYWFAR_API
void
GWEN_Crypt_HashAlgo_Attach
(
GWEN_CRYPT_HASHALGO
*a);
67
GWENHYWFAR_API
void
GWEN_Crypt_HashAlgo_free
(
GWEN_CRYPT_HASHALGO
*a);
68
69
GWENHYWFAR_API
GWEN_CRYPT_HASHALGOID
GWEN_Crypt_HashAlgo_GetId
(
const
GWEN_CRYPT_HASHALGO
*a);
70
GWENHYWFAR_API
uint8_t *
GWEN_Crypt_HashAlgo_GetInitVectorPtr
(
const
GWEN_CRYPT_HASHALGO
*a);
71
GWENHYWFAR_API
uint32_t
GWEN_Crypt_HashAlgo_GetInitVectorLen
(
const
GWEN_CRYPT_HASHALGO
*a);
72
GWENHYWFAR_API
int
GWEN_Crypt_HashAlgo_SetInitVector
(
GWEN_CRYPT_HASHALGO
*a,
73
const
uint8_t *pv,
74
uint32_t lv);
75
76
#ifdef __cplusplus
77
}
78
#endif
79
80
81
#endif
82
Generated on Tue Feb 11 2014 11:09:43 for gwenhywfar by
1.8.1.2