Struct:ttCryptoEngine

Jump to: navigation, search
 
#define trsocket.h
 
typedef struct tsCryptoEngine
{
/* The crypto engine name (ID) */
    ttUser32Bit                   ceEngineId;
 
/* Bit flags to indicate supported algorithms */
    ttUser32Bit                   ceSupportFlags;
 
/* The initialization function */
    ttCryptoEngineInitFuncPtr     ceInitFuncPtr;
 
/* The random number generator function */
    ttCryptoGetRandomWordFuncPtr  ceRandomWordFuncPtr;
 
/* The function to open a crypto session */
    ttCryptoSessionOpenFuncPtr    ceSessionOpenFuncPtr;
 
/* The function to process the crypto request for this crypto engine, which may have multiple sessions */
    ttCryptoSessionFuncPtr        ceSessionProcessFuncPtr;
 
/* The function to close a crypto session */
    ttCryptoSessionFuncPtr        ceSessionCloseFuncPtr;
} ttCryptoEngine;
 
typedef ttCryptoEngine TM_FAR * ttCryptoEnginePtr;
typedef ttCryptoEnginePtr TM_FAR * ttCryptoEnginePtrPtr;