#include <gwenhywfar/ct_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_CONTEXT * | GWEN_Crypt_TokenFile_GetContext (GWEN_CRYPT_TOKEN *ct, int idx) |
GWENHYWFAR_API GWEN_CRYPT_TOKEN * | GWEN_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 int GWENHYWFAR_CB(* GWEN_CRYPT_TOKEN_FILE_READ_FN)(GWEN_CRYPT_TOKEN *ct, int fd, uint32_t gid) |
Definition at line 24 of file ctfile_be.h.
typedef int GWENHYWFAR_CB(* GWEN_CRYPT_TOKEN_FILE_WRITE_FN)(GWEN_CRYPT_TOKEN *ct, int fd, int cre, uint32_t gid) |
Definition at line 27 of file ctfile_be.h.
GWENHYWFAR_API void GWEN_Crypt_TokenFile_AddContext | ( | GWEN_CRYPT_TOKEN * | ct, | |
GWEN_CRYPT_TOKEN_CONTEXT * | ctx | |||
) |
Definition at line 364 of file ctfile.c.
References GWEN_Crypt_Token_Context_List_Add(), GWEN_CTF_Context_IsOfThisType(), and GWEN_INHERIT_GETDATA.
GWENHYWFAR_API GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_TokenFile_GetContext | ( | GWEN_CRYPT_TOKEN * | ct, | |
int | idx | |||
) |
Definition at line 378 of file ctfile.c.
References GWEN_Crypt_Token_Context_List_First(), GWEN_Crypt_Token_Context_List_Next(), GWEN_INHERIT_GETDATA, and NULL.
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:
Definition at line 1841 of file ctfile.c.
References GWEN_Crypt_Token_Context_List_new(), GWEN_Crypt_Token_Device_File, GWEN_Crypt_Token_new(), 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__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.
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 | |||
) |