Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0+ */
0002 /*
0003  *  Copyright IBM Corp. 2001, 2012
0004  *  Author(s): Robert Burroughs
0005  *         Eric Rossman (edrossma@us.ibm.com)
0006  *
0007  *  Hotplug & misc device support: Jochen Roehrig (roehrig@de.ibm.com)
0008  *  Major cleanup & driver split: Martin Schwidefsky <schwidefsky@de.ibm.com>
0009  *  MSGTYPE restruct:         Holger Dengler <hd@linux.vnet.ibm.com>
0010  */
0011 
0012 #ifndef _ZCRYPT_MSGTYPE50_H_
0013 #define _ZCRYPT_MSGTYPE50_H_
0014 
0015 #define MSGTYPE50_NAME          "zcrypt_msgtype50"
0016 #define MSGTYPE50_VARIANT_DEFAULT   0
0017 
0018 #define MSGTYPE50_CRB2_MAX_MSG_SIZE 0x390 /* sizeof(struct type50_crb2_msg) */
0019 #define MSGTYPE50_CRB3_MAX_MSG_SIZE 0x710 /* sizeof(struct type50_crb3_msg) */
0020 
0021 #define MSGTYPE_ADJUSTMENT 0x08  /* type04 extension (not needed in type50) */
0022 
0023 int get_rsa_modex_fc(struct ica_rsa_modexpo *mex, int *fc);
0024 int get_rsa_crt_fc(struct ica_rsa_modexpo_crt *crt, int *fc);
0025 
0026 void zcrypt_msgtype50_init(void);
0027 void zcrypt_msgtype50_exit(void);
0028 
0029 #endif /* _ZCRYPT_MSGTYPE50_H_ */