#include <gwenhywfar/list1.h>
#include <gwenhywfar/list2.h>
#include <gwenhywfar/cryptalgo.h>
Go to the source code of this file.
#define GWEN_CRYPT_TOKEN_KEYFLAGS_ACTIONMASK 0x0000000f |
Definition at line 64 of file ct_keyinfo.h.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().
#define GWEN_CRYPT_TOKEN_KEYFLAGS_CANDECIPHER 0x00000008 |
Definition at line 68 of file ct_keyinfo.h.
Referenced by GWEN_Crypt_TokenFile__GenerateKey().
#define GWEN_CRYPT_TOKEN_KEYFLAGS_CANENCIPHER 0x00000004 |
Definition at line 67 of file ct_keyinfo.h.
Referenced by GWEN_Crypt_TokenFile__GenerateKey().
#define GWEN_CRYPT_TOKEN_KEYFLAGS_CANSIGN 0x00000001 |
Definition at line 65 of file ct_keyinfo.h.
Referenced by GWEN_Crypt_TokenFile__GenerateKey().
#define GWEN_CRYPT_TOKEN_KEYFLAGS_CANVERIFY 0x00000002 |
Definition at line 66 of file ct_keyinfo.h.
Referenced by GWEN_Crypt_TokenFile__GenerateKey().
#define GWEN_CRYPT_TOKEN_KEYFLAGS_HASACTIONFLAGS 0x00080000 |
Definition at line 59 of file ct_keyinfo.h.
Referenced by GWEN_Crypt_TokenFile__GenerateKey(), and GWEN_Crypt_TokenFile__SetKeyInfo().
#define GWEN_CRYPT_TOKEN_KEYFLAGS_HASEXPONENT 0x00040000 |
Definition at line 58 of file ct_keyinfo.h.
#define GWEN_CRYPT_TOKEN_KEYFLAGS_HASKEYNUMBER 0x00400000 |
Definition at line 62 of file ct_keyinfo.h.
#define GWEN_CRYPT_TOKEN_KEYFLAGS_HASKEYVERSION 0x00100000 |
Definition at line 60 of file ct_keyinfo.h.
#define GWEN_CRYPT_TOKEN_KEYFLAGS_HASMODULUS 0x00020000 |
Definition at line 57 of file ct_keyinfo.h.
#define GWEN_CRYPT_TOKEN_KEYFLAGS_HASSIGNCOUNTER 0x00200000 |
Definition at line 61 of file ct_keyinfo.h.
Referenced by GWEN_Crypt_TokenFile__GenerateKey(), GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenFile__Sign(), and GWEN_Crypt_TokenFile__Verify().
#define GWEN_CRYPT_TOKEN_KEYFLAGS_HASSTATUS 0x00010000 |
Definition at line 56 of file ct_keyinfo.h.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().
typedef struct GWEN_CRYPT_TOKEN_KEYINFO GWEN_CRYPT_TOKEN_KEYINFO |
Definition at line 23 of file ct_keyinfo.h.
GWEN_Crypt_Token_KeyStatusUnknown | |
GWEN_Crypt_Token_KeyStatusFree | |
GWEN_Crypt_Token_KeyStatusNew | |
GWEN_Crypt_Token_KeyStatusActive |
Definition at line 42 of file ct_keyinfo.h.
GWENHYWFAR_API void GWEN_Crypt_Token_KeyInfo_AddFlags | ( | GWEN_CRYPT_TOKEN_KEYINFO * | ki, | |
uint32_t | f | |||
) |
Definition at line 153 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__GenerateKey().
GWENHYWFAR_API GWEN_CRYPT_TOKEN_KEYINFO* GWEN_Crypt_Token_KeyInfo_dup | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 71 of file ct_keyinfo.c.
References GWEN_Crypt_Token_KeyInfo_new().
Referenced by GWEN_Crypt_TokenFile__GenerateKey().
GWENHYWFAR_API void GWEN_Crypt_Token_KeyInfo_free | ( | GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 48 of file ct_keyinfo.c.
References GWEN_FREE_OBJECT, and NULL.
Referenced by GWEN_Crypt_TokenFile__GenerateKey(), GWEN_CTF_Context_freeData(), GWEN_CTF_Context_SetLocalAuthKeyInfo(), GWEN_CTF_Context_SetLocalCryptKeyInfo(), GWEN_CTF_Context_SetLocalSignKeyInfo(), GWEN_CTF_Context_SetRemoteAuthKeyInfo(), GWEN_CTF_Context_SetRemoteCryptKeyInfo(), and GWEN_CTF_Context_SetRemoteSignKeyInfo().
GWENHYWFAR_API GWEN_CRYPT_CRYPTALGOID GWEN_Crypt_Token_KeyInfo_GetCryptAlgoId | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 113 of file ct_keyinfo.c.
GWENHYWFAR_API const uint8_t* GWEN_Crypt_Token_KeyInfo_GetExponentData | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 204 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().
GWENHYWFAR_API uint32_t GWEN_Crypt_Token_KeyInfo_GetExponentLen | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 212 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().
GWENHYWFAR_API uint32_t GWEN_Crypt_Token_KeyInfo_GetFlags | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 137 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenFile__Sign(), and GWEN_Crypt_TokenFile__Verify().
GWENHYWFAR_API const char* GWEN_Crypt_Token_KeyInfo_GetKeyDescr | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 296 of file ct_keyinfo.c.
GWENHYWFAR_API uint32_t GWEN_Crypt_Token_KeyInfo_GetKeyId | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 105 of file ct_keyinfo.c.
GWENHYWFAR_API uint32_t GWEN_Crypt_Token_KeyInfo_GetKeyNumber | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 258 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().
GWENHYWFAR_API int GWEN_Crypt_Token_KeyInfo_GetKeySize | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 121 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().
GWENHYWFAR_API uint32_t GWEN_Crypt_Token_KeyInfo_GetKeyVersion | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 239 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().
GWENHYWFAR_API const uint8_t* GWEN_Crypt_Token_KeyInfo_GetModulusData | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 169 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenFile__Sign(), and GWEN_Crypt_TokenFile__Verify().
GWENHYWFAR_API uint32_t GWEN_Crypt_Token_KeyInfo_GetModulusLen | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 177 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenFile__Sign(), and GWEN_Crypt_TokenFile__Verify().
GWENHYWFAR_API uint32_t GWEN_Crypt_Token_KeyInfo_GetSignCounter | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 277 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenFile__Sign(), and GWEN_Crypt_TokenFile__Verify().
GWENHYWFAR_API GWEN_CRYPT_TOKEN_KEYINFO* GWEN_Crypt_Token_KeyInfo_new | ( | uint32_t | kid, | |
GWEN_CRYPT_CRYPTALGOID | a, | |||
int | keySize | |||
) |
Definition at line 30 of file ct_keyinfo.c.
References GWEN_LIST_INIT, and GWEN_NEW_OBJECT.
Referenced by GWEN_Crypt_Token_KeyInfo_dup().
GWENHYWFAR_API void GWEN_Crypt_Token_KeyInfo_SetExponent | ( | GWEN_CRYPT_TOKEN_KEYINFO * | ki, | |
const uint8_t * | p, | |||
uint32_t | len | |||
) |
Definition at line 220 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__GenerateKey(), and GWEN_Crypt_TokenFile__SetKeyInfo().
GWENHYWFAR_API void GWEN_Crypt_Token_KeyInfo_SetFlags | ( | GWEN_CRYPT_TOKEN_KEYINFO * | ki, | |
uint32_t | f | |||
) |
Definition at line 145 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().
GWENHYWFAR_API void GWEN_Crypt_Token_KeyInfo_SetKeyDescr | ( | GWEN_CRYPT_TOKEN_KEYINFO * | ki, | |
const char * | s | |||
) |
Definition at line 305 of file ct_keyinfo.c.
References NULL.
GWENHYWFAR_API void GWEN_Crypt_Token_KeyInfo_SetKeyNumber | ( | GWEN_CRYPT_TOKEN_KEYINFO * | ki, | |
uint32_t | i | |||
) |
Definition at line 267 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__GenerateKey(), and GWEN_Crypt_TokenFile__SetKeyInfo().
GWENHYWFAR_API void GWEN_Crypt_Token_KeyInfo_SetKeySize | ( | GWEN_CRYPT_TOKEN_KEYINFO * | ki, | |
int | i | |||
) |
Definition at line 129 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().
GWENHYWFAR_API void GWEN_Crypt_Token_KeyInfo_SetKeyVersion | ( | GWEN_CRYPT_TOKEN_KEYINFO * | ki, | |
uint32_t | i | |||
) |
Definition at line 248 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__GenerateKey(), and GWEN_Crypt_TokenFile__SetKeyInfo().
GWENHYWFAR_API void GWEN_Crypt_Token_KeyInfo_SetModulus | ( | GWEN_CRYPT_TOKEN_KEYINFO * | ki, | |
const uint8_t * | p, | |||
uint32_t | len | |||
) |
Definition at line 185 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__GenerateKey(), and GWEN_Crypt_TokenFile__SetKeyInfo().
GWENHYWFAR_API void GWEN_Crypt_Token_KeyInfo_SetSignCounter | ( | GWEN_CRYPT_TOKEN_KEYINFO * | ki, | |
uint32_t | i | |||
) |
Definition at line 286 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__GenerateKey(), GWEN_Crypt_TokenFile__SetKeyInfo(), GWEN_Crypt_TokenFile__Sign(), and GWEN_Crypt_TokenFile__Verify().
GWENHYWFAR_API void GWEN_Crypt_Token_KeyInfo_SubFlags | ( | GWEN_CRYPT_TOKEN_KEYINFO * | ki, | |
uint32_t | f | |||
) |
Definition at line 161 of file ct_keyinfo.c.