函数逻辑报告 |
Source Code:security\keys\trusted-keys\trusted_tpm1.c |
Create Date:2022-07-27 20:04:16 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:verify the AUTH1_COMMAND (Seal) result from TPM
函数原型:int TSS_checkhmac1(unsigned char *buffer, const uint32_t command, const unsigned char *ononce, const unsigned char *key, unsigned int keylen, ...)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned char * | buffer | |
const uint32_t | command | |
const unsigned char * | ononce | |
const unsigned char * | key | |
unsigned int | keylen |
201 | bufsize等于LOAD32(buffer, TPM_SIZE_OFFSET) |
204 | result等于LOAD32N(buffer, TPM_RETURN_OFFSET) |
205 | 如果tag恒等于TPM_TAG_RSP_COMMAND则返回:0 |
207 | 如果tag不等于TPM_TAG_RSP_AUTH1_COMMAND则返回:负EINVAL |
210 | continueflag等于authdata减1 |
213 | sdesc等于init_sdesc(hashalg) |
214 | 如果是错误则 |
230 | 循环 |
245 | ret等于TSS_rawhmac(testhmac, key, keylen, SHA1_DIGEST_SIZE, paramdigest, TPM_NONCE_SIZE, enonce, TPM_NONCE_SIZE, ononce, 1, continueflag, 0, 0) |
253 | out : |
255 | 返回:ret |
名称 | 描述 |
---|---|
tpm_seal | Have the TPM seal(encrypt) the trusted key, possibly based on* Platform Configuration Registers (PCRs). AUTH1 for sealing key. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |