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

Go to the source code of this file.

Macros

#define CEX2A_MIN_MOD_SIZE   1 /* 8 bits */
 
#define CEX2A_MAX_MOD_SIZE   256 /* 2048 bits */
 
#define CEX3A_MIN_MOD_SIZE   CEX2A_MIN_MOD_SIZE
 
#define CEX3A_MAX_MOD_SIZE   512 /* 4096 bits */
 
#define CEX2A_SPEED_RATING   970
 
#define CEX3A_SPEED_RATING   900 /* Fixme: Needs finetuning */
 
#define CEX2A_MAX_MESSAGE_SIZE   0x390 /* sizeof(struct type50_crb2_msg) */
 
#define CEX2A_MAX_RESPONSE_SIZE   0x110 /* max outputdatalength + type80_hdr */
 
#define CEX3A_MAX_RESPONSE_SIZE
 
#define CEX3A_MAX_MESSAGE_SIZE   sizeof(struct type50_crb3_msg)
 
#define CEX2A_CLEANUP_TIME   (15*HZ)
 
#define CEX3A_CLEANUP_TIME   CEX2A_CLEANUP_TIME
 

Functions

 MODULE_DEVICE_TABLE (ap, zcrypt_cex2a_ids)
 
 MODULE_AUTHOR ("IBM Corporation")
 
 MODULE_DESCRIPTION ("CEX2A Cryptographic Coprocessor device driver, ""Copyright IBM Corp. 2001, 2012")
 
 MODULE_LICENSE ("GPL")
 
int __init zcrypt_cex2a_init (void)
 
void __exit zcrypt_cex2a_exit (void)
 
 module_init (zcrypt_cex2a_init)
 
 module_exit (zcrypt_cex2a_exit)
 

Macro Definition Documentation

#define CEX2A_CLEANUP_TIME   (15*HZ)

Definition at line 55 of file zcrypt_cex2a.c.

#define CEX2A_MAX_MESSAGE_SIZE   0x390 /* sizeof(struct type50_crb2_msg) */

Definition at line 49 of file zcrypt_cex2a.c.

#define CEX2A_MAX_MOD_SIZE   256 /* 2048 bits */

Definition at line 42 of file zcrypt_cex2a.c.

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

Definition at line 50 of file zcrypt_cex2a.c.

#define CEX2A_MIN_MOD_SIZE   1 /* 8 bits */

Definition at line 41 of file zcrypt_cex2a.c.

#define CEX2A_SPEED_RATING   970

Definition at line 46 of file zcrypt_cex2a.c.

#define CEX3A_CLEANUP_TIME   CEX2A_CLEANUP_TIME

Definition at line 56 of file zcrypt_cex2a.c.

#define CEX3A_MAX_MESSAGE_SIZE   sizeof(struct type50_crb3_msg)

Definition at line 53 of file zcrypt_cex2a.c.

#define CEX3A_MAX_MOD_SIZE   512 /* 4096 bits */

Definition at line 44 of file zcrypt_cex2a.c.

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

Definition at line 52 of file zcrypt_cex2a.c.

#define CEX3A_MIN_MOD_SIZE   CEX2A_MIN_MOD_SIZE

Definition at line 43 of file zcrypt_cex2a.c.

#define CEX3A_SPEED_RATING   900 /* Fixme: Needs finetuning */

Definition at line 47 of file zcrypt_cex2a.c.

Function Documentation

MODULE_AUTHOR ( "IBM Corporation"  )
MODULE_DESCRIPTION ( "CEX2A Cryptographic Coprocessor device  driver,
""Copyright IBM Corp.  2001,
2012"   
)
MODULE_DEVICE_TABLE ( ap  ,
zcrypt_cex2a_ids   
)
module_exit ( zcrypt_cex2a_exit  )
module_init ( zcrypt_cex2a_init  )
MODULE_LICENSE ( "GPL"  )
void __exit zcrypt_cex2a_exit ( void  )

Definition at line 156 of file zcrypt_cex2a.c.

int __init zcrypt_cex2a_init ( void  )

Definition at line 151 of file zcrypt_cex2a.c.