From: Lakshmi Ramasubramanian <nramas@linux.microsoft.com>
To: Mimi Zohar <zohar@linux.ibm.com>, linux-integrity@vger.kernel.org
Cc: Jerry Snitselaar <jsnitsel@redhat.com>,
James Bottomley <James.Bottomley@HansenPartnership.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v3 2/2] ima: support calculating the boot_aggregate based on different TPM banks
Date: Thu, 30 Jan 2020 08:53:45 -0800 [thread overview]
Message-ID: <480498cc-861b-7efa-de6a-52bc651aad01@linux.microsoft.com> (raw)
In-Reply-To: <1580401363-5593-2-git-send-email-zohar@linux.ibm.com>
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
next prev parent reply other threads:[~2020-01-30 16:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-30 16:22 [PATCH v3 1/2] ima: support calculating the boot aggregate based on non-SHA1 algorithms Mimi Zohar
2020-01-30 16:22 ` [PATCH v3 2/2] ima: support calculating the boot_aggregate based on different TPM banks Mimi Zohar
2020-01-30 16:53 ` Lakshmi Ramasubramanian [this message]
2020-01-30 16:54 ` Roberto Sassu
2020-01-30 17:32 ` Mimi Zohar
2020-02-04 13:37 ` Roberto Sassu
2020-02-04 17:27 ` Mimi Zohar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=480498cc-861b-7efa-de6a-52bc651aad01@linux.microsoft.com \
--to=nramas@linux.microsoft.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=jsnitsel@redhat.com \
--cc=linux-integrity@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=zohar@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).