函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Create an object independent authorisation protocol (oiap) session

函数原型:int oiap(struct tpm_buf *tb, uint32_t *handle, unsigned char *nonce)

返回类型:int

参数:

类型参数名称
struct tpm_buf *tb
uint32_t *handle
unsigned char *nonce
434  如果非chip则返回:负ENODEV
437  tpm_buf_reset(tb, Command TAGS , TPM_ORD_OIAP)
438  ret等于For key specific tpm requests, we will generate and send our* own TPM command packets using the drivers send function.
439  如果ret小于0则返回:ret
442  handle等于LOAD32(data, TPM_DATA_OFFSET)
443  memcpy(nonce, & data[TPM_DATA_OFFSET + sizeof(uint32_t)], TPM_NONCE_SIZE)
445  返回:0
调用者
名称描述
tpm_unsealse the AUTH2_COMMAND form of unseal, to authorize both key and blob