函数逻辑报告 |
Source Code:security\keys\trusted-keys\trusted_tpm1.c |
Create Date:2022-07-27 20:04:08 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:alculate authorization info fields to send to TPM
函数原型:int TSS_authhmac(unsigned char *digest, const unsigned char *key, unsigned int keylen, unsigned char *h1, unsigned char *h2, unsigned int h3, ...)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned char * | digest | |
const unsigned char * | key | |
unsigned int | keylen | |
unsigned char * | h1 | |
unsigned char * | h2 | |
unsigned int | h3 |
137 | sdesc等于init_sdesc(hashalg) |
138 | 如果是错误则 |
148 | 循环 |
153 | 如果非data则 |
164 | 如果非ret则ret等于TSS_rawhmac(digest, key, keylen, SHA1_DIGEST_SIZE, paramdigest, TPM_NONCE_SIZE, h1, TPM_NONCE_SIZE, h2, 1, & c, 0, 0) |
168 | out : |
170 | 返回:ret |
名称 | 描述 |
---|---|
tpm_seal | Have the TPM seal(encrypt) the trusted key, possibly based on* Platform Configuration Registers (PCRs). AUTH1 for sealing key. |
tpm_unseal | se the AUTH2_COMMAND form of unseal, to authorize both key and blob |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |