lkml.org 
[lkml]   [2020]   [Jan]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v3 2/2] ima: support calculating the boot_aggregate based on different TPM banks
From
Date
On 1/30/2020 8:22 AM, Mimi Zohar wrote:

> +static enum hash_algo get_hash_algo(const char *algname)
> +{
> + int i;
> +
> + for (i = 0; i < HASH_ALGO__LAST; i++) {
> + if (strcmp(algname, hash_algo_name[i]) == 0)
> + break;
> + }
> +
> + return i;
> +}
> +

ima_digest_data is passed to ima_calc_boot_aggregate(). This struct
contains the hash_algo. Can that be passed to
ima_calc_boot_aggregate_tfm() instead of using the above function to get
the hash_algo?

-lakshmi

\
 
 \ /
  Last update: 2020-01-30 17:53    [W:0.053 / U:1.248 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site