cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Classes | Macros | Typedefs | Functions | Variables
device.h File Reference

Go to the source code of this file.

Classes

struct  MECHANISM_FUNCTION_INFO
 
struct  CREATEOBJECT_FUNCTION_INFO
 
struct  SYSTEMDEV_INFO
 
struct  PKCS11_INFO
 
struct  CRYPTOAPI_INFO
 
struct  HARDWARE_INFO
 
struct  DI
 

Macros

#define MAX_ERRMSG_SIZE   512
 
#define DEVICE_NEEDSLOGIN   0x0001 /* User must log in to use dev.*/
 
#define DEVICE_READONLY   0x0002 /* Device can't be written to */
 
#define DEVICE_REMOVABLE   0x0004 /* Device is removable */
 
#define DEVICE_ACTIVE   0x0008 /* Device is currently active */
 
#define DEVICE_LOGGEDIN   0x0010 /* User is logged into device */
 
#define DEVICE_TIME   0x0020 /* Device has on-board time source */
 
#define CAPI_HANDLE   unsigned long /* Always 32 bits on Win32 */
 
#define deviceSystem   deviceInfo.systemInfo
 
#define devicePKCS11   deviceInfo.pkcs11Info
 
#define deviceCryptoAPI   deviceInfo.cryptoapiInfo
 
#define deviceHardware   deviceInfo.hardwareInfo
 
#define deviceInitPKCS11()   CRYPT_OK
 
#define deviceEndPKCS11()
 
#define setDevicePKCS11(x, y, z)   CRYPT_ARGERROR_NUM1
 
#define deviceInitCryptoAPI()   CRYPT_OK
 
#define deviceEndCryptoAPI()
 
#define setDeviceCryptoAPI(x)   CRYPT_ARGERROR_NUM1
 
#define deviceInitHardware()   CRYPT_OK
 
#define deviceEndHardware()
 
#define setDeviceHardware(x)   CRYPT_ARGERROR_NUM1
 

Typedefs

typedef CHECK_RETVAL_FNPTR STDC_NONNULL_ARG ((2)) int(*MECHANISM_FUNCTION)(IN_OPT void *deviceInfoPtr
 
typedef CHECK_RETVAL_FNPTR
INOUT void * 
mechanismInfo
 
typedef CHECK_RETVAL_FNPTR
const void * 
auxDataPtr
 
typedef CHECK_RETVAL_FNPTR
const void const int 
auxValue
 
typedef struct DI DEVICE_INFO
 

Functions

CHECK_RETVAL STDC_NONNULL_ARG ((1, 2, 4)) int getDeviceAttribute(INOUT DEVICE_INFO *deviceInfoPtr
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 4)) int setDeviceAttribute(INOUT DEVICE_INFO *deviceInfoPtr
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 2, 5)) int setDeviceAttributeS(INOUT DEVICE_INFO *deviceInfoPtr
 
CHECK_RETVAL IN_BUFFER (dataLength) const void *data
 
CHECK_RETVAL STDC_NONNULL_ARG ((1)) int setDeviceSystem(INOUT DEVICE_INFO *deviceInfo)
 

Variables

CHECK_RETVAL OUT_INT_Z int * valuePtr
 
CHECK_RETVAL OUT_INT_Z int
IN_ATTRIBUTE const
CRYPT_ATTRIBUTE_TYPE 
attribute
 
CHECK_RETVAL OUT_INT_Z int
IN_ATTRIBUTE const
CRYPT_ATTRIBUTE_TYPE INOUT
MESSAGE_FUNCTION_EXTINFO
messageExtInfo
 
CHECK_RETVAL INOUT MESSAGE_DATAmsgData
 
CHECK_RETVAL IN_INT_Z const int value
 
CHECK_RETVAL IN_LENGTH const int dataLength
 

Macro Definition Documentation

#define CAPI_HANDLE   unsigned long /* Always 32 bits on Win32 */

Definition at line 110 of file device.h.

#define DEVICE_ACTIVE   0x0008 /* Device is currently active */

Definition at line 27 of file device.h.

#define DEVICE_LOGGEDIN   0x0010 /* User is logged into device */

Definition at line 28 of file device.h.

#define DEVICE_NEEDSLOGIN   0x0001 /* User must log in to use dev.*/

Definition at line 24 of file device.h.

#define DEVICE_READONLY   0x0002 /* Device can't be written to */

Definition at line 25 of file device.h.

#define DEVICE_REMOVABLE   0x0004 /* Device is removable */

Definition at line 26 of file device.h.

#define DEVICE_TIME   0x0020 /* Device has on-board time source */

Definition at line 29 of file device.h.

#define deviceCryptoAPI   deviceInfo.cryptoapiInfo

Definition at line 147 of file device.h.

#define deviceEndCryptoAPI ( )

Definition at line 311 of file device.h.

#define deviceEndHardware ( )

Definition at line 322 of file device.h.

#define deviceEndPKCS11 ( )

Definition at line 300 of file device.h.

#define deviceHardware   deviceInfo.hardwareInfo

Definition at line 148 of file device.h.

#define deviceInitCryptoAPI ( )    CRYPT_OK

Definition at line 310 of file device.h.

#define deviceInitHardware ( )    CRYPT_OK

Definition at line 321 of file device.h.

#define deviceInitPKCS11 ( )    CRYPT_OK

Definition at line 299 of file device.h.

#define devicePKCS11   deviceInfo.pkcs11Info

Definition at line 146 of file device.h.

#define deviceSystem   deviceInfo.systemInfo

Definition at line 145 of file device.h.

#define MAX_ERRMSG_SIZE   512

Definition at line 14 of file device.h.

#define setDeviceCryptoAPI (   x)    CRYPT_ARGERROR_NUM1

Definition at line 312 of file device.h.

#define setDeviceHardware (   x)    CRYPT_ARGERROR_NUM1

Definition at line 323 of file device.h.

#define setDevicePKCS11 (   x,
  y,
 
)    CRYPT_ARGERROR_NUM1

Definition at line 301 of file device.h.

Typedef Documentation

Definition at line 53 of file device.h.

Definition at line 53 of file device.h.

typedef struct DI DEVICE_INFO

Definition at line 40 of file device.h.

typedef CHECK_RETVAL_FNPTR STDC_NONNULL_ARG((1)) int(*CREATEOBJECT_FUNCTION)(INOUT MESSAGE_CREATEOBJECT_INFO *objectInfo

Definition at line 38 of file device.h.

Function Documentation

CHECK_RETVAL IN_BUFFER ( dataLength  ) const
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2, 4)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 4)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2, 5)  )
CHECK_RETVAL STDC_NONNULL_ARG ( (1)  )

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Definition at line 26 of file ctx_attr.c.

Variable Documentation

Definition at line 267 of file device.h.

CHECK_RETVAL IN_LENGTH const int dataLength

Definition at line 283 of file device.h.

Definition at line 267 of file device.h.

Definition at line 272 of file device.h.

Definition at line 277 of file device.h.

CHECK_RETVAL OUT_INT_Z int* valuePtr

Definition at line 267 of file device.h.