Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\tpm.h Create Date:2022-07-28 18:29:24
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:tpm_buf_init

Proto:static inline int tpm_buf_init(struct tpm_buf *buf, u16 tag, unsigned int ordinal)

Type:int

Parameter:

TypeParameterName
struct tpm_buf *buf
u16tag
unsigned intordinal
323  data = __get_free_page(GFP_KERNEL)
324  If Not data Then Return -ENOMEM
327  flags = 0
328  tpm_buf_reset(buf, tag, ordinal)
329  Return 0
Caller
NameDescribe
key_sealHave the TPM seal(encrypt) the symmetric key
key_unsealHave the TPM unseal(decrypt) the symmetric key
tpm2_seal_trustedpm2_seal_trusted() - seal the payload of a trusted key*@chip: TPM chip to use*@payload: the key data in clear and encrypted form*@options: authentication values and other options* Return: < 0 on error and 0 on success.
tpm2_load_cmdpm2_load_cmd() - execute a TPM2_Load command*@chip: TPM chip to use*@payload: the key data in clear and encrypted form*@options: authentication values and other options*@blob_handle: returned blob handle* Return: 0 on success.
tpm2_unseal_cmdpm2_unseal_cmd() - execute a TPM2_Unload command*@chip: TPM chip to use*@payload: the key data in clear and encrypted form*@options: authentication values and other options*@blob_handle: blob handle* Return: 0 on success* -EPERM on tpm error status* < 0