#include <gwenhywfar/crypttoken.h>
#include <gwenhywfar/crypttoken_user.h>
Go to the source code of this file.
typedef struct GWEN_CRYPTTOKEN_FILE GWEN_CRYPTTOKEN_FILE |
typedef int(*) GWEN_CRYPTTOKEN_FILE_READ_FN(GWEN_CRYPTTOKEN *ct, int fd) |
typedef int(*) GWEN_CRYPTTOKEN_FILE_WRITE_FN(GWEN_CRYPTTOKEN *ct, int fd, int cre) |
typedef struct GWEN_CT_FILE_CONTEXT GWEN_CT_FILE_CONTEXT |
A crypt token file may contain mutliple user contexts.
Every user context contains the local signature sequence counter, up to 6 keys and a GWEN_CRYPTTOKEN_USER.
The key ids must be chosen according to the following table:
Key id | Description |
---|---|
XXXXXX01 | LocalSignKey |
XXXXXX02 | LocalCryptKey |
XXXXXX03 | RemoteSignKey |
XXXXXX04 | RemoteCryptKey |
XXXXXX05 | LocalAuthKey |
XXXXXX06 | RemoteAuthKey |
This table shows that the lower 8 bits are predefined. The other 24 bits can be freely chosen by the implementation of the plugin.
GWENHYWFAR_API void GWEN_CryptTokenFile_AddFileContext | ( | GWEN_CRYPTTOKEN * | ct, | |
GWEN_CT_FILE_CONTEXT * | fc | |||
) |
GWENHYWFAR_API void GWEN_CryptTokenFile_ClearFileContextList | ( | GWEN_CRYPTTOKEN * | ct | ) |
GWENHYWFAR_API void GWEN_CryptTokenFile_Context_free | ( | GWEN_CT_FILE_CONTEXT * | fc | ) |
GWENHYWFAR_API GWEN_CRYPTKEY* GWEN_CryptTokenFile_Context_GetLocalAuthKey | ( | const GWEN_CT_FILE_CONTEXT * | fc | ) |
GWENHYWFAR_API unsigned int GWEN_CryptTokenFile_Context_GetLocalAuthSeq | ( | const GWEN_CT_FILE_CONTEXT * | fc | ) |
GWENHYWFAR_API GWEN_CRYPTKEY* GWEN_CryptTokenFile_Context_GetLocalCryptKey | ( | const GWEN_CT_FILE_CONTEXT * | fc | ) |
GWENHYWFAR_API GWEN_CRYPTKEY* GWEN_CryptTokenFile_Context_GetLocalSignKey | ( | const GWEN_CT_FILE_CONTEXT * | fc | ) |
GWENHYWFAR_API unsigned int GWEN_CryptTokenFile_Context_GetLocalSignSeq | ( | const GWEN_CT_FILE_CONTEXT * | fc | ) |
GWENHYWFAR_API GWEN_CRYPTKEY* GWEN_CryptTokenFile_Context_GetRemoteAuthKey | ( | const GWEN_CT_FILE_CONTEXT * | fc | ) |
GWENHYWFAR_API GWEN_CRYPTKEY* GWEN_CryptTokenFile_Context_GetRemoteCryptKey | ( | const GWEN_CT_FILE_CONTEXT * | fc | ) |
GWENHYWFAR_API GWEN_CRYPTKEY* GWEN_CryptTokenFile_Context_GetRemoteSignKey | ( | const GWEN_CT_FILE_CONTEXT * | fc | ) |
GWENHYWFAR_API unsigned int GWEN_CryptTokenFile_Context_GetRemoteSignSeq | ( | const GWEN_CT_FILE_CONTEXT * | fc | ) |
GWENHYWFAR_API GWEN_CRYPTTOKEN_USER* GWEN_CryptTokenFile_Context_GetUser | ( | const GWEN_CT_FILE_CONTEXT * | fc | ) |
GWENHYWFAR_API GWENHYWFAR_API GWEN_CT_FILE_CONTEXT* GWEN_CryptTokenFile_Context_new | ( | ) |
GWENHYWFAR_API void GWEN_CryptTokenFile_Context_SetLocalAuthKey | ( | GWEN_CT_FILE_CONTEXT * | fc, | |
GWEN_CRYPTKEY * | key | |||
) |
GWENHYWFAR_API void GWEN_CryptTokenFile_Context_SetLocalAuthSeq | ( | GWEN_CT_FILE_CONTEXT * | fc, | |
unsigned int | i | |||
) |
GWENHYWFAR_API void GWEN_CryptTokenFile_Context_SetLocalCryptKey | ( | GWEN_CT_FILE_CONTEXT * | fc, | |
GWEN_CRYPTKEY * | key | |||
) |
GWENHYWFAR_API void GWEN_CryptTokenFile_Context_SetLocalSignKey | ( | GWEN_CT_FILE_CONTEXT * | fc, | |
GWEN_CRYPTKEY * | key | |||
) |
GWENHYWFAR_API void GWEN_CryptTokenFile_Context_SetLocalSignSeq | ( | GWEN_CT_FILE_CONTEXT * | fc, | |
unsigned int | i | |||
) |
GWENHYWFAR_API void GWEN_CryptTokenFile_Context_SetRemoteAuthKey | ( | GWEN_CT_FILE_CONTEXT * | fc, | |
GWEN_CRYPTKEY * | key | |||
) |
GWENHYWFAR_API void GWEN_CryptTokenFile_Context_SetRemoteCryptKey | ( | GWEN_CT_FILE_CONTEXT * | fc, | |
GWEN_CRYPTKEY * | key | |||
) |
GWENHYWFAR_API void GWEN_CryptTokenFile_Context_SetRemoteSignKey | ( | GWEN_CT_FILE_CONTEXT * | fc, | |
GWEN_CRYPTKEY * | key | |||
) |
GWENHYWFAR_API void GWEN_CryptTokenFile_Context_SetRemoteSignSeq | ( | GWEN_CT_FILE_CONTEXT * | fc, | |
unsigned int | i | |||
) |
GWENHYWFAR_API void GWEN_CryptTokenFile_Context_SetUser | ( | GWEN_CT_FILE_CONTEXT * | fc, | |
GWEN_CRYPTTOKEN_USER * | u | |||
) |
GWENHYWFAR_API GWEN_CT_FILE_CONTEXT_LIST* GWEN_CryptTokenFile_GetFileContextList | ( | GWEN_CRYPTTOKEN * | ct | ) |
GWENHYWFAR_API GWEN_CRYPTTOKEN* GWEN_CryptTokenFile_new | ( | GWEN_PLUGIN_MANAGER * | pm, | |
const char * | typeName, | |||
const char * | subTypeName, | |||
const char * | name | |||
) |
GWENHYWFAR_API void GWEN_CryptTokenFile_SetReadFn | ( | GWEN_CRYPTTOKEN * | ct, | |
GWEN_CRYPTTOKEN_FILE_READ_FN | fn | |||
) |
GWENHYWFAR_API void GWEN_CryptTokenFile_SetWriteFn | ( | GWEN_CRYPTTOKEN * | ct, | |
GWEN_CRYPTTOKEN_FILE_WRITE_FN | fn | |||
) |
GWEN_LIST_FUNCTION_LIB_DEFS | ( | GWEN_CT_FILE_CONTEXT | , | |
GWEN_CryptTokenFile_Context | , | |||
GWENHYWFAR_API | ||||
) |