Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
zcrypt_msgtype50.c File Reference
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/err.h>
#include <linux/atomic.h>
#include <linux/uaccess.h>
#include "ap_bus.h"
#include "zcrypt_api.h"
#include "zcrypt_error.h"
#include "zcrypt_msgtype50.h"

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 CEX3A_MAX_MOD_SIZE   512 /* 4096 bits */
 
#define CEX2A_MAX_RESPONSE_SIZE   0x110 /* max outputdatalength + type80_hdr */
 
#define CEX3A_MAX_RESPONSE_SIZE
 
#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

 MODULE_AUTHOR ("IBM Corporation")
 
 MODULE_DESCRIPTION ("Cryptographic Accelerator (message type 50), ""Copyright IBM Corp. 2001, 2012")
 
 MODULE_LICENSE ("GPL")
 
int __init zcrypt_msgtype50_init (void)
 
void __exit zcrypt_msgtype50_exit (void)
 
 module_init (zcrypt_msgtype50_init)
 
 module_exit (zcrypt_msgtype50_exit)
 

Variables

struct type50_hdr __packed
 

Macro Definition Documentation

#define CEX2A_MAX_RESPONSE_SIZE   0x110 /* max outputdatalength + type80_hdr */

Definition at line 42 of file zcrypt_msgtype50.c.

#define CEX3A_MAX_MOD_SIZE   512 /* 4096 bits */

Definition at line 40 of file zcrypt_msgtype50.c.

#define CEX3A_MAX_RESPONSE_SIZE
Value:
0x210 /* 512 bit modulus
* (max outputdatalength) +
* type80_hdr*/

Definition at line 44 of file zcrypt_msgtype50.c.

#define TYPE50_CRB1_FMT   0x0011

Definition at line 78 of file zcrypt_msgtype50.c.

#define TYPE50_CRB2_FMT   0x0012

Definition at line 79 of file zcrypt_msgtype50.c.

#define TYPE50_CRB3_FMT   0x0013

Definition at line 80 of file zcrypt_msgtype50.c.

#define TYPE50_MEB1_FMT   0x0001

Definition at line 75 of file zcrypt_msgtype50.c.

#define TYPE50_MEB2_FMT   0x0002

Definition at line 76 of file zcrypt_msgtype50.c.

#define TYPE50_MEB3_FMT   0x0003

Definition at line 77 of file zcrypt_msgtype50.c.

#define TYPE50_TYPE_CODE   0x50

Definition at line 73 of file zcrypt_msgtype50.c.

#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 160 of file zcrypt_msgtype50.c.

Function Documentation

MODULE_AUTHOR ( "IBM Corporation"  )
MODULE_DESCRIPTION ( "Cryptographic Accelerator   message type 50,
""Copyright IBM Corp.  2001,
2012"   
)
module_exit ( zcrypt_msgtype50_exit  )
module_init ( zcrypt_msgtype50_init  )
MODULE_LICENSE ( "GPL"  )
void __exit zcrypt_msgtype50_exit ( void  )

Definition at line 523 of file zcrypt_msgtype50.c.

int __init zcrypt_msgtype50_init ( void  )

Definition at line 517 of file zcrypt_msgtype50.c.

Variable Documentation