gwenhywfar
4.8.0beta
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
src
cryptmsg
crypthead.h
Go to the documentation of this file.
1
/***************************************************************************
2
begin : Mon Dec 01 2008
3
copyright : (C) 2008 by Martin Preuss
4
email : martin@libchipcard.de
5
6
***************************************************************************
7
* Please see toplevel file COPYING for license details *
8
***************************************************************************/
9
10
11
#ifndef GWEN_CRYPTMGR_CRYPTHEAD_H
12
#define GWEN_CRYPTMGR_CRYPTHEAD_H
13
14
#include <gwenhywfar/list1.h>
15
#include <gwenhywfar/buffer.h>
16
17
18
#ifdef __cplusplus
19
extern
"C"
{
20
#endif
21
22
23
typedef
struct
GWEN_CRYPTHEAD
GWEN_CRYPTHEAD
;
24
GWEN_LIST_FUNCTION_LIB_DEFS
(
GWEN_CRYPTHEAD
, GWEN_CryptHead,
GWENHYWFAR_API
)
25
26
27
GWENHYWFAR_API
28
GWEN_CRYPTHEAD
*
GWEN_CryptHead_new
(
void
);
29
30
GWENHYWFAR_API
31
void
GWEN_CryptHead_free
(
GWEN_CRYPTHEAD
*ch);
32
33
GWENHYWFAR_API
34
GWEN_CRYPTHEAD
*
GWEN_CryptHead_fromBuffer
(const uint8_t *p, uint32_t l);
35
36
GWENHYWFAR_API
37
int
GWEN_CryptHead_toBuffer
(const
GWEN_CRYPTHEAD
*ch,
GWEN_BUFFER
*buf, uint8_t tagType);
38
39
GWENHYWFAR_API
40
const
char
*
GWEN_CryptHead_GetKeyName
(const
GWEN_CRYPTHEAD
*ch);
41
42
GWENHYWFAR_API
43
void
GWEN_CryptHead_SetKeyName
(
GWEN_CRYPTHEAD
*ch, const
char
*s);
44
45
GWENHYWFAR_API
46
int
GWEN_CryptHead_GetKeyNumber
(const
GWEN_CRYPTHEAD
*ch);
47
48
GWENHYWFAR_API
49
void
GWEN_CryptHead_SetKeyNumber
(
GWEN_CRYPTHEAD
*ch,
int
i);
50
51
GWENHYWFAR_API
52
int
GWEN_CryptHead_GetKeyVersion
(const
GWEN_CRYPTHEAD
*ch);
53
54
GWENHYWFAR_API
55
void
GWEN_CryptHead_SetKeyVersion
(
GWEN_CRYPTHEAD
*ch,
int
i);
56
57
GWENHYWFAR_API
58
int
GWEN_CryptHead_GetCryptProfile
(const
GWEN_CRYPTHEAD
*ch);
59
60
GWENHYWFAR_API
61
void
GWEN_CryptHead_SetCryptProfile
(
GWEN_CRYPTHEAD
*ch,
int
i);
62
63
GWENHYWFAR_API
64
const uint8_t *
GWEN_CryptHead_GetKeyPtr
(const
GWEN_CRYPTHEAD
*ch);
65
66
GWENHYWFAR_API
67
uint32_t
GWEN_CryptHead_GetKeyLen
(const
GWEN_CRYPTHEAD
*ch);
68
69
GWENHYWFAR_API
70
void
GWEN_CryptHead_SetKey
(
GWEN_CRYPTHEAD
*ch, const uint8_t *p, uint32_t l);
71
72
73
#ifdef __cplusplus
74
}
75
#endif
76
77
78
#endif
79
Generated on Sun Oct 27 2013 09:43:36 for gwenhywfar by
1.8.4