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. in ima_eventdigest_init_common()
336 * This function writes the digest of an event (with size limit).
353 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_init()
371 cur_digest = hash.hdr.digest; in ima_eventdigest_init()
376 if (!event_data->file) /* missing info to re-calculate the digest */ in ima_eventdigest_init()
389 cur_digest = hash.hdr.digest; in ima_eventdigest_init()
398 * This function writes the digest of an event (without size limit).
409 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ng_init()
420 * This function writes the digest of an event (without size limit),
421 * prefixed with both the digest type and hash algorithm.
433 cur_digest = event_data->iint->ima_hash->digest; in ima_eventdigest_ngv2_init()
446 * This function writes the digest of the file which is expected to match the
447 * digest contained in the file's appended signature.
472 /* There was some error collecting the digest. */ in ima_eventdigest_modsig_init()