• Mimi Zohar's avatar
    ima: differentiate between template hash and file data hash sizes · 140d8022
    Mimi Zohar authored
    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>
    140d8022
ima_queue.c 3.87 KB