4 * Copyright IBM Corp. 2001, 2012
5 * Author(s): Robert Burroughs
6 * Eric Rossman (edrossma@us.ibm.com)
8 * Hotplug & misc device support: Jochen Roehrig (roehrig@de.ibm.com)
9 * Major cleanup & driver split: Martin Schwidefsky <schwidefsky@de.ibm.com>
10 * MSGTYPE restruct: Holger Dengler <hd@linux.vnet.ibm.com>
12 * This program is free software; you can redistribute it and/or modify
13 * it under the terms of the GNU General Public License as published by
14 * the Free Software Foundation; either version 2, or (at your option)
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 #ifndef _ZCRYPT_MSGTYPE50_H_
28 #define _ZCRYPT_MSGTYPE50_H_
30 #define MSGTYPE50_NAME "zcrypt_msgtype50"
31 #define MSGTYPE50_VARIANT_DEFAULT 0
33 #define MSGTYPE50_CRB2_MAX_MSG_SIZE 0x390 /*sizeof(struct type50_crb2_msg)*/
34 #define MSGTYPE50_CRB3_MAX_MSG_SIZE 0x710 /*sizeof(struct type50_crb3_msg)*/
36 #define MSGTYPE_ADJUSTMENT 0x08 /*type04 extension (not needed in type50)*/
38 unsigned int get_rsa_modex_fc(struct ica_rsa_modexpo *, int *);
39 unsigned int get_rsa_crt_fc(struct ica_rsa_modexpo_crt *, int *);
41 void zcrypt_msgtype50_init(void);
42 void zcrypt_msgtype50_exit(void);
44 #endif /* _ZCRYPT_MSGTYPE50_H_ */