gwenhywfar 4.0.3
|
00001 /*************************************************************************** 00002 begin : Wed May 11 2010 00003 copyright : (C) 2010 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_SMALLTRESOR_H 00012 #define GWEN_SMALLTRESOR_H 00013 00014 00015 #include <gwenhywfar/gwenhywfarapi.h> 00016 #include <gwenhywfar/buffer.h> 00017 00018 00019 #ifdef __cplusplus 00020 extern "C" { 00021 #endif 00022 00023 00029 GWENHYWFAR_API 00030 int GWEN_SmallTresor_Encrypt(const uint8_t *src, 00031 uint32_t slen, 00032 const char *password, 00033 GWEN_BUFFER *dst, 00034 int passwordIterations, 00035 int cryptIterations); 00036 00037 00038 GWENHYWFAR_API 00039 int GWEN_SmallTresor_Decrypt(const uint8_t *p, 00040 uint32_t len, 00041 const char *password, 00042 GWEN_BUFFER *dst, 00043 int passwordIterations, 00044 int cryptIterations); 00045 00046 00047 00048 #ifdef __cplusplus 00049 } 00050 #endif 00051 00052 00053 #endif 00054