函数逻辑报告 | 
Source Code:security\keys\trusted-keys\trusted_tpm1.c | 
Create Date:2022-07-27 20:05:39 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:rusted_update - reseal an existing key with new PCR values
函数原型:static int trusted_update(struct key *key, struct key_preparsed_payload *prep)
返回类型:int
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| struct key * | key | |
| struct key_preparsed_payload * | prep | 
| 1059 | datalen等于Raw datalen | 
| 1061 | ret等于0 | 
| 1063 | 如果key_is_negative(key)则返回:负ENOKEY | 
| 1066 | 如果非migratable则返回:负EPERM | 
| 1074 | new_o等于trusted_options_alloc() | 
| 1075 | 如果非new_o则 | 
| 1079 | new_p等于trusted_payload_alloc(key) | 
| 1080 | 如果非new_p则 | 
| 1087 | ret等于datablob_parse - parse the keyctl data and fill in the* payload and options structures* On success returns 0, otherwise -EINVAL. | 
| 1088 | 如果ret不等于Opt_update则 | 
| 1091 | 转到:out | 
| 1094 | 如果非keyhandle则 | 
| 1097 | 转到:out | 
| 1101 | migratable等于migratable | 
| 1104 | dump_payload(p) | 
| 1105 | dump_payload(new_p) | 
| 1108 | 如果ret小于0则 | 
| 1111 | 转到:out | 
| 1113 | 如果pcrlock则 | 
| 1114 | ret等于Lock a trusted key, by extending a selected PCR.* Prevents a trusted key that is sealed to PCRs from being accessed.* This uses the tpm driver's extend function. | 
| 1115 | 如果ret小于0则 | 
| 1118 | 转到:out | 
| 1121 | rcu_assign_keypointer(key, new_p) | 
| 1123 | out : | 
| 1126 | 返回:ret | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |