gwenhywfar
4.7.0beta
|
#include "ct_keyinfo_p.h"
#include <gwenhywfar/misc.h>
#include <gwenhywfar/debug.h>
Go to the source code of this file.
Macros | |
#define | DISABLE_DEBUGLOG |
#define DISABLE_DEBUGLOG |
Definition at line 14 of file ct_keyinfo.c.
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().
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().
void GWEN_Crypt_Token_KeyInfo_free | ( | GWEN_CRYPT_TOKEN_KEYINFO * | ki) |
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().
GWEN_CRYPT_CRYPTALGOID GWEN_Crypt_Token_KeyInfo_GetCryptAlgoId | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki) |
Definition at line 112 of file ct_keyinfo.c.
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().
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().
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().
const char* GWEN_Crypt_Token_KeyInfo_GetKeyDescr | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki) |
Definition at line 295 of file ct_keyinfo.c.
uint32_t GWEN_Crypt_Token_KeyInfo_GetKeyId | ( | const GWEN_CRYPT_TOKEN_KEYINFO * | ki) |
Definition at line 104 of file ct_keyinfo.c.
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().
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().
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().
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().
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().
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().
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().
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().
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().
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.
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().
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().
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().
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().
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().
void GWEN_Crypt_Token_KeyInfo_SubFlags | ( | GWEN_CRYPT_TOKEN_KEYINFO * | ki, |
uint32_t | f | ||
) |
Definition at line 160 of file ct_keyinfo.c.