| /* SPDX-License-Identifier: GPL-2.0-only */ |
| * Copyright (C) 2010 IBM Corporation |
| * Author: David Safford <safford@us.ibm.com> |
| #ifndef _KEYS_TRUSTED_TYPE_H |
| #define _KEYS_TRUSTED_TYPE_H |
| #include <linux/rcupdate.h> |
| #define MAX_BLOB_SIZE 512 |
| #define MAX_PCRINFO_SIZE 64 |
| #define MAX_DIGEST_SIZE 64 |
| struct trusted_key_payload { |
| unsigned char migratable; |
| unsigned char key[MAX_KEY_SIZE + 1]; |
| unsigned char blob[MAX_BLOB_SIZE]; |
| struct trusted_key_options { |
| unsigned char keyauth[TPM_DIGEST_SIZE]; |
| unsigned char blobauth[TPM_DIGEST_SIZE]; |
| unsigned char pcrinfo[MAX_PCRINFO_SIZE]; |
| uint32_t policydigest_len; |
| unsigned char policydigest[MAX_DIGEST_SIZE]; |
| extern struct key_type key_type_trusted; |
| #endif /* _KEYS_TRUSTED_TYPE_H */ |