gwenhywfar  4.3.3
cryptalgo.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_CRYPTALGO_H
15 #define GWEN_CRYPT_CRYPTALGO_H
16 
17 
18 #include <gwenhywfar/list2.h>
19 
21 
22 #ifdef __cplusplus
23 extern "C" {
24 #endif
25 
27  GWEN_Crypt_CryptAlgo,
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 
34 typedef enum {
35  GWEN_Crypt_CryptAlgoId_Unknown=-1,
36  GWEN_Crypt_CryptAlgoId_None=0,
37  GWEN_Crypt_CryptAlgoId_Any,
39  GWEN_Crypt_CryptAlgoId_Rsa,
41  GWEN_Crypt_CryptAlgoId_Dsa,
42  /* DES */
43  GWEN_Crypt_CryptAlgoId_Des,
45  GWEN_Crypt_CryptAlgoId_Des3K,
46  /* blowfish */
47  GWEN_Crypt_CryptAlgoId_BlowFish,
48  /* AES-128 */
49  GWEN_Crypt_CryptAlgoId_Aes128,
51 
52 
53 typedef enum {
56  GWEN_Crypt_CryptMode_Ecb, /* electronic codebook */
57  GWEN_Crypt_CryptMode_Cfb, /* cipher feedback */
58  GWEN_Crypt_CryptMode_Cbc /* cipher block chaining */
60 
61 
62 #include <gwenhywfar/db.h>
63 
64 
65 #ifdef __cplusplus
66 extern "C" {
67 #endif
68 
71 
74 
75 
83 
89  const uint8_t *pv,
90  uint32_t lv);
91 
92 
95 
96 
99 
100 
101 #ifdef __cplusplus
102 }
103 #endif
104 
105 #endif
106 
107