/usr/include/gwenhywfar4/gwenhywfar/smalltresor.h is in libgwenhywfar60-dev 4.10.0beta-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | /***************************************************************************
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
/**
* This function encrypts the given data using the given password.
* The key for encryption is derived from the given password using
* the function @ref GWEN_MDigest_PKPDF2.
*/
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
|