linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Harald Freudenberger <freude@linux.ibm.com>
To: ebiggers@google.com
Cc: linux-s390@vger.kernel.org, linux-crypto@vger.kernel.org,
	davem@davemloft.net, dengler@linux.ibm.com,
	herbert@gondor.apana.org.au
Subject: Re: [PATCH v10 2/5] s390/crypto: New s390 specific protected key hash phmac
Date: Tue, 11 Feb 2025 13:09:12 +0100	[thread overview]
Message-ID: <265b5abbf32fcb6748abad7d0ec360cc@linux.ibm.com> (raw)
In-Reply-To: <20250115162231.83516-3-freude@linux.ibm.com>

On 2025-01-15 17:22, Harald Freudenberger wrote:
> Add support for protected key hmac ("phmac") for s390 arch.
> 
> With the latest machine generation there is now support for
> protected key (that is a key wrapped by a master key stored
> in firmware) hmac for sha2 (sha224, sha256, sha384 and sha512)
> for the s390 specific CPACF instruction kmac.
> 
> This patch adds support via 4 new ahashes registered as
> phmac(sha224), phmac(sha256), phmac(sha384) and phmac(sha512).
> 
> Co-developed-by: Holger Dengler <dengler@linux.ibm.com>
> Signed-off-by: Holger Dengler <dengler@linux.ibm.com>
> Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>
> ---

...

> +
> +	  Select this option if you want to use the phmac digests
> +	  for example to use dm-integrity with secure/protected keys.
> +
>  config S390_PRNG
>  	tristate "Pseudo random number generator device driver"
>  	depends on S390

Hello Eric

with your commit
   7fa481734016 crypto: ahash - make hash walk functions private to 
ahash.c
you move the crypto_hash_walk_* functions to private context into 
ahash.c.
So for example my new phmac does not compile any more.
What is the replacement for these functions then? Should I really do
the scatter walk by my own now or is there a set of new functions to 
come?

  parent reply	other threads:[~2025-02-11 12:09 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-15 16:22 New s390 specific protected key hmac Harald Freudenberger
2025-01-15 16:22 ` [PATCH v10 1/5] s390/crypto: Add protected key hmac subfunctions for KMAC Harald Freudenberger
2025-01-15 16:22 ` [PATCH v10 2/5] s390/crypto: New s390 specific protected key hash phmac Harald Freudenberger
2025-02-09  8:47   ` Herbert Xu
2025-02-09 16:34     ` Eric Biggers
2025-02-10  7:57       ` Herbert Xu
2025-02-10 16:32         ` Eric Biggers
2025-02-10 23:14           ` Herbert Xu
2025-02-12 11:17       ` Harald Freudenberger
2025-02-12 15:20         ` Eric Biggers
2025-02-13  4:08         ` Herbert Xu
2025-02-11 12:09   ` Harald Freudenberger [this message]
2025-02-11 15:31     ` Eric Biggers
2025-02-12  3:19     ` Herbert Xu
2025-02-12  3:23       ` Herbert Xu
2025-02-12  3:32         ` Eric Biggers
2025-02-22  8:23           ` Herbert Xu
2025-01-15 16:22 ` [PATCH v10 3/5] crypto: api - Add crypto_tfm_alg_get_flags() helper inline function Harald Freudenberger
2025-01-15 16:22 ` [PATCH v10 4/5] s390/crypto: Add selftest support for phmac Harald Freudenberger
2025-01-15 16:22 ` [PATCH v10 5/5] crypto: testmgr - Enable phmac selftest Harald Freudenberger

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=265b5abbf32fcb6748abad7d0ec360cc@linux.ibm.com \
    --to=freude@linux.ibm.com \
    --cc=davem@davemloft.net \
    --cc=dengler@linux.ibm.com \
    --cc=ebiggers@google.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;
as well as URLs for NNTP newsgroup(s).