Main Page | Modules | Data Structures | Directories | File List | Data Fields | Globals | Related Pages

crypttoken_cryptinfo.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  $RCSfile: crypttoken_cryptinfo.h,v $
00003                              -------------------
00004     cvs         : $Id: crypttoken_cryptinfo.h,v 1.3 2005/08/05 16:05:54 aquamaniac Exp $
00005     begin       : Wed Mar 16 2005
00006     copyright   : (C) 2005 by Martin Preuss
00007     email       : martin@libchipcard.de
00008 
00009  ***************************************************************************
00010  *          Please see toplevel file COPYING for license details           *
00011  ***************************************************************************/
00012 
00013 
00014 #ifndef GWEN_CRYPTTOKEN_CRYPTINFO_H
00015 #define GWEN_CRYPTTOKEN_CRYPTINFO_H
00016 
00017 #include <gwenhywfar/keyspec.h>
00018 #include <gwenhywfar/crypt.h>
00019 #include <gwenhywfar/buffer.h>
00020 #include <gwenhywfar/db.h>
00021 #include <gwenhywfar/xml.h>
00022 #include <gwenhywfar/plugin.h>
00023 
00024 
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028 
00029 
00030 typedef struct GWEN_CRYPTTOKEN_CRYPTINFO GWEN_CRYPTTOKEN_CRYPTINFO;
00031 
00032 
00033 GWEN_LIST_FUNCTION_LIB_DEFS(GWEN_CRYPTTOKEN_CRYPTINFO,
00034                             GWEN_CryptToken_CryptInfo,
00035                             GWENHYWFAR_API)
00036 
00037 
00038 
00042 GWEN_CRYPTTOKEN_CRYPTINFO *GWEN_CryptToken_CryptInfo_new();
00043 void GWEN_CryptToken_CryptInfo_free(GWEN_CRYPTTOKEN_CRYPTINFO *ci);
00044 GWEN_CRYPTTOKEN_CRYPTINFO*
00045   GWEN_CryptToken_CryptInfo_dup(const GWEN_CRYPTTOKEN_CRYPTINFO *ci);
00046 
00047 GWEN_CRYPTTOKEN_CRYPTINFO *GWEN_CryptToken_CryptInfo_fromDb(GWEN_DB_NODE *db);
00048 void GWEN_CryptToken_CryptInfo_toDb(const GWEN_CRYPTTOKEN_CRYPTINFO *ci,
00049                                     GWEN_DB_NODE *db);
00050 
00051 
00052 GWEN_TYPE_UINT32
00053   GWEN_CryptToken_CryptInfo_GetId(const GWEN_CRYPTTOKEN_CRYPTINFO *ci);
00054 void GWEN_CryptToken_CryptInfo_SetId(GWEN_CRYPTTOKEN_CRYPTINFO *ci,
00055                                      GWEN_TYPE_UINT32 id);
00056 
00057 GWEN_CRYPTTOKEN_CRYPTALGO
00058   GWEN_CryptToken_CryptInfo_GetCryptAlgo(const GWEN_CRYPTTOKEN_CRYPTINFO *ci);
00059 void GWEN_CryptToken_CryptInfo_SetCryptAlgo(GWEN_CRYPTTOKEN_CRYPTINFO *ci,
00060                                             GWEN_CRYPTTOKEN_CRYPTALGO a);
00061 
00062 GWEN_CRYPTTOKEN_PADDALGO
00063   GWEN_CryptToken_CryptInfo_GetPaddAlgo(const GWEN_CRYPTTOKEN_CRYPTINFO *ci);
00064 void GWEN_CryptToken_CryptInfo_SetPaddAlgo(GWEN_CRYPTTOKEN_CRYPTINFO *ci,
00065                                            GWEN_CRYPTTOKEN_PADDALGO a);
00069 #ifdef __cplusplus
00070 }
00071 #endif
00072 
00073 
00074 
00075 #endif /* GWEN_CRYPTTOKEN_CRYPTINFO_H */
00076 
00077 

Generated on Wed Oct 5 15:12:37 2005 for gwenhywfar by  doxygen 1.4.4