Function report |
Source Code:security\integrity\ima\ima_crypto.c |
Create Date:2022-07-28 19:58:32 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Calculate the hash of template data
Proto:static int ima_calc_field_array_hash_tfm(struct ima_field_data *field_data, struct ima_template_desc *td, int num_fields, struct ima_digest_data *hash, struct crypto_shash *tfm)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct ima_field_data * | field_data | |
struct ima_template_desc * | td | |
int | num_fields | |
struct ima_digest_data * | hash | |
struct crypto_shash * | tfm |
472 | SHASH_DESC_ON_STACK(shash, tfm) |
483 | When i < num_fields cycle |
485 | data_to_hash = data |
487 | datalen_to_hash = If Not ima_canonical_fmt Then datalen Else cpu_to_le32(datalen) |
490 | If strcmp(name, IMA_TEMPLATE_IMA_NAME) != 0 Then |
494 | If rc Then Break |
497 | memcpy(buffer, data_to_hash, datalen) |
498 | data_to_hash = buffer |
499 | datalen = IMA_EVENT_NAME_LEN_MAX + 1 |
502 | If rc Then Break |
509 | Return rc |
Name | Describe |
---|---|
ima_calc_field_array_hash |
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 |