|
gwenhywfar
5.3.0
|
#include "cttest_p.h"
Go to the source code of this file.
Macros | |
| #define | DISABLE_DEBUGLOG |
Functions | |
| int | GWEN_Crypt_TokenTest__Decipher (GWEN_CRYPT_TOKEN *ct, uint32_t keyId, GWEN_CRYPT_PADDALGO *a, const uint8_t *pInData, uint32_t inLen, uint8_t *pOutData, uint32_t *pOutLen, uint32_t gid) |
| int | GWEN_Crypt_TokenTest__Encipher (GWEN_CRYPT_TOKEN *ct, uint32_t keyId, GWEN_CRYPT_PADDALGO *a, const uint8_t *pInData, uint32_t inLen, uint8_t *pOutData, uint32_t *pOutLen, uint32_t gid) |
| int | GWEN_Crypt_TokenTest__GenerateKey (GWEN_CRYPT_TOKEN *ct, uint32_t keyId, const GWEN_CRYPT_CRYPTALGO *a, uint32_t gid) |
| const GWEN_CRYPT_TOKEN_CONTEXT * | GWEN_Crypt_TokenTest__GetContext (GWEN_CRYPT_TOKEN *ct, uint32_t id, uint32_t gid) |
| int | GWEN_Crypt_TokenTest__GetContextIdList (GWEN_CRYPT_TOKEN *ct, uint32_t *pIdList, uint32_t *pCount, uint32_t gid) |
| int | GWEN_Crypt_TokenTest__GetKeyIdList (GWEN_CRYPT_TOKEN *ct, uint32_t *pIdList, uint32_t *pCount, uint32_t gid) |
| const GWEN_CRYPT_TOKEN_KEYINFO * | GWEN_Crypt_TokenTest__GetKeyInfo (GWEN_CRYPT_TOKEN *ct, uint32_t id, uint32_t flags, uint32_t gid) |
| int | GWEN_Crypt_TokenTest__SetContext (GWEN_CRYPT_TOKEN *ct, uint32_t id, const GWEN_CRYPT_TOKEN_CONTEXT *nctx, uint32_t gid) |
| int | GWEN_Crypt_TokenTest__SetKeyInfo (GWEN_CRYPT_TOKEN *ct, uint32_t id, const GWEN_CRYPT_TOKEN_KEYINFO *ki, uint32_t gid) |
| int | GWEN_Crypt_TokenTest__Sign (GWEN_CRYPT_TOKEN *ct, uint32_t keyId, GWEN_CRYPT_PADDALGO *a, const uint8_t *pInData, uint32_t inLen, uint8_t *pSignatureData, uint32_t *pSignatureLen, uint32_t *pSeqCounter, uint32_t gid) |
| int | GWEN_Crypt_TokenTest__Verify (GWEN_CRYPT_TOKEN *ct, uint32_t keyId, GWEN_CRYPT_PADDALGO *a, const uint8_t *pInData, uint32_t inLen, const uint8_t *pSignatureData, uint32_t signatureLen, uint32_t seqCounter, uint32_t gid) |
| int | GWEN_Crypt_TokenTest_Close (GWEN_CRYPT_TOKEN *ct, int abandon, uint32_t gid) |
| int | GWEN_Crypt_TokenTest_Create (GWEN_CRYPT_TOKEN *ct, uint32_t gid) |
| void | GWEN_Crypt_TokenTest_freeData (void *bp, void *p) |
| GWEN_CRYPT_TOKEN * | GWEN_Crypt_TokenTest_new (int maximumContexts, int maximumKeys) |
| int | GWEN_Crypt_TokenTest_Open (GWEN_CRYPT_TOKEN *ct, int admin, uint32_t gid) |
| #define DISABLE_DEBUGLOG |
Definition at line 14 of file src/crypttoken/cttest.c.
| int GWEN_Crypt_TokenTest__Decipher | ( | GWEN_CRYPT_TOKEN * | ct, |
| uint32_t | keyId, | ||
| GWEN_CRYPT_PADDALGO * | a, | ||
| const uint8_t * | pInData, | ||
| uint32_t | inLen, | ||
| uint8_t * | pOutData, | ||
| uint32_t * | pOutLen, | ||
| uint32_t | gid | ||
| ) |
Definition at line 202 of file src/crypttoken/cttest.c.
Referenced by GWEN_Crypt_TokenTest_new().

| int GWEN_Crypt_TokenTest__Encipher | ( | GWEN_CRYPT_TOKEN * | ct, |
| uint32_t | keyId, | ||
| GWEN_CRYPT_PADDALGO * | a, | ||
| const uint8_t * | pInData, | ||
| uint32_t | inLen, | ||
| uint8_t * | pOutData, | ||
| uint32_t * | pOutLen, | ||
| uint32_t | gid | ||
| ) |
Definition at line 189 of file src/crypttoken/cttest.c.
Referenced by GWEN_Crypt_TokenTest_new().

| int GWEN_Crypt_TokenTest__GenerateKey | ( | GWEN_CRYPT_TOKEN * | ct, |
| uint32_t | keyId, | ||
| const GWEN_CRYPT_CRYPTALGO * | a, | ||
| uint32_t | gid | ||
| ) |
Definition at line 215 of file src/crypttoken/cttest.c.
Referenced by GWEN_Crypt_TokenTest_new().

| const GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_TokenTest__GetContext | ( | GWEN_CRYPT_TOKEN * | ct, |
| uint32_t | id, | ||
| uint32_t | gid | ||
| ) |
Definition at line 144 of file src/crypttoken/cttest.c.
Referenced by GWEN_Crypt_TokenTest_new().

| int GWEN_Crypt_TokenTest__GetContextIdList | ( | GWEN_CRYPT_TOKEN * | ct, |
| uint32_t * | pIdList, | ||
| uint32_t * | pCount, | ||
| uint32_t | gid | ||
| ) |
Definition at line 135 of file src/crypttoken/cttest.c.
Referenced by GWEN_Crypt_TokenTest_new().

| int GWEN_Crypt_TokenTest__GetKeyIdList | ( | GWEN_CRYPT_TOKEN * | ct, |
| uint32_t * | pIdList, | ||
| uint32_t * | pCount, | ||
| uint32_t | gid | ||
| ) |
Definition at line 108 of file src/crypttoken/cttest.c.
Referenced by GWEN_Crypt_TokenTest_new().

| const GWEN_CRYPT_TOKEN_KEYINFO* GWEN_Crypt_TokenTest__GetKeyInfo | ( | GWEN_CRYPT_TOKEN * | ct, |
| uint32_t | id, | ||
| uint32_t | flags, | ||
| uint32_t | gid | ||
| ) |
Definition at line 117 of file src/crypttoken/cttest.c.
Referenced by GWEN_Crypt_TokenTest_new().

| int GWEN_Crypt_TokenTest__SetContext | ( | GWEN_CRYPT_TOKEN * | ct, |
| uint32_t | id, | ||
| const GWEN_CRYPT_TOKEN_CONTEXT * | nctx, | ||
| uint32_t | gid | ||
| ) |
Definition at line 152 of file src/crypttoken/cttest.c.
Referenced by GWEN_Crypt_TokenTest_new().

| int GWEN_Crypt_TokenTest__SetKeyInfo | ( | GWEN_CRYPT_TOKEN * | ct, |
| uint32_t | id, | ||
| const GWEN_CRYPT_TOKEN_KEYINFO * | ki, | ||
| uint32_t | gid | ||
| ) |
Definition at line 126 of file src/crypttoken/cttest.c.
Referenced by GWEN_Crypt_TokenTest_new().

| int GWEN_Crypt_TokenTest__Sign | ( | GWEN_CRYPT_TOKEN * | ct, |
| uint32_t | keyId, | ||
| GWEN_CRYPT_PADDALGO * | a, | ||
| const uint8_t * | pInData, | ||
| uint32_t | inLen, | ||
| uint8_t * | pSignatureData, | ||
| uint32_t * | pSignatureLen, | ||
| uint32_t * | pSeqCounter, | ||
| uint32_t | gid | ||
| ) |
Definition at line 161 of file src/crypttoken/cttest.c.
Referenced by GWEN_Crypt_TokenTest_new().

| int GWEN_Crypt_TokenTest__Verify | ( | GWEN_CRYPT_TOKEN * | ct, |
| uint32_t | keyId, | ||
| GWEN_CRYPT_PADDALGO * | a, | ||
| const uint8_t * | pInData, | ||
| uint32_t | inLen, | ||
| const uint8_t * | pSignatureData, | ||
| uint32_t | signatureLen, | ||
| uint32_t | seqCounter, | ||
| uint32_t | gid | ||
| ) |
Definition at line 175 of file src/crypttoken/cttest.c.
Referenced by GWEN_Crypt_TokenTest_new().

| int GWEN_Crypt_TokenTest_Close | ( | GWEN_CRYPT_TOKEN * | ct, |
| int | abandon, | ||
| uint32_t | gid | ||
| ) |
Definition at line 102 of file src/crypttoken/cttest.c.
Referenced by GWEN_Crypt_TokenTest_new().

| int GWEN_Crypt_TokenTest_Create | ( | GWEN_CRYPT_TOKEN * | ct, |
| uint32_t | gid | ||
| ) |
Definition at line 71 of file src/crypttoken/cttest.c.
References GWEN_Crypt_Token_Context_new(), GWEN_Crypt_Token_Context_SetAuthSignKeyId(), GWEN_Crypt_Token_Context_SetAuthVerifyKeyId(), GWEN_Crypt_Token_Context_SetDecipherKeyId(), GWEN_Crypt_Token_Context_SetEncipherKeyId(), GWEN_Crypt_Token_Context_SetId(), GWEN_Crypt_Token_Context_SetSignKeyId(), and GWEN_Crypt_Token_Context_SetVerifyKeyId().
Referenced by GWEN_Crypt_TokenTest_new().


| void GWEN_Crypt_TokenTest_freeData | ( | void * | bp, |
| void * | p | ||
| ) |
Definition at line 60 of file src/crypttoken/cttest.c.
References GWEN_Crypt_Token_Context_List_free().
Referenced by GWEN_Crypt_TokenTest_new().


| GWEN_CRYPT_TOKEN* GWEN_Crypt_TokenTest_new | ( | int | maximumContexts, |
| int | maximumKeys | ||
| ) |
Definition at line 22 of file src/crypttoken/cttest.c.
References GWEN_Crypt_Token_Context_List_new(), GWEN_Crypt_Token_Device_File, GWEN_Crypt_Token_new(), GWEN_Crypt_Token_SetActivateKeyFn(), 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_TokenTest__Decipher(), GWEN_Crypt_TokenTest__Encipher(), GWEN_Crypt_TokenTest__GenerateKey(), GWEN_Crypt_TokenTest__GetContext(), GWEN_Crypt_TokenTest__GetContextIdList(), GWEN_Crypt_TokenTest__GetKeyIdList(), GWEN_Crypt_TokenTest__GetKeyInfo(), GWEN_Crypt_TokenTest__SetContext(), GWEN_Crypt_TokenTest__SetKeyInfo(), GWEN_Crypt_TokenTest__Sign(), GWEN_Crypt_TokenTest__Verify(), GWEN_Crypt_TokenTest_Close(), GWEN_Crypt_TokenTest_Create(), GWEN_Crypt_TokenTest_freeData(), GWEN_Crypt_TokenTest_Open(), GWEN_INHERIT_SETDATA, GWEN_NEW_OBJECT, and NULL.

| int GWEN_Crypt_TokenTest_Open | ( | GWEN_CRYPT_TOKEN * | ct, |
| int | admin, | ||
| uint32_t | gid | ||
| ) |
Definition at line 96 of file src/crypttoken/cttest.c.
Referenced by GWEN_Crypt_TokenTest_new().

1.8.14