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: Mimi Zohar <zohar@us.ibm.com>
This commit is contained in:
Mimi Zohar
2013-03-11 20:29:47 -04:00
parent a35c3fb649
commit 140d802240
6 changed files with 12 additions and 12 deletions

View File

@@ -74,7 +74,7 @@ err_out:
int __init ima_init(void)
{
u8 pcr_i[IMA_DIGEST_SIZE];
u8 pcr_i[TPM_DIGEST_SIZE];
int rc;
ima_used_chip = 0;