gwenhywfar  4.99.8beta
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

#define DISABLE_DEBUGLOG

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

Function Documentation

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 188 of file src/crypttoken/cttest.c.

Referenced by GWEN_Crypt_TokenTest_new().

Here is the caller graph for this function:

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 176 of file src/crypttoken/cttest.c.

Referenced by GWEN_Crypt_TokenTest_new().

Here is the caller graph for this function:

int GWEN_Crypt_TokenTest__GenerateKey ( GWEN_CRYPT_TOKEN ct,
uint32_t  keyId,
const GWEN_CRYPT_CRYPTALGO a,
uint32_t  gid 
)

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

Referenced by GWEN_Crypt_TokenTest_new().

Here is the caller graph for this function:

const GWEN_CRYPT_TOKEN_CONTEXT* GWEN_Crypt_TokenTest__GetContext ( GWEN_CRYPT_TOKEN ct,
uint32_t  id,
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:

int GWEN_Crypt_TokenTest__GetContextIdList ( GWEN_CRYPT_TOKEN ct,
uint32_t *  pIdList,
uint32_t *  pCount,
uint32_t  gid 
)

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

Referenced by GWEN_Crypt_TokenTest_new().

Here is the caller graph for this function:

int GWEN_Crypt_TokenTest__GetKeyIdList ( GWEN_CRYPT_TOKEN ct,
uint32_t *  pIdList,
uint32_t *  pCount,
uint32_t  gid 
)

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

Referenced by GWEN_Crypt_TokenTest_new().

Here is the caller graph for this function:

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 111 of file src/crypttoken/cttest.c.

Referenced by GWEN_Crypt_TokenTest_new().

Here is the caller graph for this function:

int GWEN_Crypt_TokenTest__SetContext ( GWEN_CRYPT_TOKEN ct,
uint32_t  id,
const GWEN_CRYPT_TOKEN_CONTEXT nctx,
uint32_t  gid 
)

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

Referenced by GWEN_Crypt_TokenTest_new().

Here is the caller graph for this function:

int GWEN_Crypt_TokenTest__SetKeyInfo ( GWEN_CRYPT_TOKEN ct,
uint32_t  id,
const GWEN_CRYPT_TOKEN_KEYINFO ki,
uint32_t  gid 
)

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

Referenced by GWEN_Crypt_TokenTest_new().

Here is the caller graph for this function:

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 150 of file src/crypttoken/cttest.c.

Referenced by GWEN_Crypt_TokenTest_new().

Here is the caller graph for this function:

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 163 of file src/crypttoken/cttest.c.

Referenced by GWEN_Crypt_TokenTest_new().

Here is the caller graph for this function:

int GWEN_Crypt_TokenTest_Close ( GWEN_CRYPT_TOKEN ct,
int  abandon,
uint32_t  gid 
)

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

Referenced by GWEN_Crypt_TokenTest_new().

Here is the caller graph for this function:

int GWEN_Crypt_TokenTest_Create ( GWEN_CRYPT_TOKEN ct,
uint32_t  gid 
)
void GWEN_Crypt_TokenTest_freeData ( void *  bp,
void *  p 
)

Definition at line 59 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_TOKEN* GWEN_Crypt_TokenTest_new ( int  maximumContexts,
int  maximumKeys 
)
int GWEN_Crypt_TokenTest_Open ( GWEN_CRYPT_TOKEN ct,
int  admin,
uint32_t  gid 
)

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

Referenced by GWEN_Crypt_TokenTest_new().

Here is the caller graph for this function: