Skip to content
Commit 140d8022 authored by Mimi Zohar's avatar Mimi Zohar
Browse files

ima: differentiate between template hash and file data hash sizes



The TPM v1.2 limits the template hash size to 20 bytes.  This
patch differentiates between the template hash size, as defined
in the ima_template_entry, and the file data hash size, as
defined in the ima_template_data.  Subsequent patches add support
for different file data hash algorithms.

Change log:
- hash digest definition in ima_store_template() should be TPM_DIGEST_SIZE

Signed-off-by: default avatarMimi Zohar <zohar@us.ibm.com>
parent a35c3fb6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment