Function report |
Source Code:security\integrity\ima\ima_template_lib.c |
Create Date:2022-07-28 19:59:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:ima_eventdigest_init_common
Proto:static int ima_eventdigest_init_common(const u8 *digest, unsigned int digestsize, u8 hash_algo, struct ima_field_data *field_data)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
const u8 * | digest | |
unsigned int | digestsize | |
u8 | hash_algo | |
struct ima_field_data * | field_data |
240 | fmt = DATA_FMT_DIGEST |
241 | offset = 0 |
243 | If hash_algo < HASH_ALGO__LAST Then |
244 | fmt = DATA_FMT_DIGEST_WITH_ALGO |
248 | offset += 2 |
253 | Else offset += digest size for IMA, fits SHA1 or MD5 |
261 | Return ima_write_template_field_data(buffer, offset + digestsize, fmt, field_data) |
Name | Describe |
---|---|
ima_eventdigest_init | This function writes the digest of an event (with size limit). |
ima_eventdigest_ng_init | This function writes the digest of an event (without size limit). |
ima_eventdigest_modsig_init | This function writes the digest of the file which is expected to match the* digest contained in the file's appended signature. |
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 |