1 // SPDX-License-Identifier: GPL-2.0
2 #ifndef _LINUX_ASYM_TPM_SUBTYPE_H
3 #define _LINUX_ASYM_TPM_SUBTYPE_H
4 
5 #include <linux/keyctl.h>
6 
7 struct tpm_key {
8 	void *blob;
9 	u32 blob_len;
10 	uint16_t key_len; /* Size in bits of the key */
11 	const void *pub_key; /* pointer inside blob to the public key bytes */
12 	uint16_t pub_key_len; /* length of the public key */
13 };
14 
15 struct tpm_key *tpm_key_create(const void *blob, uint32_t blob_len);
16 
17 extern struct asymmetric_key_subtype asym_tpm_subtype;
18 
19 #endif /* _LINUX_ASYM_TPM_SUBTYPE_H */
20