函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\keys\trusted-keys\trusted_tpm2.c Create Date:2022-07-27 20:05:59
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:pm_buf_append_auth() - append TPMS_AUTH_COMMAND to the buffer

函数原型:static void tpm2_buf_append_auth(struct tpm_buf *buf, unsigned int session_handle, const u8 *nonce, u16 nonce_len, u8 attributes, const u8 *hmac, u16 hmac_len)

返回类型:void

参数:

类型参数名称
struct tpm_buf *buf
unsigned intsession_handle
const u8 *nonce
u16nonce_len
u8attributes
const u8 *hmac
u16hmac_len
39  tpm_buf_append_u32(buf, 9 + nonce_len + hmac_len)
40  tpm_buf_append_u32(buf, session_handle)
41  tpm_buf_append_u16(buf, nonce_len)
43  如果noncenonce_lentpm_buf_append(buf, nonce, nonce_len)
46  tpm_buf_append_u8(buf, attributes)
47  tpm_buf_append_u16(buf, hmac_len)
49  如果hmachmac_lentpm_buf_append(buf, hmac, hmac_len)
调用者
名称描述
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