crypthead.h

Go to the documentation of this file.
00001 /***************************************************************************
00002     begin       : Mon Dec 01 2008
00003     copyright   : (C) 2008 by Martin Preuss
00004     email       : martin@libchipcard.de
00005 
00006  ***************************************************************************
00007  *          Please see toplevel file COPYING for license details           *
00008  ***************************************************************************/
00009 
00010 
00011 #ifndef GWEN_CRYPTMGR_CRYPTHEAD_H
00012 #define GWEN_CRYPTMGR_CRYPTHEAD_H
00013 
00014 #include <gwenhywfar/list1.h>
00015 #include <gwenhywfar/buffer.h>
00016 
00017 
00018 #ifdef __cplusplus
00019 extern "C" {
00020 #endif
00021 
00022 
00023 typedef struct GWEN_CRYPTHEAD GWEN_CRYPTHEAD;
00024 GWEN_LIST_FUNCTION_LIB_DEFS(GWEN_CRYPTHEAD, GWEN_CryptHead, GWENHYWFAR_API)
00025 
00026 
00027 GWENHYWFAR_API
00028 GWEN_CRYPTHEAD *GWEN_CryptHead_new();
00029 
00030 GWENHYWFAR_API
00031 void GWEN_CryptHead_free(GWEN_CRYPTHEAD *ch);
00032 
00033 GWENHYWFAR_API
00034 GWEN_CRYPTHEAD *GWEN_CryptHead_fromBuffer(const uint8_t *p, uint32_t l);
00035 
00036 GWENHYWFAR_API
00037 int GWEN_CryptHead_toBuffer(const GWEN_CRYPTHEAD *ch, GWEN_BUFFER *buf, uint8_t tagType);
00038 
00039 GWENHYWFAR_API
00040 const char *GWEN_CryptHead_GetKeyName(const GWEN_CRYPTHEAD *ch);
00041 
00042 GWENHYWFAR_API
00043 void GWEN_CryptHead_SetKeyName(GWEN_CRYPTHEAD *ch, const char *s);
00044 
00045 GWENHYWFAR_API
00046 int GWEN_CryptHead_GetKeyNumber(const GWEN_CRYPTHEAD *ch);
00047 
00048 GWENHYWFAR_API
00049 void GWEN_CryptHead_SetKeyNumber(GWEN_CRYPTHEAD *ch, int i);
00050 
00051 GWENHYWFAR_API
00052 int GWEN_CryptHead_GetKeyVersion(const GWEN_CRYPTHEAD *ch);
00053 
00054 GWENHYWFAR_API
00055 void GWEN_CryptHead_SetKeyVersion(GWEN_CRYPTHEAD *ch, int i);
00056 
00057 GWENHYWFAR_API
00058 int GWEN_CryptHead_GetCryptProfile(const GWEN_CRYPTHEAD *ch);
00059 
00060 GWENHYWFAR_API
00061 void GWEN_CryptHead_SetCryptProfile(GWEN_CRYPTHEAD *ch, int i);
00062 
00063 GWENHYWFAR_API
00064 const uint8_t *GWEN_CryptHead_GetKeyPtr(const GWEN_CRYPTHEAD *ch);
00065 
00066 GWENHYWFAR_API
00067 uint32_t GWEN_CryptHead_GetKeyLen(const GWEN_CRYPTHEAD *ch);
00068 
00069 GWENHYWFAR_API
00070 void GWEN_CryptHead_SetKey(GWEN_CRYPTHEAD *ch, const uint8_t *p, uint32_t l);
00071 
00072 
00073 #ifdef __cplusplus
00074 }
00075 #endif
00076 
00077 
00078 #endif
00079 
Generated on Mon Jul 5 22:51:12 2010 for gwenhywfar by  doxygen 1.6.3