crypthead.h
Go to the documentation of this file.
/***************************************************************************
begin : Mon Dec 01 2008
copyright : (C) 2008 by Martin Preuss
email : martin@libchipcard.de
***************************************************************************
* Please see toplevel file COPYING for license details *
***************************************************************************/
#ifndef GWEN_CRYPTMGR_CRYPTHEAD_H
#define GWEN_CRYPTMGR_CRYPTHEAD_H
#include <gwenhywfar/list1.h>
#include <gwenhywfar/buffer.h>
#ifdef __cplusplus
extern "C" {
#endif
typedef struct GWEN_CRYPTHEAD GWEN_CRYPTHEAD;
GWEN_LIST_FUNCTION_LIB_DEFS(GWEN_CRYPTHEAD, GWEN_CryptHead, GWENHYWFAR_API)
GWENHYWFAR_API
GWEN_CRYPTHEAD *GWEN_CryptHead_new(void);
GWENHYWFAR_API
void GWEN_CryptHead_free(GWEN_CRYPTHEAD *ch);
GWENHYWFAR_API
GWEN_CRYPTHEAD *GWEN_CryptHead_fromBuffer(const uint8_t *p, uint32_t l);
GWENHYWFAR_API
int GWEN_CryptHead_toBuffer(const GWEN_CRYPTHEAD *ch, GWEN_BUFFER *buf, uint8_t tagType);
GWENHYWFAR_API
const char *GWEN_CryptHead_GetKeyName(const GWEN_CRYPTHEAD *ch);
GWENHYWFAR_API
void GWEN_CryptHead_SetKeyName(GWEN_CRYPTHEAD *ch, const char *s);
GWENHYWFAR_API
int GWEN_CryptHead_GetKeyNumber(const GWEN_CRYPTHEAD *ch);
GWENHYWFAR_API
void GWEN_CryptHead_SetKeyNumber(GWEN_CRYPTHEAD *ch, int i);
GWENHYWFAR_API
int GWEN_CryptHead_GetKeyVersion(const GWEN_CRYPTHEAD *ch);
GWENHYWFAR_API
void GWEN_CryptHead_SetKeyVersion(GWEN_CRYPTHEAD *ch, int i);
GWENHYWFAR_API
int GWEN_CryptHead_GetCryptProfile(const GWEN_CRYPTHEAD *ch);
GWENHYWFAR_API
void GWEN_CryptHead_SetCryptProfile(GWEN_CRYPTHEAD *ch, int i);
GWENHYWFAR_API
const uint8_t *GWEN_CryptHead_GetKeyPtr(const GWEN_CRYPTHEAD *ch);
GWENHYWFAR_API
uint32_t GWEN_CryptHead_GetKeyLen(const GWEN_CRYPTHEAD *ch);
GWENHYWFAR_API
void GWEN_CryptHead_SetKey(GWEN_CRYPTHEAD *ch, const uint8_t *p, uint32_t l);
#ifdef __cplusplus
}
#endif
#endif
buffer.h
GWEN_CryptHead_GetKeyNumber
GWENHYWFAR_API int GWEN_CryptHead_GetKeyNumber(const GWEN_CRYPTHEAD *ch)
GWEN_CryptHead_GetKeyName
GWENHYWFAR_API const char * GWEN_CryptHead_GetKeyName(const GWEN_CRYPTHEAD *ch)
GWEN_CryptHead_new
GWENHYWFAR_API GWEN_CRYPTHEAD * GWEN_CryptHead_new(void)
GWEN_CryptHead_GetCryptProfile
GWENHYWFAR_API int GWEN_CryptHead_GetCryptProfile(const GWEN_CRYPTHEAD *ch)
GWEN_CryptHead_fromBuffer
GWENHYWFAR_API GWEN_CRYPTHEAD * GWEN_CryptHead_fromBuffer(const uint8_t *p, uint32_t l)
GWEN_CryptHead_GetKeyVersion
GWENHYWFAR_API int GWEN_CryptHead_GetKeyVersion(const GWEN_CRYPTHEAD *ch)
GWEN_CryptHead_SetKeyName
GWENHYWFAR_API void GWEN_CryptHead_SetKeyName(GWEN_CRYPTHEAD *ch, const char *s)
GWEN_CryptHead_GetKeyLen
GWENHYWFAR_API uint32_t GWEN_CryptHead_GetKeyLen(const GWEN_CRYPTHEAD *ch)
GWEN_CryptHead_free
GWENHYWFAR_API void GWEN_CryptHead_free(GWEN_CRYPTHEAD *ch)
GWEN_CRYPTHEAD
struct GWEN_CRYPTHEAD GWEN_CRYPTHEAD
Definition crypthead.h:23
GWEN_CryptHead_toBuffer
GWENHYWFAR_API int GWEN_CryptHead_toBuffer(const GWEN_CRYPTHEAD *ch, GWEN_BUFFER *buf, uint8_t tagType)
GWEN_CryptHead_SetKeyNumber
GWENHYWFAR_API void GWEN_CryptHead_SetKeyNumber(GWEN_CRYPTHEAD *ch, int i)
GWEN_CryptHead_SetKey
GWENHYWFAR_API void GWEN_CryptHead_SetKey(GWEN_CRYPTHEAD *ch, const uint8_t *p, uint32_t l)
GWEN_CryptHead_SetKeyVersion
GWENHYWFAR_API void GWEN_CryptHead_SetKeyVersion(GWEN_CRYPTHEAD *ch, int i)
GWEN_CryptHead_GetKeyPtr
GWENHYWFAR_API const uint8_t * GWEN_CryptHead_GetKeyPtr(const GWEN_CRYPTHEAD *ch)
GWEN_CryptHead_SetCryptProfile
GWENHYWFAR_API void GWEN_CryptHead_SetCryptProfile(GWEN_CRYPTHEAD *ch, int i)
GWEN_BUFFER
struct GWEN_BUFFER GWEN_BUFFER
A dynamically resizeable text buffer.
Definition buffer.h:38
GWENHYWFAR_API
#define GWENHYWFAR_API
Definition gwenhywfarapi.h:67
list1.h
GWEN_LIST_FUNCTION_LIB_DEFS
#define GWEN_LIST_FUNCTION_LIB_DEFS(t, pr, decl)
Definition list1.h:349