smalltresor.h
Go to the documentation of this file.
/***************************************************************************
begin : Wed May 11 2010
copyright : (C) 2010 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifndef GWEN_SMALLTRESOR_H
#define GWEN_SMALLTRESOR_H
#include <gwenhywfar/gwenhywfarapi.h>
#include <gwenhywfar/buffer.h>
#ifdef __cplusplus
extern "C" {
#endif
GWENHYWFAR_API
int GWEN_SmallTresor_Encrypt(const uint8_t *src,
uint32_t slen,
const char *password,
GWEN_BUFFER *dst,
int passwordIterations,
int cryptIterations);
GWENHYWFAR_API
int GWEN_SmallTresor_Decrypt(const uint8_t *p,
uint32_t len,
const char *password,
GWEN_BUFFER *dst,
int passwordIterations,
int cryptIterations);
#ifdef __cplusplus
}
#endif
#endif
buffer.h
GWEN_BUFFER
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
Definition buffer.h:38
gwenhywfarapi.h
GWENHYWFAR_API
#define GWENHYWFAR_API
Definition gwenhywfarapi.h:67
GWEN_SmallTresor_Encrypt
GWENHYWFAR_API int GWEN_SmallTresor_Encrypt(const uint8_t *src, uint32_t slen, const char *password, GWEN_BUFFER *dst, int passwordIterations, int cryptIterations)
GWEN_SmallTresor_Decrypt
GWENHYWFAR_API int GWEN_SmallTresor_Decrypt(const uint8_t *p, uint32_t len, const char *password, GWEN_BUFFER *dst, int passwordIterations, int cryptIterations)