mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 14:19:16 +00:00
tpm: move TPM_DIGEST_SIZE defintion
IMA requires access to TPM_DIGEST_SIZE definition. This patch moves the definition to <linux/tpm.h>. Signed-off-by: Mimi Zohar <zohar@us.ibm.com> Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
This commit is contained in:
parent
4fba3c3ba5
commit
1c16c9636c
2 changed files with 2 additions and 1 deletions
|
@ -272,7 +272,6 @@ typedef union {
|
||||||
struct tpm_output_header out;
|
struct tpm_output_header out;
|
||||||
} tpm_cmd_header;
|
} tpm_cmd_header;
|
||||||
|
|
||||||
#define TPM_DIGEST_SIZE 20
|
|
||||||
struct tpm_pcrread_out {
|
struct tpm_pcrread_out {
|
||||||
u8 pcr_result[TPM_DIGEST_SIZE];
|
u8 pcr_result[TPM_DIGEST_SIZE];
|
||||||
} __packed;
|
} __packed;
|
||||||
|
|
|
@ -22,6 +22,8 @@
|
||||||
#ifndef __LINUX_TPM_H__
|
#ifndef __LINUX_TPM_H__
|
||||||
#define __LINUX_TPM_H__
|
#define __LINUX_TPM_H__
|
||||||
|
|
||||||
|
#define TPM_DIGEST_SIZE 20 /* Max TPM v1.2 PCR size */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Chip num is this value or a valid tpm idx
|
* Chip num is this value or a valid tpm idx
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue