[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <480498cc-861b-7efa-de6a-52bc651aad01@linux.microsoft.com>
Date: Thu, 30 Jan 2020 08:53:45 -0800
From: Lakshmi Ramasubramanian <nramas@...ux.microsoft.com>
To: Mimi Zohar <zohar@...ux.ibm.com>, linux-integrity@...r.kernel.org
Cc: Jerry Snitselaar <jsnitsel@...hat.com>,
James Bottomley <James.Bottomley@...senPartnership.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 2/2] ima: support calculating the boot_aggregate based
on different TPM banks
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
Powered by blists - more mailing lists