gwenhywfar 5.12.0
smalltresor.h
Go to the documentation of this file.
1/***************************************************************************
2 begin : Wed May 11 2010
3 copyright : (C) 2010 by Martin Preuss
4 email : martin@libchipcard.de
5
6 ***************************************************************************
7 * Please see toplevel file COPYING for license details *
8 ***************************************************************************/
9
10
11#ifndef GWEN_SMALLTRESOR_H
12#define GWEN_SMALLTRESOR_H
13
14
16#include <gwenhywfar/buffer.h>
17
18
19#ifdef __cplusplus
20extern "C" {
21#endif
22
23
30int GWEN_SmallTresor_Encrypt(const uint8_t *src,
31 uint32_t slen,
32 const char *password,
33 GWEN_BUFFER *dst,
34 int passwordIterations,
35 int cryptIterations);
36
37
39int GWEN_SmallTresor_Decrypt(const uint8_t *p,
40 uint32_t len,
41 const char *password,
42 GWEN_BUFFER *dst,
43 int passwordIterations,
44 int cryptIterations);
45
46
47
48#ifdef __cplusplus
49}
50#endif
51
52
53#endif
54
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
Definition: buffer.h:38
#define GWENHYWFAR_API
Definition: gwenhywfarapi.h:67
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)