gwenhywfar  5.10.1
Typedefs | Functions
ctfile_be.h File Reference
#include <gwenhywfar/ct_be.h>
Include dependency graph for ctfile_be.h:

Go to the source code of this file.

Typedefs

typedef int GWENHYWFAR_CB(* GWEN_CRYPT_TOKEN_FILE_READ_FN) (GWEN_CRYPT_TOKEN *ct, int fd, uint32_t gid)
 
typedef int GWENHYWFAR_CB(* GWEN_CRYPT_TOKEN_FILE_WRITE_FN) (GWEN_CRYPT_TOKEN *ct, int fd, int cre, uint32_t gid)
 

Functions

GWENHYWFAR_API void GWEN_Crypt_TokenFile_AddContext (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_CONTEXT *ctx)
 
GWENHYWFAR_API GWEN_CRYPT_TOKEN_CONTEXTGWEN_Crypt_TokenFile_GetContext (GWEN_CRYPT_TOKEN *ct, int idx)
 
GWENHYWFAR_API GWEN_CRYPT_TOKENGWEN_Crypt_TokenFile_new (const char *typeName, const char *tokenName)
 
GWENHYWFAR_API GWEN_CRYPT_TOKEN_FILE_READ_FN GWEN_Crypt_TokenFile_SetReadFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_FILE_READ_FN f)
 
GWENHYWFAR_API GWEN_CRYPT_TOKEN_FILE_WRITE_FN GWEN_Crypt_TokenFile_SetWriteFn (GWEN_CRYPT_TOKEN *ct, GWEN_CRYPT_TOKEN_FILE_WRITE_FN f)
 

Typedef Documentation

◆ GWEN_CRYPT_TOKEN_FILE_READ_FN

typedef int GWENHYWFAR_CB(* GWEN_CRYPT_TOKEN_FILE_READ_FN) (GWEN_CRYPT_TOKEN *ct, int fd, uint32_t gid)

Definition at line 21 of file ctfile_be.h.

◆ GWEN_CRYPT_TOKEN_FILE_WRITE_FN

typedef int GWENHYWFAR_CB(* GWEN_CRYPT_TOKEN_FILE_WRITE_FN) (GWEN_CRYPT_TOKEN *ct, int fd, int cre, uint32_t gid)

Definition at line 24 of file ctfile_be.h.

Function Documentation

◆ GWEN_Crypt_TokenFile_AddContext()

GWENHYWFAR_API void GWEN_Crypt_TokenFile_AddContext ( GWEN_CRYPT_TOKEN ct,
GWEN_CRYPT_TOKEN_CONTEXT ctx 
)

Definition at line 378 of file ctfile.c.

References GWEN_Crypt_Token_Context_List_Add(), GWEN_CTF_Context_IsOfThisType(), and GWEN_INHERIT_GETDATA.

Referenced by GWEN_Crypt_TokenOHBCI__Decode(), and GWEN_Crypt_TokenOHBCI_Create().

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

◆ GWEN_Crypt_TokenFile_GetContext()

GWENHYWFAR_API GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_TokenFile_GetContext ( GWEN_CRYPT_TOKEN ct,
int  idx 
)

Definition at line 393 of file ctfile.c.

References GWEN_Crypt_Token_Context_List_First(), GWEN_Crypt_Token_Context_List_Next(), GWEN_INHERIT_GETDATA, and NULL.

Referenced by GWEN_Crypt_TokenOHBCI_Encode().

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

◆ GWEN_Crypt_TokenFile_new()

GWENHYWFAR_API GWEN_CRYPT_TOKEN* GWEN_Crypt_TokenFile_new ( const char *  typeName,
const char *  tokenName 
)

Key ids: The left 16 bits contain the context index, the right 16 bits contain the key number:

  • xx01=localSignKey
  • xx02=localCryptKey
  • xx03=remoteSignKey
  • xx04=remoteCryptKey
  • xx05=localAuthKey
  • xx06=remoteAuthKey
  • xx07=tempLocalSignKey

Definition at line 2216 of file ctfile.c.

References GWEN_Crypt_Token_Context_List_new(), GWEN_Crypt_Token_Device_File, GWEN_Crypt_Token_new(), GWEN_Crypt_Token_SetActivateKeyFn(), GWEN_Crypt_Token_SetCloseFn(), GWEN_Crypt_Token_SetCreateFn(), GWEN_Crypt_Token_SetDecipherFn(), GWEN_Crypt_Token_SetEncipherFn(), GWEN_Crypt_Token_SetGenerateKeyFn(), GWEN_Crypt_Token_SetGetContextFn(), GWEN_Crypt_Token_SetGetContextIdListFn(), GWEN_Crypt_Token_SetGetKeyIdListFn(), GWEN_Crypt_Token_SetGetKeyInfoFn(), GWEN_Crypt_Token_SetOpenFn(), GWEN_Crypt_Token_SetSetContextFn(), GWEN_Crypt_Token_SetSetKeyInfoFn(), GWEN_Crypt_Token_SetSignFn(), GWEN_Crypt_Token_SetVerifyFn(), GWEN_Crypt_TokenFile__ActivateKey(), GWEN_Crypt_TokenFile__Decipher(), GWEN_Crypt_TokenFile__Encipher(), GWEN_Crypt_TokenFile__GenerateKey(), GWEN_Crypt_TokenFile__GetContext(), GWEN_Crypt_TokenFile__GetContextIdList(), GWEN_Crypt_TokenFile__GetKeyIdList(), GWEN_Crypt_TokenFile__GetKeyInfo(), GWEN_Crypt_TokenFile__SetContext(), GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenFile__Sign(), GWEN_Crypt_TokenFile__Verify(), GWEN_Crypt_TokenFile_Close(), GWEN_Crypt_TokenFile_Create(), GWEN_Crypt_TokenFile_freeData(), GWEN_Crypt_TokenFile_Open(), GWEN_INHERIT_SETDATA, and GWEN_NEW_OBJECT.

Referenced by GWEN_Crypt_TokenOHBCI_new().

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

◆ GWEN_Crypt_TokenFile_SetReadFn()

Definition at line 415 of file ctfile.c.

References GWEN_INHERIT_GETDATA.

Referenced by GWEN_Crypt_TokenOHBCI_new().

Here is the caller graph for this function:

◆ GWEN_Crypt_TokenFile_SetWriteFn()

Definition at line 433 of file ctfile.c.

References GWEN_INHERIT_GETDATA.

Referenced by GWEN_Crypt_TokenOHBCI_new().

Here is the caller graph for this function: