From: Holger Dengler <dengler@linux.ibm.com>
To: Herbert Xu <herbert@gondor.apana.org.au>,
Harald Freudenberger <freude@linux.ibm.com>,
linux-s390@vger.kernel.org,
Linux Crypto Mailing List <linux-crypto@vger.kernel.org>
Subject: Re: s390 hmac
Date: Mon, 24 Mar 2025 08:50:21 +0100 [thread overview]
Message-ID: <b7bf79e9-9b75-462c-9c25-71dbc708760d@linux.ibm.com> (raw)
In-Reply-To: <Z-AJFwndherQBH2W@gondor.apana.org.au>
Hi Herbert,
On 23/03/2025 14:13, Herbert Xu wrote:
> Hi Harald:
>
> I'm working on making the export format of hash algorithms compatible
> so that you can switch between implementations seamlessly.
>
> I've got a question about the s390 hmac implementation. How does
> the hardware tell if it's the first update (where the cv from the
> param block contains undefined state) or not? Is it a bit in
> s390_kmac_gr0 or is it the imbl?
The bit s390_kmac_gr0.ikp indicates, if the instruction has processed the inner key padding or not. The bit is zeroed at init() and the first instruction call for a context will set this bit to 1 and update the cv. So, if this bit is 0, the cv in param block contains undefined state.
>
> Thanks,
--
Mit freundlichen Grüßen / Kind regards
Holger Dengler
--
IBM Systems, Linux on IBM Z Development
dengler@linux.ibm.com
next prev parent reply other threads:[~2025-03-24 7:50 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-23 13:13 s390 hmac Herbert Xu
2025-03-24 7:50 ` Holger Dengler [this message]
2025-03-24 8:07 ` Herbert Xu
2025-03-24 10:04 ` Harald Freudenberger
2025-03-25 8:22 ` Herbert Xu
2025-03-25 18:10 ` Holger Dengler
2025-03-26 0:54 ` Herbert Xu
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=b7bf79e9-9b75-462c-9c25-71dbc708760d@linux.ibm.com \
--to=dengler@linux.ibm.com \
--cc=freude@linux.ibm.com \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
/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