Lines Matching full:digest
289 static int ima_eventdigest_init_common(const u8 *digest, u32 digestsize, in ima_eventdigest_init_common() argument
294 * digest formats: in ima_eventdigest_init_common()
295 * - DATA_FMT_DIGEST: digest in ima_eventdigest_init_common()
296 * - DATA_FMT_DIGEST_WITH_ALGO: <hash algo> + ':' + '\0' + digest, in ima_eventdigest_init_common()
298 * <digest type> + ':' + <hash algo> + ':' + '\0' + digest, in ima_eventdigest_init_common()
300 * where 'DATA_FMT_DIGEST' is the original digest format ('d') in ima_eventdigest_init_common()
302 * where <digest type> is either "ima" or "verity", in ima_eventdigest_init_common()
321 if (digest) { in ima_eventdigest_init_common()
322 memcpy(buffer + offset, digest, digestsize); in ima_eventdigest_init_common()
325 * If digest is NULL, the event being recorded is a violation. in ima_eventdigest_init_common()
326 * Make room for the digest by increasing the offset by the in ima_eventdigest_init_common()
327 * hash algorithm digest size. If the hash algorithm is not in ima_eventdigest_init_common()
342 * This function writes the digest of an event (with size limit).
359 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_init()
377 cur_digest = hash.hdr.digest; in ima_eventdigest_init()
382 if (!event_data->file) /* missing info to re-calculate the digest */ in ima_eventdigest_init()
395 cur_digest = hash.hdr.digest; in ima_eventdigest_init()
404 * This function writes the digest of an event (without size limit).
415 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ng_init()
426 * This function writes the digest of an event (without size limit),
427 * prefixed with both the digest type and hash algorithm.
439 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ngv2_init()
452 * This function writes the digest of the file which is expected to match the
453 * digest contained in the file's appended signature.
478 /* There was some error collecting the digest. */ in ima_eventdigest_modsig_init()