gwenhywfar  5.3.0
Macros | Functions
src/crypttoken/cttest.c File Reference
#include "cttest_p.h"
Include dependency graph for src/crypttoken/cttest.c:

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_CONTEXTGWEN_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_KEYINFOGWEN_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_TOKENGWEN_Crypt_TokenTest_new (int maximumContexts, int maximumKeys)
 
int GWEN_Crypt_TokenTest_Open (GWEN_CRYPT_TOKEN *ct, int admin, uint32_t gid)
 

Macro Definition Documentation

◆ DISABLE_DEBUGLOG

#define DISABLE_DEBUGLOG

Definition at line 14 of file src/crypttoken/cttest.c.

Function Documentation

◆ GWEN_Crypt_TokenTest__Decipher()

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().

Here is the caller graph for this function:

◆ GWEN_Crypt_TokenTest__Encipher()

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().

Here is the caller graph for this function:

◆ GWEN_Crypt_TokenTest__GenerateKey()

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().

Here is the caller graph for this function:

◆ GWEN_Crypt_TokenTest__GetContext()

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().

Here is the caller graph for this function:

◆ GWEN_Crypt_TokenTest__GetContextIdList()

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().

Here is the caller graph for this function:

◆ GWEN_Crypt_TokenTest__GetKeyIdList()

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().

Here is the caller graph for this function:

◆ GWEN_Crypt_TokenTest__GetKeyInfo()

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().

Here is the caller graph for this function:

◆ GWEN_Crypt_TokenTest__SetContext()

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().

Here is the caller graph for this function:

◆ GWEN_Crypt_TokenTest__SetKeyInfo()

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().

Here is the caller graph for this function:

◆ GWEN_Crypt_TokenTest__Sign()

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().

Here is the caller graph for this function:

◆ GWEN_Crypt_TokenTest__Verify()

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().

Here is the caller graph for this function:

◆ GWEN_Crypt_TokenTest_Close()

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().

Here is the caller graph for this function:

◆ GWEN_Crypt_TokenTest_Create()

int GWEN_Crypt_TokenTest_Create ( GWEN_CRYPT_TOKEN ct,
uint32_t  gid 
)

◆ GWEN_Crypt_TokenTest_freeData()

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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ GWEN_Crypt_TokenTest_new()

GWEN_CRYPT_TOKEN* GWEN_Crypt_TokenTest_new ( int  maximumContexts,
int  maximumKeys 
)

◆ GWEN_Crypt_TokenTest_Open()

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().

Here is the caller graph for this function: