Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
zcrypt_cex2a.h File Reference

Go to the source code of this file.

Data Structures

struct  type50_hdr
 
struct  type50_meb1_msg
 
struct  type50_meb2_msg
 
struct  type50_meb3_msg
 
struct  type50_crb1_msg
 
struct  type50_crb2_msg
 
struct  type50_crb3_msg
 
struct  type80_hdr
 

Macros

#define TYPE50_TYPE_CODE   0x50
 
#define TYPE50_MEB1_FMT   0x0001
 
#define TYPE50_MEB2_FMT   0x0002
 
#define TYPE50_MEB3_FMT   0x0003
 
#define TYPE50_CRB1_FMT   0x0011
 
#define TYPE50_CRB2_FMT   0x0012
 
#define TYPE50_CRB3_FMT   0x0013
 
#define TYPE80_RSP_CODE   0x80
 

Functions

struct type50_hdr __attribute__ ((packed))
 
int zcrypt_cex2a_init (void)
 
void zcrypt_cex2a_exit (void)
 

Variables

unsigned char reserved1
 
unsigned char msg_type_code
 
unsigned short msg_len
 
unsigned char reserved2
 
unsigned char ignored
 
unsigned short reserved3
 
struct type50_hdr header
 
unsigned short keyblock_type
 
unsigned char reserved [6]
 
unsigned char exponent [128]
 
unsigned char modulus [128]
 
unsigned char message [128]
 
unsigned char p [64]
 
unsigned char q [64]
 
unsigned char dp [64]
 
unsigned char dq [64]
 
unsigned char u [64]
 
unsigned char type
 
unsigned short len
 
unsigned char code
 

Macro Definition Documentation

#define TYPE50_CRB1_FMT   0x0011

Definition at line 53 of file zcrypt_cex2a.h.

#define TYPE50_CRB2_FMT   0x0012

Definition at line 54 of file zcrypt_cex2a.h.

#define TYPE50_CRB3_FMT   0x0013

Definition at line 55 of file zcrypt_cex2a.h.

#define TYPE50_MEB1_FMT   0x0001

Definition at line 50 of file zcrypt_cex2a.h.

#define TYPE50_MEB2_FMT   0x0002

Definition at line 51 of file zcrypt_cex2a.h.

#define TYPE50_MEB3_FMT   0x0003

Definition at line 52 of file zcrypt_cex2a.h.

#define TYPE50_TYPE_CODE   0x50

Definition at line 48 of file zcrypt_cex2a.h.

#define TYPE80_RSP_CODE   0x80

The type 80 response family is associated with a CEX2A card.

Note that all unsigned char arrays are right-justified and left-padded with zeroes.

Note that all reserved fields must be zeroes.

Definition at line 135 of file zcrypt_cex2a.h.

Function Documentation

struct type50_hdr __attribute__ ( (packed)  )
read

Definition at line 171 of file esd_usb2.c.

void zcrypt_cex2a_exit ( void  )

Definition at line 156 of file zcrypt_cex2a.c.

int zcrypt_cex2a_init ( void  )

Definition at line 151 of file zcrypt_cex2a.c.

Variable Documentation

unsigned char code

Definition at line 148 of file zcrypt_cex2a.h.

unsigned char dp[256]

Definition at line 104 of file zcrypt_cex2a.h.

unsigned char dq

Definition at line 105 of file zcrypt_cex2a.h.

unsigned char exponent[512]

Definition at line 69 of file zcrypt_cex2a.h.

Definition at line 66 of file zcrypt_cex2a.h.

unsigned char ignored

Definition at line 51 of file zcrypt_cex2a.h.

unsigned short keyblock_type

Definition at line 67 of file zcrypt_cex2a.h.

unsigned short len

Definition at line 147 of file zcrypt_cex2a.h.

unsigned char message

Definition at line 71 of file zcrypt_cex2a.h.

unsigned char modulus[512]

Definition at line 70 of file zcrypt_cex2a.h.

__le32 msg_len

Definition at line 49 of file zcrypt_cex2a.h.

unsigned char msg_type_code

Definition at line 48 of file zcrypt_cex2a.h.

unsigned char p[256]

Definition at line 102 of file zcrypt_cex2a.h.

unsigned char q[256]

Definition at line 103 of file zcrypt_cex2a.h.

unsigned char reserved[6]

Definition at line 68 of file zcrypt_cex2a.h.

unsigned char reserved1

Definition at line 47 of file zcrypt_cex2a.h.

unsigned char reserved2[3]

Definition at line 50 of file zcrypt_cex2a.h.

unsigned char reserved3[8]

Definition at line 52 of file zcrypt_cex2a.h.

unsigned char type

Definition at line 146 of file zcrypt_cex2a.h.

unsigned char u[256]

Definition at line 106 of file zcrypt_cex2a.h.