函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\tpm.h Create Date:2022-07-27 20:03:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:tpm_buf_append

函数原型:static inline void tpm_buf_append(struct tpm_buf *buf, const unsigned char *new_data, unsigned int new_len)

返回类型:void

参数:

类型参数名称
struct tpm_buf *buf
const unsigned char *new_data
unsigned intnew_len
355  head等于data
356  len等于tpm_buf_length(buf)
359  如果flags按位与TPM_BUF_OVERFLOW则返回
362  如果lennew_len大于PAGE_SIZE
363  WARN(1, "tpm_buf: overflow\n")
364  flags或等于TPM_BUF_OVERFLOW
365  返回
368  memcpy( & data[len], new_data, new_len)
369  length等于cpu_to_be32(len + new_len)
调用者
名称描述
osapCreate an object specific authorisation protocol (OSAP) session
tpm_sealHave the TPM seal(encrypt) the trusted key, possibly based on* Platform Configuration Registers (PCRs). AUTH1 for sealing key.
tpm_unsealse the AUTH2_COMMAND form of unseal, to authorize both key and blob
tpm2_buf_append_authpm_buf_append_auth() - append TPMS_AUTH_COMMAND to the buffer
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.
tpm_buf_append_u8
tpm_buf_append_u16
tpm_buf_append_u32