函数逻辑报告 |
Source Code:security\keys\trusted-keys\trusted_tpm1.c |
Create Date:2022-07-27 20:04:56 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:se the AUTH2_COMMAND form of unseal, to authorize both key and blob
函数原型:static int tpm_unseal(struct tpm_buf *tb, uint32_t keyhandle, const unsigned char *keyauth, const unsigned char *blob, int bloblen, const unsigned char *blobauth, unsigned char *data, unsigned int *datalen)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct tpm_buf * | tb | |
uint32_t | keyhandle | |
const unsigned char * | keyauth | |
const unsigned char * | blob | |
int | bloblen | |
const unsigned char * | blobauth | |
unsigned char * | data | |
unsigned int * | datalen |
584 | authhandle1等于0 |
585 | authhandle2等于0 |
586 | cont等于0 |
592 | 如果ret小于0则 |
597 | 如果ret小于0则 |
602 | ordinal等于htonl(TPM_ORD_UNSEAL) |
603 | ret等于tpm_get_random(chip, nonceodd, TPM_NONCE_SIZE) |
604 | 如果ret不等于TPM_NONCE_SIZE则 |
621 | tpm_buf_append_u32(tb, keyhandle) |
622 | tpm_buf_append(tb, blob, bloblen) |
623 | tpm_buf_append_u32(tb, authhandle1) |
624 | tpm_buf_append(tb, nonceodd, TPM_NONCE_SIZE) |
625 | tpm_buf_append_u8(tb, cont) |
627 | tpm_buf_append_u32(tb, authhandle2) |
628 | tpm_buf_append(tb, nonceodd, TPM_NONCE_SIZE) |
629 | tpm_buf_append_u8(tb, cont) |
632 | ret等于For key specific tpm requests, we will generate and send our* own TPM command packets using the drivers send function. |
633 | 如果ret小于0则 |
638 | datalen等于LOAD32(data, TPM_DATA_OFFSET) |
645 | 如果ret小于0则 |
650 | 返回:0 |
名称 | 描述 |
---|---|
key_unseal | Have the TPM unseal(decrypt) the symmetric key |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |