函数逻辑报告 |
Source Code:security\keys\trusted-keys\trusted_tpm2.c |
Create Date:2022-07-27 20:06:12 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:pm2_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.
函数原型:static int tpm2_load_cmd(struct tpm_chip *chip, struct trusted_key_payload *payload, struct trusted_key_options *options, unsigned int *blob_handle)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct tpm_chip * | chip | |
| struct trusted_key_payload * | payload | |
| struct trusted_key_options * | options | |
| unsigned int * | blob_handle |
| 187 | private_len等于be16_to_cpup((__be16 * ) & blob[0]) |
| 188 | 如果private_len大于blob_len减2则返回:负E2BIG |
| 191 | public_len等于be16_to_cpup((__be16 * ) & blob[2 + private_len]) |
| 192 | blob_len等于private_len加public_len加4 |
| 196 | rc等于tpm_buf_init( & buf, TPM2_ST_SESSIONS, TPM2_CC_LOAD) |
| 200 | tpm_buf_append_u32( & buf, keyhandle) |
| 207 | tpm_buf_append( & buf, blob, blob_len) |
| 209 | 如果flags按位与TPM_BUF_OVERFLOW则 |
| 215 | 如果非rc则blob_handle等于be32_to_cpup((__be32 * ) & data[TPM_HEADER_SIZE]) |
| 219 | out : |
| 220 | tpm_buf_destroy( & buf) |
| 225 | 返回:rc |
| 名称 | 描述 |
|---|---|
| tpm2_unseal_trusted | pm2_unseal_trusted() - unseal 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: Same as with tpm_send. |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |