Function report |
Source Code:security\keys\big_key.c |
Create Date:2022-07-28 18:28:31 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Preparse a big key
Proto:int big_key_preparse(struct key_preparsed_payload *prep)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct key_preparsed_payload * | prep |
| 203 | struct path * path = (struct path * ) & Raw data [big_key_path] |
| 207 | datalen = Raw datalen , enclen = datalen + Authentication tag length |
| 214 | Quota length for proposed payload = 16 |
| 216 | Raw data [big_key_len] = datalen |
| 224 | pos = 0 |
| 232 | enckey = Allocation memory |
| 233 | If Not enckey Then |
| 237 | ret = Calls wait_for_random_bytes() and then calls get_random_bytes(buf, nbytes).* Returns the result of the call to wait_for_random_bytes. |
| 238 | If Value for the false possibility is greater at compile time(ret) Then Go to err_enckey |
| 243 | If ret Then Go to err_enckey |
| 250 | Go to err_enckey |
| 264 | Raw data [big_key_data] = enckey |
| 269 | Else |
| 271 | data = Allocation memory |
| 276 | Raw data [big_key_data] = data |
| 277 | memcpy(data, Raw data , Raw datalen ) |
| 279 | Return 0 |
| 281 | err_fput : |
| 283 | err_enckey : |
| 285 | error : |
| 287 | Return ret |
| 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 |