cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Public Member Functions | Public Attributes | List of all members
DI Struct Reference

#include <device.h>

Public Member Functions

 BUFFER_FIXED (labelLen) char *label
 
CHECK_RETVAL_FNPTR STDC_NONNULL_ARG ((1, 2)) int(*initFunction)(INOUT struct DI *deviceInfo
 
 STDC_NONNULL_ARG ((1)) void(*shutdownFunction)(INOUT struct DI *deviceInfo)
 
CHECK_RETVAL_FNPTR STDC_NONNULL_ARG ((1)) int(*controlFunction)(INOUT struct DI *deviceInfo
 
CHECK_RETVAL_FNPTR
IN_ATTRIBUTE const
CRYPT_ATTRIBUTE_TYPE 
IN_BUFFER_OPT (dataLength) void *data
 
CHECK_RETVAL_FNPTR STDC_NONNULL_ARG ((1, 2)) int(*selftestFunction)(INOUT struct DI *deviceInfo
 
CHECK_RETVAL_FNPTR STDC_NONNULL_ARG ((1, 2, 5)) int(*openDatabaseBackend)(INOUT DBMS_STATE_INFO *dbmsStateInfo
 
CHECK_RETVAL_FNPTR IN_BUFFER (nameLen) const char *name
 
CHECK_RETVAL_FNPTR
IN_LENGTH_NAME const int 
IN_ENUM_OPT (CRYPT_KEYOPT) const CRYPT_KEYOPT_TYPE options
 
CHECK_RETVAL_FNPTR
IN_LENGTH_NAME const int 
OUT_FLAGS_Z (DBMS_FEATURE) int *featureFlags)
 
 STDC_NONNULL_ARG ((1)) void(*closeDatabaseBackend)(INOUT DBMS_STATE_INFO *dbmsStateInfo)
 
CHECK_RETVAL_FNPTR STDC_NONNULL_ARG ((1)) int(*performUpdateBackend)(INOUT DBMS_STATE_INFO *dbmsStateInfo
 
CHECK_RETVAL_FNPTR IN_BUFFER_OPT (commandLength) const char *command
 
CHECK_RETVAL_FNPTR
IN_LENGTH_SHORT_Z const int 
IN_ARRAY_OPT (BOUND_DATA_MAXITEMS) const void *boundData
 
CHECK_RETVAL_FNPTR
IN_LENGTH_SHORT_Z const int 
IN_ENUM (DBMS_UPDATE) const DBMS_UPDATE_TYPE updateType)
 
CHECK_RETVAL_FNPTR STDC_NONNULL_ARG ((1)) int(*performQueryBackend)(INOUT DBMS_STATE_INFO *dbmsStateInfo
 
CHECK_RETVAL_FNPTR IN_BUFFER_OPT (commandLength) const char *command
 
CHECK_RETVAL_FNPTR
IN_LENGTH_SHORT_Z const int 
OUT_BUFFER_OPT (dataMaxLength,*dataLength) void *data
 
CHECK_RETVAL_FNPTR
IN_LENGTH_SHORT_Z const int
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int IN_OPT
const void 
IN_ENUM_OPT (DBMS_CACHEDQUERY) const DBMS_CACHEDQUERY_TYPE queryEntry
 
CHECK_RETVAL_FNPTR
IN_LENGTH_SHORT_Z const int
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int IN_OPT
const void 
IN_ENUM (DBMS_QUERY) const DBMS_QUERY_TYPE queryType)
 
CHECK_RETVAL_FNPTR STDC_NONNULL_ARG ((1, 2, 5)) int(*openDatabaseFunction)(INOUT struct DI *dbmsInfo
 
CHECK_RETVAL_FNPTR IN_BUFFER (nameLen) const char *name
 
CHECK_RETVAL_FNPTR
IN_LENGTH_NAME const int 
IN_ENUM_OPT (CRYPT_KEYOPT) const CRYPT_KEYOPT_TYPE options
 
CHECK_RETVAL_FNPTR
IN_LENGTH_NAME const int 
OUT_FLAGS_Z (DBMS) int *featureFlags)
 
 STDC_NONNULL_ARG ((1)) void(*closeDatabaseFunction)(INOUT struct DI *dbmsInfo)
 
CHECK_RETVAL_FNPTR STDC_NONNULL_ARG ((1)) int(*performUpdateFunction)(INOUT struct DI *dbmsInfo
 
CHECK_RETVAL_FNPTR
IN_STRING_OPT const char
IN_OPT const void 
IN_ENUM (DBMS_UPDATE) const DBMS_UPDATE_TYPE updateType)
 
CHECK_RETVAL_FNPTR STDC_NONNULL_ARG ((1, 2)) int(*performStaticUpdateFunction)(INOUT struct DI *dbmsInfo
 
CHECK_RETVAL_FNPTR STDC_NONNULL_ARG ((1)) int(*performQueryFunction)(INOUT struct DI *dbmsInfo
 
CHECK_RETVAL_FNPTR
IN_STRING_OPT const char 
OUT_BUFFER_OPT (dataMaxLength,*dataLength) void *data
 
CHECK_RETVAL_FNPTR
IN_STRING_OPT const char
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int IN
const void 
IN_ENUM_OPT (DBMS_CACHEDQUERY) const DBMS_CACHEDQUERY_TYPE queryEntry
 
CHECK_RETVAL_FNPTR
IN_STRING_OPT const char
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int IN
const void 
IN_ENUM (DBMS_QUERY) const DBMS_QUERY_TYPE queryType)
 
CHECK_RETVAL_FNPTR STDC_NONNULL_ARG ((1)) int(*performStaticQueryFunction)(INOUT struct DI *dbmsInfo
 
CHECK_RETVAL_FNPTR
IN_STRING_OPT const char 
IN_ENUM_OPT (DBMS_CACHEDQUERY) const DBMS_CACHEDQUERY_TYPE queryEntry
 
CHECK_RETVAL_FNPTR
IN_STRING_OPT const char 
IN_ENUM (DBMS_QUERY) const DBMS_QUERY_TYPE queryType)
 
CHECK_RETVAL_FNPTR STDC_NONNULL_ARG ((1)) int(*certMgmtFunction)(INOUT struct KI *keysetInfo
 
CHECK_RETVAL_FNPTR
OUT_OPT_HANDLE_OPT
CRYPT_CERTIFICATE
IN_HANDLE_OPT const
CRYPT_CERTIFICATE
IN_HANDLE_OPT const
CRYPT_CERTIFICATE 
IN_ENUM (CRYPT_CERTACTION) const CRYPT_CERTACTION_TYPE action)
 

Public Attributes

CRYPT_DEVICE_TYPE type
 
int flags
 
int labelLen
 
const void * capabilityInfoList
 
union {
   SYSTEMDEV_INFO *   systemInfo
 
   PKCS11_INFO *   pkcs11Info
 
   CRYPTOAPI_INFO *   cryptoapiInfo
 
   HARDWARE_INFO *   hardwareInfo
 
deviceInfo
 
CHECK_RETVAL_FNPTR STDC_UNUSED
const char * 
name
 
CHECK_RETVAL_FNPTR STDC_UNUSED
const char STDC_UNUSED const
int 
nameLength
 
CHECK_RETVAL_FNPTR
IN_ATTRIBUTE const
CRYPT_ATTRIBUTE_TYPE 
type
 
CHECK_RETVAL_FNPTR
IN_ATTRIBUTE const
CRYPT_ATTRIBUTE_TYPE
IN_LENGTH_SHORT_Z const int 
dataLength
 
CHECK_RETVAL_FNPTR
IN_ATTRIBUTE const
CRYPT_ATTRIBUTE_TYPE
IN_LENGTH_SHORT_Z const int
INOUT_OPT
MESSAGE_FUNCTION_EXTINFO
messageExtInfo
 
CHECK_RETVAL_FNPTR INOUT
MESSAGE_FUNCTION_EXTINFO
messageExtInfo
 
int(* getItemFunction )(INOUT struct DI *deviceInfo, CRYPT_CONTEXT *iCryptContext, const KEYMGMT_ITEM_TYPE itemType, const CRYPT_KEYID_TYPE keyIDtype, IN_BUFFER(keyIDlength) const void *keyID, const int keyIDlength, IN_BUFFER_OPT(*auxInfoLength) void *auxInfo, int *auxInfoLength, const int flags) STDC_NONNULL_ARG((1
 
int(*) int(* setItemFunction )(INOUT struct DI *deviceInfo, const CRYPT_HANDLE iCryptHandle) STDC_NONNULL_ARG((1))
 
int(* deleteItemFunction )(INOUT struct DI *deviceInfo, const KEYMGMT_ITEM_TYPE itemType, const CRYPT_KEYID_TYPE keyIDtype, IN_BUFFER(keyIDlength) const void *keyID, const int keyIDlength) STDC_NONNULL_ARG((1
 
int(*) int(* getFirstItemFunction )(INOUT struct DI *deviceInfo, OUT CRYPT_CERTIFICATE *iCertificate, INOUT int *stateInfo, const CRYPT_KEYID_TYPE keyIDtype, IN_BUFFER(keyIDlength) const void *keyID, const int keyIDlength, const KEYMGMT_ITEM_TYPE itemType, const int options) STDC_NONNULL_ARG((1
 
int(*) int(*) int(* getNextItemFunction )(INOUT struct DI *deviceInfo, OUT CRYPT_CERTIFICATE *iCertificate, INOUT int *stateInfo, const int options) STDC_NONNULL_ARG((1
 
int(*) int(*) int(*)
CHECK_RETVAL_FNPT 
STDC_NONNULL_ARG )((1, 2)) int(*getRandomFunction)(INOUT struct DI *deviceInfo
 
int(*) int(*) int(*)
CHECK_RETVAL_FNPT 
OUT_BUFFER_FIXED )(length) void *buffer
 
int(*) int(*) int(*)
CHECK_RETVAL_FNPTR
IN_LENGTH_SHORT const in 
length )
 
int(*) int(*) int(*)
CHECK_RETVAL_FNPTR
IN_LENGTH_SHORT const int
INOUT_OPT
MESSAGE_FUNCTION_EXTINFO 
messageExtInfo )
 
const MECHANISM_FUNCTION_INFOmechanismFunctions
 
const CREATEOBJECT_FUNCTION_INFOcreateObjectFunctions
 
void * randomInfo
 
int mechanismFunctionCount
 
int createObjectFunctionCount
 
CRYPT_ATTRIBUTE_TYPE errorLocus
 
CRYPT_ERRTYPE_TYPE errorType
 
CRYPT_HANDLE objectHandle
 
CRYPT_USER ownerHandle
 
 DECLARE_VARSTRUCT_VARS
 
char boundData [MAX_ENCODED_CERT_SIZE+8]
 
CHECK_RETVAL_FNPTR
IN_LENGTH_NAME const int 
nameLen
 
CHECK_RETVAL_FNPTR
IN_LENGTH_SHORT_Z const int 
commandLength
 
CHECK_RETVAL_FNPTR
IN_LENGTH_SHORT_Z const int
IN_LENGTH_SHORT_Z const int 
dataMaxLength
 
CHECK_RETVAL_FNPTR
IN_LENGTH_SHORT_Z const int
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int * 
dataLength
 
CHECK_RETVAL_FNPTR
IN_LENGTH_SHORT_Z const int
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int IN_OPT
const void * 
boundData
 
void * stateInfo
 
CHECK_RETVAL_FNPTR
IN_STRING_OPT const char * 
command
 
CHECK_RETVAL_FNPTR
IN_STRING_OPT const char
IN_OPT const void * 
boundData
 
CHECK_RETVAL_FNPTR IN_STRING
const char * 
command
 
CHECK_RETVAL_FNPTR
IN_STRING_OPT const char
IN_LENGTH_SHORT_Z const int 
dataMaxLength
 
CHECK_RETVAL_FNPTR
IN_STRING_OPT const char
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int * 
dataLength
 
CHECK_RETVAL_FNPTR
IN_STRING_OPT const char
IN_LENGTH_SHORT_Z const int
OUT_LENGTH_SHORT_Z int IN
const void * 
boundData
 
CHECK_RETVAL_FNPTR
OUT_OPT_HANDLE_OPT
CRYPT_CERTIFICATE
iCryptCert
 
CHECK_RETVAL_FNPTR
OUT_OPT_HANDLE_OPT
CRYPT_CERTIFICATE
IN_HANDLE_OPT const
CRYPT_CERTIFICATE 
caKey
 
CHECK_RETVAL_FNPTR
OUT_OPT_HANDLE_OPT
CRYPT_CERTIFICATE
IN_HANDLE_OPT const
CRYPT_CERTIFICATE
IN_HANDLE_OPT const
CRYPT_CERTIFICATE 
request
 

Detailed Description

Definition at line 152 of file device.h.

Member Function Documentation

DI::BUFFER_FIXED ( labelLen  )
CHECK_RETVAL_FNPTR DI::IN_BUFFER ( nameLen  ) const
CHECK_RETVAL_FNPTR DI::IN_BUFFER ( nameLen  ) const
CHECK_RETVAL_FNPTR DI::IN_BUFFER_OPT ( commandLength  ) const
CHECK_RETVAL_FNPTR DI::IN_BUFFER_OPT ( commandLength  ) const
CHECK_RETVAL_FNPTR IN_LENGTH_SHORT_Z const int DI::IN_ENUM ( DBMS_UPDATE  ) const
CHECK_RETVAL_FNPTR IN_LENGTH_SHORT_Z const int IN_LENGTH_SHORT_Z const int OUT_LENGTH_SHORT_Z int IN_OPT const void DI::IN_ENUM ( DBMS_QUERY  ) const
CHECK_RETVAL_FNPTR IN_STRING_OPT const char IN_OPT const void DI::IN_ENUM ( DBMS_UPDATE  ) const
CHECK_RETVAL_FNPTR IN_STRING_OPT const char IN_LENGTH_SHORT_Z const int OUT_LENGTH_SHORT_Z int IN const void DI::IN_ENUM ( DBMS_QUERY  ) const
CHECK_RETVAL_FNPTR IN_STRING_OPT const char DI::IN_ENUM ( DBMS_QUERY  ) const
CHECK_RETVAL_FNPTR IN_LENGTH_NAME const int DI::IN_ENUM_OPT ( CRYPT_KEYOPT  ) const
CHECK_RETVAL_FNPTR IN_LENGTH_SHORT_Z const int IN_LENGTH_SHORT_Z const int OUT_LENGTH_SHORT_Z int IN_OPT const void DI::IN_ENUM_OPT ( DBMS_CACHEDQUERY  ) const
CHECK_RETVAL_FNPTR IN_LENGTH_NAME const int DI::IN_ENUM_OPT ( CRYPT_KEYOPT  ) const
CHECK_RETVAL_FNPTR IN_STRING_OPT const char IN_LENGTH_SHORT_Z const int OUT_LENGTH_SHORT_Z int IN const void DI::IN_ENUM_OPT ( DBMS_CACHEDQUERY  ) const
CHECK_RETVAL_FNPTR IN_STRING_OPT const char DI::IN_ENUM_OPT ( DBMS_CACHEDQUERY  ) const
CHECK_RETVAL_FNPTR IN_LENGTH_SHORT_Z const int DI::OUT_BUFFER_OPT ( dataMaxLength  ,
dataLength 
)
CHECK_RETVAL_FNPTR IN_STRING_OPT const char DI::OUT_BUFFER_OPT ( dataMaxLength  ,
dataLength 
)
CHECK_RETVAL_FNPTR IN_LENGTH_NAME const int DI::OUT_FLAGS_Z ( DBMS_FEATURE  )
CHECK_RETVAL_FNPTR IN_LENGTH_NAME const int DI::OUT_FLAGS_Z ( DBMS  )
CHECK_RETVAL_FNPTR DI::STDC_NONNULL_ARG ( (1, 2)  )
DI::STDC_NONNULL_ARG ( (1)  )
CHECK_RETVAL_FNPTR DI::STDC_NONNULL_ARG ( (1)  )
CHECK_RETVAL_FNPTR DI::STDC_NONNULL_ARG ( (1, 2)  )
CHECK_RETVAL_FNPTR DI::STDC_NONNULL_ARG ( (1, 2, 5)  )
DI::STDC_NONNULL_ARG ( (1)  )
CHECK_RETVAL_FNPTR DI::STDC_NONNULL_ARG ( (1)  )
CHECK_RETVAL_FNPTR DI::STDC_NONNULL_ARG ( (1)  )
CHECK_RETVAL_FNPTR DI::STDC_NONNULL_ARG ( (1, 2, 5)  )
DI::STDC_NONNULL_ARG ( (1)  )
CHECK_RETVAL_FNPTR DI::STDC_NONNULL_ARG ( (1)  )
CHECK_RETVAL_FNPTR DI::STDC_NONNULL_ARG ( (1, 2)  )
CHECK_RETVAL_FNPTR DI::STDC_NONNULL_ARG ( (1)  )
CHECK_RETVAL_FNPTR DI::STDC_NONNULL_ARG ( (1)  )
CHECK_RETVAL_FNPTR DI::STDC_NONNULL_ARG ( (1)  )

Member Data Documentation

char DI::boundData[MAX_ENCODED_CERT_SIZE+8]

Definition at line 251 of file keyset.h.

Definition at line 288 of file keyset.h.

Definition at line 311 of file keyset.h.

Definition at line 323 of file keyset.h.

Definition at line 341 of file keyset.h.

const void* DI::capabilityInfoList

Definition at line 170 of file device.h.

Definition at line 311 of file keyset.h.

CHECK_RETVAL_FNPTR IN_STRING const char* DI::command

Definition at line 317 of file keyset.h.

Definition at line 276 of file keyset.h.

int DI::createObjectFunctionCount

Definition at line 240 of file device.h.

const CREATEOBJECT_FUNCTION_INFO* DI::createObjectFunctions

Definition at line 238 of file device.h.

CRYPTOAPI_INFO* DI::cryptoapiInfo

Definition at line 176 of file device.h.

Definition at line 191 of file device.h.

Definition at line 288 of file keyset.h.

Definition at line 323 of file keyset.h.

Definition at line 288 of file keyset.h.

Definition at line 323 of file keyset.h.

DI::DECLARE_VARSTRUCT_VARS

Definition at line 254 of file device.h.

Definition at line 210 of file device.h.

union { ... } DI::deviceInfo
CRYPT_ATTRIBUTE_TYPE DI::errorLocus

Definition at line 243 of file device.h.

CRYPT_ERRTYPE_TYPE DI::errorType

Definition at line 244 of file device.h.

int DI::flags

Definition at line 161 of file device.h.

Definition at line 216 of file device.h.

Definition at line 197 of file device.h.

int( *) int( *) int( * DI::getNextItemFunction)(INOUT struct DI *deviceInfo, OUT CRYPT_CERTIFICATE *iCertificate, INOUT int *stateInfo, const int options) STDC_NONNULL_ARG((1

Definition at line 225 of file device.h.

HARDWARE_INFO* DI::hardwareInfo

Definition at line 177 of file device.h.

Definition at line 341 of file keyset.h.

int DI::labelLen

Definition at line 164 of file device.h.

int( *) int( *) int( *) CHECK_RETVAL_FNPTR IN_LENGTH_SHORT const in DI::length)

Definition at line 232 of file device.h.

int DI::mechanismFunctionCount

Definition at line 240 of file device.h.

const MECHANISM_FUNCTION_INFO* DI::mechanismFunctions

Definition at line 237 of file device.h.

Definition at line 191 of file device.h.

Definition at line 196 of file device.h.

int( *) int( *) int( *) CHECK_RETVAL_FNPTR IN_LENGTH_SHORT const int INOUT_OPT MESSAGE_FUNCTION_EXTINFO DI::messageExtInfo)

Definition at line 232 of file device.h.

Definition at line 183 of file device.h.

Definition at line 266 of file keyset.h.

Definition at line 183 of file device.h.

CRYPT_HANDLE DI::objectHandle

Definition at line 250 of file device.h.

int( *) int( *) int( *) CHECK_RETVAL_FNPT DI::OUT_BUFFER_FIXED)(length) void *buffer

Definition at line 231 of file device.h.

CRYPT_USER DI::ownerHandle

Definition at line 251 of file device.h.

PKCS11_INFO* DI::pkcs11Info

Definition at line 175 of file device.h.

void* DI::randomInfo

Definition at line 239 of file device.h.

Definition at line 341 of file keyset.h.

int( *) int( * DI::setItemFunction)(INOUT struct DI *deviceInfo, const CRYPT_HANDLE iCryptHandle) STDC_NONNULL_ARG((1))

Definition at line 207 of file device.h.

void* DI::stateInfo

Definition at line 296 of file keyset.h.

int( *) int( *) int( *) CHECK_RETVAL_FNPT DI::STDC_NONNULL_ARG)((1, 2)) int(*getRandomFunction)(INOUT struct DI *deviceInfo

Definition at line 229 of file device.h.

SYSTEMDEV_INFO* DI::systemInfo

Definition at line 174 of file device.h.

Definition at line 160 of file device.h.

Definition at line 189 of file device.h.


The documentation for this struct was generated from the following files: