gwenhywfar  5.10.1
Macros | Functions
ct.c File Reference
#include "ct_p.h"
#include "i18n_l.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
#include <gwenhywfar/gui.h>
Include dependency graph for ct.c:

Go to the source code of this file.

Macros

#define DISABLE_DEBUGLOG
 

Functions

int GWEN_Crypt_Token__CreatePasswordName (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_PINTYPE pt, GWEN_BUFFER *nbuf)
 
int GWEN_Crypt_Token_ActivateKey (GWEN_CRYPT_TOKEN *ct, uint32_t id, uint32_t gid)
 
void GWEN_Crypt_Token_AddFlags (GWEN_CRYPT_TOKEN *ct, uint32_t f)
 
void GWEN_Crypt_Token_AddModes (GWEN_CRYPT_TOKEN *ct, uint32_t f)
 
uint32_t GWEN_Crypt_Token_BeginEnterPin (GWEN_UNUSED GWEN_CRYPT_TOKEN *ct, GWEN_UNUSED GWEN_CRYPT_PINTYPE pt, uint32_t gid)
 
int GWEN_Crypt_Token_ChangePin (GWEN_CRYPT_TOKEN *ct, int admin, uint32_t gid)
 
int GWEN_Crypt_Token_Close (GWEN_CRYPT_TOKEN *ct, int abandon, uint32_t gid)
 
int GWEN_Crypt_Token_Create (GWEN_CRYPT_TOKEN *ct, uint32_t gid)
 
int GWEN_Crypt_Token_Decipher (GWEN_CRYPT_TOKEN *ct, uint32_t keyId, GWEN_CRYPT_PADDALGO *a, const uint8_t *pInData, uint32_t inLen, uint8_t *pOutData, uint32_t *pOutLen, uint32_t gid)
 
GWEN_CRYPT_TOKEN_DEVICE GWEN_Crypt_Token_Device_fromString (const char *s)
 
const char * GWEN_Crypt_Token_Device_toString (GWEN_CRYPT_TOKEN_DEVICE d)
 
int GWEN_Crypt_Token_Encipher (GWEN_CRYPT_TOKEN *ct, uint32_t keyId, GWEN_CRYPT_PADDALGO *a, const uint8_t *pInData, uint32_t inLen, uint8_t *pOutData, uint32_t *pOutLen, uint32_t gid)
 
int GWEN_Crypt_Token_EndEnterPin (GWEN_UNUSED GWEN_CRYPT_TOKEN *ct, GWEN_UNUSED GWEN_CRYPT_PINTYPE pt, GWEN_UNUSED int ok, uint32_t gid)
 
void GWEN_Crypt_Token_free (GWEN_CRYPT_TOKEN *ct)
 
int GWEN_Crypt_Token_GenerateKey (GWEN_CRYPT_TOKEN *ct, uint32_t keyId, const GWEN_CRYPT_CRYPTALGO *a, uint32_t gid)
 
const GWEN_CRYPT_TOKEN_CONTEXTGWEN_Crypt_Token_GetContext (GWEN_CRYPT_TOKEN *ct, uint32_t id, uint32_t gid)
 
int GWEN_Crypt_Token_GetContextIdList (GWEN_CRYPT_TOKEN *ct, uint32_t *pIdList, uint32_t *pCount, uint32_t gid)
 
GWEN_CRYPT_TOKEN_DEVICE GWEN_Crypt_Token_GetDevice (const GWEN_CRYPT_TOKEN *ct)
 
uint32_t GWEN_Crypt_Token_GetFlags (const GWEN_CRYPT_TOKEN *ct)
 
const char * GWEN_Crypt_Token_GetFriendlyName (const GWEN_CRYPT_TOKEN *ct)
 
int GWEN_Crypt_Token_GetKeyIdList (GWEN_CRYPT_TOKEN *ct, uint32_t *pIdList, uint32_t *pCount, uint32_t gid)
 
const GWEN_CRYPT_TOKEN_KEYINFOGWEN_Crypt_Token_GetKeyInfo (GWEN_CRYPT_TOKEN *ct, uint32_t id, uint32_t flags, uint32_t gid)
 
uint32_t GWEN_Crypt_Token_GetModes (const GWEN_CRYPT_TOKEN *ct)
 
int GWEN_Crypt_Token_GetPin (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_PINTYPE pt, GWEN_CRYPT_PINENCODING pe, uint32_t flags, unsigned char *pwbuffer, unsigned int minLength, unsigned int maxLength, unsigned int *pinLength, uint32_t gid)
 
const char * GWEN_Crypt_Token_GetTokenName (const GWEN_CRYPT_TOKEN *ct)
 
const char * GWEN_Crypt_Token_GetTypeName (const GWEN_CRYPT_TOKEN *ct)
 
int GWEN_Crypt_Token_InsertCorrectToken (GWEN_CRYPT_TOKEN *ct, uint32_t gid)
 
int GWEN_Crypt_Token_InsertToken (GWEN_CRYPT_TOKEN *ct, uint32_t gid)
 
int GWEN_Crypt_Token_IsOpen (const GWEN_CRYPT_TOKEN *ct)
 
GWEN_CRYPT_TOKENGWEN_Crypt_Token_new (GWEN_CRYPT_TOKEN_DEVICE dev, const char *typeName, const char *tokenName)
 
int GWEN_Crypt_Token_Open (GWEN_CRYPT_TOKEN *ct, int admin, uint32_t gid)
 
GWEN_CRYPT_TOKEN_ACTIVATEKEY_FN GWEN_Crypt_Token_SetActivateKeyFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_ACTIVATEKEY_FN f)
 
GWEN_CRYPT_TOKEN_CHANGEPIN_FN GWEN_Crypt_Token_SetChangePinFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_CHANGEPIN_FN f)
 
GWEN_CRYPT_TOKEN_CLOSE_FN GWEN_Crypt_Token_SetCloseFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_CLOSE_FN f)
 
int GWEN_Crypt_Token_SetContext (GWEN_CRYPT_TOKEN *ct, uint32_t id, const GWEN_CRYPT_TOKEN_CONTEXT *ctx, uint32_t gid)
 
GWEN_CRYPT_TOKEN_CREATE_FN GWEN_Crypt_Token_SetCreateFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_CREATE_FN f)
 
GWEN_CRYPT_TOKEN_DECIPHER_FN GWEN_Crypt_Token_SetDecipherFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_DECIPHER_FN f)
 
GWEN_CRYPT_TOKEN_ENCIPHER_FN GWEN_Crypt_Token_SetEncipherFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_ENCIPHER_FN f)
 
void GWEN_Crypt_Token_SetFlags (GWEN_CRYPT_TOKEN *ct, uint32_t f)
 
void GWEN_Crypt_Token_SetFriendlyName (GWEN_CRYPT_TOKEN *ct, const char *s)
 
GWEN_CRYPT_TOKEN_GENERATEKEY_FN GWEN_Crypt_Token_SetGenerateKeyFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_GENERATEKEY_FN f)
 
GWEN_CRYPT_TOKEN_GETCONTEXT_FN GWEN_Crypt_Token_SetGetContextFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_GETCONTEXT_FN f)
 
GWEN_CRYPT_TOKEN_GETCONTEXTIDLIST_FN GWEN_Crypt_Token_SetGetContextIdListFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_GETCONTEXTIDLIST_FN f)
 
GWEN_CRYPT_TOKEN_GETKEYIDLIST_FN GWEN_Crypt_Token_SetGetKeyIdListFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_GETKEYIDLIST_FN f)
 
GWEN_CRYPT_TOKEN_GETKEYINFO_FN GWEN_Crypt_Token_SetGetKeyInfoFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_GETKEYINFO_FN f)
 
int GWEN_Crypt_Token_SetKeyInfo (GWEN_CRYPT_TOKEN *ct, uint32_t id, const GWEN_CRYPT_TOKEN_KEYINFO *ki, uint32_t gid)
 
void GWEN_Crypt_Token_SetModes (GWEN_CRYPT_TOKEN *ct, uint32_t f)
 
GWEN_CRYPT_TOKEN_OPEN_FN GWEN_Crypt_Token_SetOpenFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_OPEN_FN f)
 
int GWEN_Crypt_Token_SetPinStatus (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_PINTYPE pt, GWEN_CRYPT_PINENCODING pe, GWEN_UNUSED uint32_t flags, const unsigned char *buffer, unsigned int pinLength, int isOk, uint32_t gid)
 
GWEN_CRYPT_TOKEN_SETCONTEXT_FN GWEN_Crypt_Token_SetSetContextFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_SETCONTEXT_FN f)
 
GWEN_CRYPT_TOKEN_SETKEYINFO_FN GWEN_Crypt_Token_SetSetKeyInfoFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_SETKEYINFO_FN f)
 
GWEN_CRYPT_TOKEN_SIGN_FN GWEN_Crypt_Token_SetSignFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_SIGN_FN f)
 
void GWEN_Crypt_Token_SetTokenName (GWEN_CRYPT_TOKEN *ct, const char *s)
 
GWEN_CRYPT_TOKEN_VERIFY_FN GWEN_Crypt_Token_SetVerifyFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_VERIFY_FN f)
 
int GWEN_Crypt_Token_Sign (GWEN_CRYPT_TOKEN *ct, uint32_t keyId, GWEN_CRYPT_PADDALGO *a, const uint8_t *pInData, uint32_t inLen, uint8_t *pSignatureData, uint32_t *pSignatureLen, uint32_t *pSeqCounter, uint32_t gid)
 
void GWEN_Crypt_Token_SubFlags (GWEN_CRYPT_TOKEN *ct, uint32_t f)
 
void GWEN_Crypt_Token_SubModes (GWEN_CRYPT_TOKEN *ct, uint32_t f)
 
int GWEN_Crypt_Token_Verify (GWEN_CRYPT_TOKEN *ct, uint32_t keyId, GWEN_CRYPT_PADDALGO *a, const uint8_t *pInData, uint32_t inLen, const uint8_t *pSignatureData, uint32_t signatureLen, uint32_t seqCounter, uint32_t gid)
 

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 14 of file ct.c.

Function Documentation

◆ GWEN_Crypt_Token__CreatePasswordName()

int GWEN_Crypt_Token__CreatePasswordName ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_PINTYPE  pt,
GWEN_BUFFER nbuf 
)

Definition at line 812 of file ct.c.

References DBG_ERROR, GWEN_Buffer_AppendString(), GWEN_Crypt_PinType_Manage, GWEN_Crypt_Token_GetTokenName(), GWEN_Crypt_Token_GetTypeName(), GWEN_ERROR_INVALID, and GWEN_LOGDOMAIN.

Referenced by GWEN_Crypt_Token_GetPin(), and GWEN_Crypt_Token_SetPinStatus().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_Crypt_Token_ActivateKey()

int GWEN_Crypt_Token_ActivateKey ( GWEN_CRYPT_TOKEN ct,
uint32_t  id,
uint32_t  gid 
)

Definition at line 550 of file ct.c.

References GWEN_ERROR_NOT_IMPLEMENTED, and GWEN_ERROR_NOT_OPEN.

Referenced by activateKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_AddFlags()

void GWEN_Crypt_Token_AddFlags ( GWEN_CRYPT_TOKEN ct,
uint32_t  f 
)

Definition at line 162 of file ct.c.

◆ GWEN_Crypt_Token_AddModes()

void GWEN_Crypt_Token_AddModes ( GWEN_CRYPT_TOKEN ct,
uint32_t  f 
)

Definition at line 202 of file ct.c.

Referenced by activateKey(), changePin(), cryptWithNew(), genKey(), setKey(), setSignSeq(), showKey(), showUser(), signWithNew(), and updateToken().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_BeginEnterPin()

uint32_t GWEN_Crypt_Token_BeginEnterPin ( GWEN_UNUSED GWEN_CRYPT_TOKEN ct,
GWEN_UNUSED GWEN_CRYPT_PINTYPE  pt,
uint32_t  gid 
)

Definition at line 994 of file ct.c.

References GWEN_Gui_ProgressLog(), GWEN_LoggerLevel_Warning, and I18N.

Here is the call graph for this function:

◆ GWEN_Crypt_Token_ChangePin()

int GWEN_Crypt_Token_ChangePin ( GWEN_CRYPT_TOKEN ct,
int  admin,
uint32_t  gid 
)

Definition at line 534 of file ct.c.

References GWEN_ERROR_NOT_IMPLEMENTED, and GWEN_ERROR_NOT_OPEN.

Referenced by changePin().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_Close()

int GWEN_Crypt_Token_Close ( GWEN_CRYPT_TOKEN ct,
int  abandon,
uint32_t  gid 
)

Definition at line 265 of file ct.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by activateKey(), changePin(), createToken(), cryptWithNew(), genKey(), setKey(), setSignSeq(), showKey(), showUser(), signWithNew(), and updateToken().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_Create()

int GWEN_Crypt_Token_Create ( GWEN_CRYPT_TOKEN ct,
uint32_t  gid 
)

Definition at line 246 of file ct.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by createToken().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_Decipher()

int GWEN_Crypt_Token_Decipher ( GWEN_CRYPT_TOKEN ct,
uint32_t  keyId,
GWEN_CRYPT_PADDALGO a,
const uint8_t *  pInData,
uint32_t  inLen,
uint8_t *  pOutData,
uint32_t *  pOutLen,
uint32_t  gid 
)

Definition at line 491 of file ct.c.

References GWEN_ERROR_NOT_IMPLEMENTED, and GWEN_ERROR_NOT_OPEN.

Referenced by cryptWithNew().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_Device_fromString()

GWEN_CRYPT_TOKEN_DEVICE GWEN_Crypt_Token_Device_fromString ( const char *  s)

◆ GWEN_Crypt_Token_Device_toString()

const char* GWEN_Crypt_Token_Device_toString ( GWEN_CRYPT_TOKEN_DEVICE  d)

Definition at line 1162 of file ct.c.

References GWEN_Crypt_Token_Device_Any, GWEN_Crypt_Token_Device_Card, GWEN_Crypt_Token_Device_File, and GWEN_Crypt_Token_Device_None.

Referenced by GWEN_Crypt_Token_PluginManager_GetPluginDescrs().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_Encipher()

int GWEN_Crypt_Token_Encipher ( GWEN_CRYPT_TOKEN ct,
uint32_t  keyId,
GWEN_CRYPT_PADDALGO a,
const uint8_t *  pInData,
uint32_t  inLen,
uint8_t *  pOutData,
uint32_t *  pOutLen,
uint32_t  gid 
)

Definition at line 468 of file ct.c.

References GWEN_ERROR_NOT_IMPLEMENTED, and GWEN_ERROR_NOT_OPEN.

Referenced by cryptWithNew().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_EndEnterPin()

int GWEN_Crypt_Token_EndEnterPin ( GWEN_UNUSED GWEN_CRYPT_TOKEN ct,
GWEN_UNUSED GWEN_CRYPT_PINTYPE  pt,
GWEN_UNUSED int  ok,
uint32_t  gid 
)

Definition at line 1008 of file ct.c.

References GWEN_Gui_ProgressLog(), GWEN_LoggerLevel_Warning, and I18N.

Here is the call graph for this function:

◆ GWEN_Crypt_Token_free()

void GWEN_Crypt_Token_free ( GWEN_CRYPT_TOKEN ct)

Definition at line 56 of file ct.c.

References GWEN_FREE_OBJECT, GWEN_INHERIT_FINI, and GWEN_LIST_FINI.

◆ GWEN_Crypt_Token_GenerateKey()

int GWEN_Crypt_Token_GenerateKey ( GWEN_CRYPT_TOKEN ct,
uint32_t  keyId,
const GWEN_CRYPT_CRYPTALGO a,
uint32_t  gid 
)

Definition at line 515 of file ct.c.

References GWEN_ERROR_NOT_IMPLEMENTED, and GWEN_ERROR_NOT_OPEN.

Referenced by genKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_GetContext()

const GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_Token_GetContext ( GWEN_CRYPT_TOKEN ct,
uint32_t  id,
uint32_t  gid 
)

Definition at line 379 of file ct.c.

References DBG_INFO, GWEN_LOGDOMAIN, and NULL.

Referenced by showUser().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_GetContextIdList()

int GWEN_Crypt_Token_GetContextIdList ( GWEN_CRYPT_TOKEN ct,
uint32_t *  pIdList,
uint32_t *  pCount,
uint32_t  gid 
)

Definition at line 360 of file ct.c.

References GWEN_ERROR_NOT_IMPLEMENTED, and GWEN_ERROR_NOT_OPEN.

Referenced by showUser().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_GetDevice()

GWEN_CRYPT_TOKEN_DEVICE GWEN_Crypt_Token_GetDevice ( const GWEN_CRYPT_TOKEN ct)

Definition at line 76 of file ct.c.

Referenced by GWEN_Crypt_Token_InsertCorrectToken(), and GWEN_Crypt_Token_InsertToken().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_GetFlags()

uint32_t GWEN_Crypt_Token_GetFlags ( const GWEN_CRYPT_TOKEN ct)

Definition at line 142 of file ct.c.

◆ GWEN_Crypt_Token_GetFriendlyName()

const char* GWEN_Crypt_Token_GetFriendlyName ( const GWEN_CRYPT_TOKEN ct)

Definition at line 119 of file ct.c.

Referenced by GWEN_Crypt_Token_GetPin(), GWEN_Crypt_Token_InsertCorrectToken(), and GWEN_Crypt_Token_InsertToken().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_GetKeyIdList()

int GWEN_Crypt_Token_GetKeyIdList ( GWEN_CRYPT_TOKEN ct,
uint32_t *  pIdList,
uint32_t *  pCount,
uint32_t  gid 
)

Definition at line 301 of file ct.c.

References GWEN_ERROR_NOT_IMPLEMENTED, and GWEN_ERROR_NOT_OPEN.

Referenced by showKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_GetKeyInfo()

const GWEN_CRYPT_TOKEN_KEYINFO* GWEN_Crypt_Token_GetKeyInfo ( GWEN_CRYPT_TOKEN ct,
uint32_t  id,
uint32_t  flags,
uint32_t  gid 
)

Definition at line 320 of file ct.c.

References DBG_INFO, GWEN_LOGDOMAIN, and NULL.

Referenced by setKey(), setSignSeq(), and showKey().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_GetModes()

uint32_t GWEN_Crypt_Token_GetModes ( const GWEN_CRYPT_TOKEN ct)

Definition at line 182 of file ct.c.

Referenced by GWEN_Crypt_TokenFile__ActivateKey(), GWEN_Crypt_TokenFile__GenerateKey(), GWEN_Crypt_TokenOHBCI__Decode(), and GWEN_Crypt_TokenOHBCI_Write().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_GetPin()

int GWEN_Crypt_Token_GetPin ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_PINTYPE  pt,
GWEN_CRYPT_PINENCODING  pe,
uint32_t  flags,
unsigned char *  pwbuffer,
unsigned int  minLength,
unsigned int  maxLength,
unsigned int *  pinLength,
uint32_t  gid 
)

◆ GWEN_Crypt_Token_GetTokenName()

const char* GWEN_Crypt_Token_GetTokenName ( const GWEN_CRYPT_TOKEN ct)

◆ GWEN_Crypt_Token_GetTypeName()

const char* GWEN_Crypt_Token_GetTypeName ( const GWEN_CRYPT_TOKEN ct)

Definition at line 86 of file ct.c.

Referenced by GWEN_Crypt_Token__CreatePasswordName(), and GWEN_Crypt_TokenFile__Write().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_InsertCorrectToken()

int GWEN_Crypt_Token_InsertCorrectToken ( GWEN_CRYPT_TOKEN ct,
uint32_t  gid 
)

◆ GWEN_Crypt_Token_InsertToken()

int GWEN_Crypt_Token_InsertToken ( GWEN_CRYPT_TOKEN ct,
uint32_t  gid 
)

◆ GWEN_Crypt_Token_IsOpen()

int GWEN_Crypt_Token_IsOpen ( const GWEN_CRYPT_TOKEN ct)

Definition at line 291 of file ct.c.

◆ GWEN_Crypt_Token_new()

GWEN_CRYPT_TOKEN* GWEN_Crypt_Token_new ( GWEN_CRYPT_TOKEN_DEVICE  dev,
const char *  typeName,
const char *  tokenName 
)

Definition at line 33 of file ct.c.

References GWEN_INHERIT_INIT, GWEN_LIST_INIT, and GWEN_NEW_OBJECT.

Referenced by GWEN_Crypt_TokenFile_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_Open()

int GWEN_Crypt_Token_Open ( GWEN_CRYPT_TOKEN ct,
int  admin,
uint32_t  gid 
)

Definition at line 222 of file ct.c.

References GWEN_ERROR_NOT_IMPLEMENTED.

Referenced by activateKey(), changePin(), cryptWithNew(), genKey(), setKey(), setSignSeq(), showKey(), showUser(), signWithNew(), and updateToken().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetActivateKeyFn()

GWEN_CRYPT_TOKEN_ACTIVATEKEY_FN GWEN_Crypt_Token_SetActivateKeyFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_ACTIVATEKEY_FN  f 
)

Definition at line 795 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetChangePinFn()

GWEN_CRYPT_TOKEN_CHANGEPIN_FN GWEN_Crypt_Token_SetChangePinFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_CHANGEPIN_FN  f 
)

Definition at line 780 of file ct.c.

Referenced by GWEN_Crypt_TokenOHBCI_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetCloseFn()

GWEN_CRYPT_TOKEN_CLOSE_FN GWEN_Crypt_Token_SetCloseFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_CLOSE_FN  f 
)

Definition at line 600 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new(), and GWEN_Crypt_TokenOHBCI_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetContext()

int GWEN_Crypt_Token_SetContext ( GWEN_CRYPT_TOKEN ct,
uint32_t  id,
const GWEN_CRYPT_TOKEN_CONTEXT ctx,
uint32_t  gid 
)

Definition at line 399 of file ct.c.

References GWEN_ERROR_NOT_IMPLEMENTED, and GWEN_ERROR_NOT_OPEN.

◆ GWEN_Crypt_Token_SetCreateFn()

GWEN_CRYPT_TOKEN_CREATE_FN GWEN_Crypt_Token_SetCreateFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_CREATE_FN  f 
)

Definition at line 584 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new(), and GWEN_Crypt_TokenOHBCI_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetDecipherFn()

GWEN_CRYPT_TOKEN_DECIPHER_FN GWEN_Crypt_Token_SetDecipherFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_DECIPHER_FN  f 
)

Definition at line 750 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetEncipherFn()

GWEN_CRYPT_TOKEN_ENCIPHER_FN GWEN_Crypt_Token_SetEncipherFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_ENCIPHER_FN  f 
)

Definition at line 735 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetFlags()

void GWEN_Crypt_Token_SetFlags ( GWEN_CRYPT_TOKEN ct,
uint32_t  f 
)

Definition at line 152 of file ct.c.

◆ GWEN_Crypt_Token_SetFriendlyName()

void GWEN_Crypt_Token_SetFriendlyName ( GWEN_CRYPT_TOKEN ct,
const char *  s 
)

Definition at line 129 of file ct.c.

◆ GWEN_Crypt_Token_SetGenerateKeyFn()

GWEN_CRYPT_TOKEN_GENERATEKEY_FN GWEN_Crypt_Token_SetGenerateKeyFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_GENERATEKEY_FN  f 
)

Definition at line 765 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetGetContextFn()

GWEN_CRYPT_TOKEN_GETCONTEXT_FN GWEN_Crypt_Token_SetGetContextFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_GETCONTEXT_FN  f 
)

Definition at line 675 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetGetContextIdListFn()

GWEN_CRYPT_TOKEN_GETCONTEXTIDLIST_FN GWEN_Crypt_Token_SetGetContextIdListFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_GETCONTEXTIDLIST_FN  f 
)

Definition at line 660 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetGetKeyIdListFn()

GWEN_CRYPT_TOKEN_GETKEYIDLIST_FN GWEN_Crypt_Token_SetGetKeyIdListFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_GETKEYIDLIST_FN  f 
)

Definition at line 615 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetGetKeyInfoFn()

GWEN_CRYPT_TOKEN_GETKEYINFO_FN GWEN_Crypt_Token_SetGetKeyInfoFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_GETKEYINFO_FN  f 
)

Definition at line 630 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetKeyInfo()

int GWEN_Crypt_Token_SetKeyInfo ( GWEN_CRYPT_TOKEN ct,
uint32_t  id,
const GWEN_CRYPT_TOKEN_KEYINFO ki,
uint32_t  gid 
)

Definition at line 341 of file ct.c.

References GWEN_ERROR_NOT_IMPLEMENTED, and GWEN_ERROR_NOT_OPEN.

Referenced by setKey(), and setSignSeq().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetModes()

void GWEN_Crypt_Token_SetModes ( GWEN_CRYPT_TOKEN ct,
uint32_t  f 
)

Definition at line 192 of file ct.c.

◆ GWEN_Crypt_Token_SetOpenFn()

GWEN_CRYPT_TOKEN_OPEN_FN GWEN_Crypt_Token_SetOpenFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_OPEN_FN  f 
)

Definition at line 569 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new(), and GWEN_Crypt_TokenOHBCI_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetPinStatus()

int GWEN_Crypt_Token_SetPinStatus ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_PINTYPE  pt,
GWEN_CRYPT_PINENCODING  pe,
GWEN_UNUSED uint32_t  flags,
const unsigned char *  buffer,
unsigned int  pinLength,
int  isOk,
uint32_t  gid 
)

◆ GWEN_Crypt_Token_SetSetContextFn()

GWEN_CRYPT_TOKEN_SETCONTEXT_FN GWEN_Crypt_Token_SetSetContextFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_SETCONTEXT_FN  f 
)

Definition at line 690 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetSetKeyInfoFn()

GWEN_CRYPT_TOKEN_SETKEYINFO_FN GWEN_Crypt_Token_SetSetKeyInfoFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_SETKEYINFO_FN  f 
)

Definition at line 645 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetSignFn()

GWEN_CRYPT_TOKEN_SIGN_FN GWEN_Crypt_Token_SetSignFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_SIGN_FN  f 
)

Definition at line 705 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SetTokenName()

void GWEN_Crypt_Token_SetTokenName ( GWEN_CRYPT_TOKEN ct,
const char *  s 
)

Definition at line 106 of file ct.c.

◆ GWEN_Crypt_Token_SetVerifyFn()

GWEN_CRYPT_TOKEN_VERIFY_FN GWEN_Crypt_Token_SetVerifyFn ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_VERIFY_FN  f 
)

Definition at line 720 of file ct.c.

Referenced by GWEN_Crypt_TokenFile_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_Sign()

int GWEN_Crypt_Token_Sign ( GWEN_CRYPT_TOKEN ct,
uint32_t  keyId,
GWEN_CRYPT_PADDALGO a,
const uint8_t *  pInData,
uint32_t  inLen,
uint8_t *  pSignatureData,
uint32_t *  pSignatureLen,
uint32_t *  pSeqCounter,
uint32_t  gid 
)

Definition at line 418 of file ct.c.

References GWEN_ERROR_NOT_IMPLEMENTED, and GWEN_ERROR_NOT_OPEN.

Referenced by signWithNew().

Here is the caller graph for this function:

◆ GWEN_Crypt_Token_SubFlags()

void GWEN_Crypt_Token_SubFlags ( GWEN_CRYPT_TOKEN ct,
uint32_t  f 
)

Definition at line 172 of file ct.c.

◆ GWEN_Crypt_Token_SubModes()

void GWEN_Crypt_Token_SubModes ( GWEN_CRYPT_TOKEN ct,
uint32_t  f 
)

Definition at line 212 of file ct.c.

◆ GWEN_Crypt_Token_Verify()

int GWEN_Crypt_Token_Verify ( GWEN_CRYPT_TOKEN ct,
uint32_t  keyId,
GWEN_CRYPT_PADDALGO a,
const uint8_t *  pInData,
uint32_t  inLen,
const uint8_t *  pSignatureData,
uint32_t  signatureLen,
uint32_t  seqCounter,
uint32_t  gid 
)

Definition at line 443 of file ct.c.

References GWEN_ERROR_NOT_IMPLEMENTED, and GWEN_ERROR_NOT_OPEN.

Referenced by signWithNew().

Here is the caller graph for this function: