ima: differentiate between template hash and file data hash sizes
authorMimi Zohar <zohar@linux.vnet.ibm.com>
Tue, 12 Mar 2013 00:29:47 +0000 (20:29 -0400)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Fri, 25 Oct 2013 21:17:00 +0000 (17:17 -0400)
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>
security/integrity/ima/ima.h
security/integrity/ima/ima_api.c
security/integrity/ima/ima_crypto.c
security/integrity/ima/ima_fs.c
security/integrity/ima/ima_init.c
security/integrity/ima/ima_queue.c

Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge