gwenhywfar
4.11.0beta
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
gwenhywfar4
gwenhywfar
cryptkey_be.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_KEY_BE_H
15
#define GWEN_CRYPT_KEY_BE_H
16
17
#include <
gwenhywfar/cryptkey.h
>
18
19
20
21
typedef
int (*
GWEN_CRYPT_KEY_SIGN_FN
)(
GWEN_CRYPT_KEY
*k,
22
const
uint8_t *pInData,
23
uint32_t inLen,
24
uint8_t *pSignatureData,
25
uint32_t *pSignatureLen);
26
typedef
int (*
GWEN_CRYPT_KEY_VERIFY_FN
)(
GWEN_CRYPT_KEY
*k,
27
const
uint8_t *pInData,
28
uint32_t inLen,
29
const
uint8_t *pSignatureData,
30
uint32_t signatureLen);
31
typedef
int (*
GWEN_CRYPT_KEY_ENCIPHER_FN
)(
GWEN_CRYPT_KEY
*k,
32
const
uint8_t *pInData,
33
uint32_t inLen,
34
uint8_t *pOutData,
35
uint32_t *pOutLen);
36
typedef
int (*
GWEN_CRYPT_KEY_DECIPHER_FN
)(
GWEN_CRYPT_KEY
*k,
37
const
uint8_t *pInData,
38
uint32_t inLen,
39
uint8_t *pOutData,
40
uint32_t *pOutLen);
41
42
43
#ifdef __cplusplus
44
extern
"C"
{
45
#endif
46
47
GWENHYWFAR_API
GWEN_CRYPT_KEY
*
GWEN_Crypt_Key_new
(
GWEN_CRYPT_CRYPTALGOID
cryptAlgoId,
int
keySize);
48
49
GWENHYWFAR_API
GWEN_CRYPT_KEY
*
GWEN_Crypt_Key_fromDb
(
GWEN_DB_NODE
*db);
50
GWENHYWFAR_API
int
GWEN_Crypt_Key_toDb
(
const
GWEN_CRYPT_KEY
*k,
GWEN_DB_NODE
*db);
51
GWENHYWFAR_API
GWEN_CRYPT_KEY
*
GWEN_Crypt_Key_dup
(
const
GWEN_CRYPT_KEY
*k);
52
53
54
GWENHYWFAR_API
GWEN_CRYPT_KEY_SIGN_FN
GWEN_Crypt_Key_SetSignFn
(
GWEN_CRYPT_KEY
*k,
55
GWEN_CRYPT_KEY_SIGN_FN
f);
56
GWENHYWFAR_API
GWEN_CRYPT_KEY_VERIFY_FN
GWEN_Crypt_Key_SetVerifyFn
(
GWEN_CRYPT_KEY
*k,
57
GWEN_CRYPT_KEY_VERIFY_FN
f);
58
59
GWENHYWFAR_API
GWEN_CRYPT_KEY_ENCIPHER_FN
60
GWEN_Crypt_Key_SetEncipherFn
(
GWEN_CRYPT_KEY
*k,
61
GWEN_CRYPT_KEY_ENCIPHER_FN
f);
62
GWENHYWFAR_API
GWEN_CRYPT_KEY_DECIPHER_FN
63
GWEN_Crypt_Key_SetDecipherFn
(
GWEN_CRYPT_KEY
*k,
64
GWEN_CRYPT_KEY_DECIPHER_FN
f);
65
66
67
#ifdef __cplusplus
68
}
69
#endif
70
71
72
#endif
Generated on Sun Mar 23 2014 09:24:07 for gwenhywfar by
1.8.1.2