gwenhywfar  4.12.0beta
cryptdefs.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_CRYPTDEFS_H
15 #define GWEN_CRYPT_CRYPTDEFS_H
16 
17 
19 
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 
26 typedef enum {
32 
35 
36 
37 
38 typedef enum {
46 
49 
50 
53  unsigned char *buffer,
54  unsigned int bufLength,
55  unsigned int *pinLength);
56 
57 GWENHYWFAR_API int GWEN_Crypt_KeyDataFromText(const char *text,
58  unsigned char *buffer,
59  unsigned int bufLength);
60 
61 GWENHYWFAR_API void GWEN_Crypt_Random(int quality, uint8_t *buffer, uint32_t len);
62 
63 
64 #ifdef __cplusplus
65 }
66 #endif
67 
68 
69 #endif
70 
GWENHYWFAR_API const char * GWEN_Crypt_PinType_toString(GWEN_CRYPT_PINTYPE pt)
GWEN_CRYPT_PINTYPE
Definition: cryptdefs.h:26
GWENHYWFAR_API const char * GWEN_Crypt_PinEncoding_toString(GWEN_CRYPT_PINENCODING pe)
GWENHYWFAR_API GWEN_CRYPT_PINENCODING GWEN_Crypt_PinEncoding_fromString(const char *s)
GWENHYWFAR_API int GWEN_Crypt_TransformPin(GWEN_CRYPT_PINENCODING peSrc, GWEN_CRYPT_PINENCODING peDst, unsigned char *buffer, unsigned int bufLength, unsigned int *pinLength)
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:67
GWENHYWFAR_API int GWEN_Crypt_KeyDataFromText(const char *text, unsigned char *buffer, unsigned int bufLength)
GWENHYWFAR_API void GWEN_Crypt_Random(int quality, uint8_t *buffer, uint32_t len)
GWEN_CRYPT_PINENCODING
Definition: cryptdefs.h:38
GWENHYWFAR_API GWEN_CRYPT_PINTYPE GWEN_Crypt_PinType_fromString(const char *s)