函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:tpm_send

函数原型:static inline int tpm_send(struct tpm_chip *chip, void *cmd, size_t buflen)

返回类型:int

参数:

类型参数名称
struct tpm_chip *chip
void *cmd
size_tbuflen
427  返回:负ENODEV
调用者
名称描述
trusted_tpm_sendFor key specific tpm requests, we will generate and send our* own TPM command packets using the drivers send function.
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