]>
Commit | Line | Data |
---|---|---|
812141a9 | 1 | // SPDX-License-Identifier: GPL-2.0+ |
5e55a488 HD |
2 | /* |
3 | * zcrypt 2.1.0 | |
4 | * | |
5 | * Copyright IBM Corp. 2001, 2012 | |
6 | * Author(s): Robert Burroughs | |
7 | * Eric Rossman (edrossma@us.ibm.com) | |
8 | * | |
9 | * Hotplug & misc device support: Jochen Roehrig (roehrig@de.ibm.com) | |
10 | * Major cleanup & driver split: Martin Schwidefsky <schwidefsky@de.ibm.com> | |
11 | * MSGTYPE restruct: Holger Dengler <hd@linux.vnet.ibm.com> | |
5e55a488 HD |
12 | */ |
13 | ||
14 | #ifndef _ZCRYPT_MSGTYPE50_H_ | |
15 | #define _ZCRYPT_MSGTYPE50_H_ | |
16 | ||
17 | #define MSGTYPE50_NAME "zcrypt_msgtype50" | |
18 | #define MSGTYPE50_VARIANT_DEFAULT 0 | |
19 | ||
20 | #define MSGTYPE50_CRB2_MAX_MSG_SIZE 0x390 /*sizeof(struct type50_crb2_msg)*/ | |
21 | #define MSGTYPE50_CRB3_MAX_MSG_SIZE 0x710 /*sizeof(struct type50_crb3_msg)*/ | |
22 | ||
1e466fcf IT |
23 | #define MSGTYPE_ADJUSTMENT 0x08 /*type04 extension (not needed in type50)*/ |
24 | ||
34a15167 IT |
25 | unsigned int get_rsa_modex_fc(struct ica_rsa_modexpo *, int *); |
26 | unsigned int get_rsa_crt_fc(struct ica_rsa_modexpo_crt *, int *); | |
27 | ||
fc1d3f02 | 28 | void zcrypt_msgtype50_init(void); |
5e55a488 HD |
29 | void zcrypt_msgtype50_exit(void); |
30 | ||
31 | #endif /* _ZCRYPT_MSGTYPE50_H_ */ |