cachepc-linux

Fork of AMDESE/linux with modifications for CachePC side-channel attack
git clone https://git.sinitax.com/sinitax/cachepc-linux
Log | Files | Refs | README | LICENSE | sfeed.txt

zcrypt_msgtype50.h (981B)


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