Lines Matching full:digest
226 static int ima_eventdigest_init_common(const u8 *digest, u32 digestsize, in ima_eventdigest_init_common() argument
231 * digest formats: in ima_eventdigest_init_common()
232 * - DATA_FMT_DIGEST: digest in ima_eventdigest_init_common()
233 * - DATA_FMT_DIGEST_WITH_ALGO: [<hash algo>] + ':' + '\0' + digest, in ima_eventdigest_init_common()
249 if (digest) in ima_eventdigest_init_common()
250 memcpy(buffer + offset, digest, digestsize); in ima_eventdigest_init_common()
253 * If digest is NULL, the event being recorded is a violation. in ima_eventdigest_init_common()
254 * Make room for the digest by increasing the offset of in ima_eventdigest_init_common()
264 * This function writes the digest of an event (with size limit).
271 char digest[IMA_MAX_DIGEST_SIZE]; in ima_eventdigest_init() member
284 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_init()
302 cur_digest = hash.hdr.digest; in ima_eventdigest_init()
307 if (!event_data->file) /* missing info to re-calculate the digest */ in ima_eventdigest_init()
320 cur_digest = hash.hdr.digest; in ima_eventdigest_init()
328 * This function writes the digest of an event (without size limit).
339 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ng_init()
349 * This function writes the digest of the file which is expected to match the
350 * digest contained in the file's appended signature.
375 /* There was some error collecting the digest. */ in ima_eventdigest_modsig_init()