gwenhywfar
4.3.3
|
#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__ActivateKey(), and 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__ActivateKey(), and 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__ActivateKey(), 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.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().
#define GWEN_CRYPT_TOKEN_KEYFLAGS_HASKEYNUMBER 0x00400000 |
Definition at line 62 of file ct_keyinfo.h.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().
#define GWEN_CRYPT_TOKEN_KEYFLAGS_HASKEYVERSION 0x00100000 |
Definition at line 60 of file ct_keyinfo.h.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().
#define GWEN_CRYPT_TOKEN_KEYFLAGS_HASMODULUS 0x00020000 |
Definition at line 57 of file ct_keyinfo.h.
Referenced by GWEN_Crypt_TokenFile__SetKeyInfo().
#define GWEN_CRYPT_TOKEN_KEYFLAGS_HASSIGNCOUNTER 0x00200000 |
Definition at line 61 of file ct_keyinfo.h.
Referenced by GWEN_Crypt_TokenFile__ActivateKey(), 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 152 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__ActivateKey(), and GWEN_Crypt_TokenFile__GenerateKey().
GWENHYWFAR_API GWEN_CRYPT_TOKEN_KEYINFO* GWEN_Crypt_Token_KeyInfo_dup | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 70 of file ct_keyinfo.c.
References GWEN_Crypt_Token_KeyInfo_new().
Referenced by GWEN_Crypt_TokenFile__ActivateKey(), and GWEN_Crypt_TokenFile__GenerateKey().
Definition at line 47 of file ct_keyinfo.c.
References GWEN_FREE_OBJECT, and NULL.
Referenced by GWEN_Crypt_TokenFile__ActivateKey(), 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(), GWEN_CTF_Context_SetRemoteSignKeyInfo(), and GWEN_CTF_Context_SetTempLocalSignKeyInfo().
GWENHYWFAR_API GWEN_CRYPT_CRYPTALGOID GWEN_Crypt_Token_KeyInfo_GetCryptAlgoId | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 112 of file ct_keyinfo.c.
GWENHYWFAR_API const uint8_t* GWEN_Crypt_Token_KeyInfo_GetExponentData | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 203 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 211 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 136 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 295 of file ct_keyinfo.c.
GWENHYWFAR_API uint32_t GWEN_Crypt_Token_KeyInfo_GetKeyId | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 104 of file ct_keyinfo.c.
GWENHYWFAR_API uint32_t GWEN_Crypt_Token_KeyInfo_GetKeyNumber | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki | ) |
Definition at line 257 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 120 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 238 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 168 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 176 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 276 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 29 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 219 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__ActivateKey(), 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 144 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 304 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 266 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__ActivateKey(), 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 128 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 247 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__ActivateKey(), 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 184 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__ActivateKey(), 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 285 of file ct_keyinfo.c.
Referenced by GWEN_Crypt_TokenFile__ActivateKey(), 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 160 of file ct_keyinfo.c.