Function report | 
Source Code:security\keys\trusted-keys\trusted_tpm1.c | 
Create Date:2022-07-28 18:31:14 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:datablob_parse - parse the keyctl data and fill in the* payload and options structures* On success returns 0, otherwise -EINVAL.
Proto:static int datablob_parse(char *datablob, struct trusted_key_payload *p, struct trusted_key_options *o)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| char * | datablob | |
| struct trusted_key_payload * | p | |
| struct trusted_key_options * | o | 
| 863 | key_cmd = match_token(c, key_tokens, args) | 
| 871 | If ret < 0 || keylen < MIN_KEY_SIZE || keylen > MAX_KEY_SIZE Then Return -EINVAL | 
| 878 | Break | 
| 885 | If blob_len > MAX_BLOB_SIZE Then Return -EINVAL | 
| 894 | Break | 
| 895 | Case key_cmd == Opt_update | 
| 900 | ret = Opt_update | 
| 901 | Break | 
| 903 | Return -EINVAL | 
| 904 | Break | 
| 906 | Return ret | 
| Name | Describe | 
|---|---|
| trusted_instantiate | rusted_instantiate - create a new trusted key* Unseal an existing trusted blob or, for a new key, get a* random key, then seal and create a trusted key-type key,* adding it to the specified keyring.* On success, return 0. Otherwise return errno. | 
| trusted_update | rusted_update - reseal an existing key with new PCR values | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |