missing barriers in some of unix_sock ->addr and ->path accesses
[linux-2.6-block.git] / include / crypto / asym_tpm_subtype.h
CommitLineData
903be6bb
DK
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
7struct tpm_key {
8 void *blob;
9 u32 blob_len;
f8c54e1a
DK
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 */
903be6bb
DK
13};
14
15struct tpm_key *tpm_key_create(const void *blob, uint32_t blob_len);
16
17extern struct asymmetric_key_subtype asym_tpm_subtype;
18
19#endif /* _LINUX_ASYM_TPM_SUBTYPE_H */