diff options
author | Denis Kenzior <denkenz@gmail.com> | 2018-10-09 12:48:02 -0400 |
---|---|---|
committer | James Morris <james.morris@microsoft.com> | 2018-10-26 04:30:46 -0400 |
commit | 903be6bb84c544551150a6f5aab9fda1ed9a6895 (patch) | |
tree | 6f928c9ef96fc34d19b6041ece54a5a30cfe7ae4 /include/crypto | |
parent | b3a8c8a5ebb5b4c3eb7b104364e63c453cc85f14 (diff) |
KEYS: asym_tpm: add skeleton for asym_tpm [ver #2]
This patch adds the basic skeleton for the asym_tpm asymmetric key
subtype.
Signed-off-by: Denis Kenzior <denkenz@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Marcel Holtmann <marcel@holtmann.org>
Reviewed-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: James Morris <james.morris@microsoft.com>
Diffstat (limited to 'include/crypto')
-rw-r--r-- | include/crypto/asym_tpm_subtype.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/include/crypto/asym_tpm_subtype.h b/include/crypto/asym_tpm_subtype.h new file mode 100644 index 000000000000..03550b850998 --- /dev/null +++ b/include/crypto/asym_tpm_subtype.h | |||
@@ -0,0 +1,16 @@ | |||
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 | }; | ||
11 | |||
12 | struct tpm_key *tpm_key_create(const void *blob, uint32_t blob_len); | ||
13 | |||
14 | extern struct asymmetric_key_subtype asym_tpm_subtype; | ||
15 | |||
16 | #endif /* _LINUX_ASYM_TPM_SUBTYPE_H */ | ||