linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve French <smfrench@gmail.com>
To: LKML <linux-kernel@vger.kernel.org>
Cc: Herbert Xu <herbert@gondor.apana.org.au>,
	James Morris <james.morris@microsoft.com>
Subject: how to request crypto_alloc_shash for GMAC
Date: Fri, 9 Jul 2021 00:48:00 -0500	[thread overview]
Message-ID: <CAH2r5muOdHbLDQr_p15U0572qF+6MjPK+32JYAf4LUKPuvkLGA@mail.gmail.com> (raw)

I was trying to add support for GMAC packet signing in the kernel
client (support for it, as an alternative to CMAC, has recently been
added to some SMB3.1.1 servers)

Presumably due to https://www.ietf.org/rfc/rfc4543.txt it is already
supported in the kernel ... but what is the name that it is exposed as
in the kernel crypto libraries?

When calling crypto_alloc_shash, I tried the obvious name:
         "gmac(aes)"
(similar to what was previously used "cmac(aes)" and "hmac(sha256")
but that didn't work.

Any idea what the algorithm name that is needed to be used for GMAC here?

In looking at drivers/crypto/ccp (not sure if that is the right
subdir) - the closest I see is ccp-crypto-aes-galois.c but using that
name I also got the same error (rc=-2) trying to request that as:
         "galois(aes)"

What is the correct name to use to request GMAC in crypto_alloc_shash?

Doing "git grep crypto_alloc_shash" there are no matches on:
       - "gcm" or "gmac" or "galois"
How is it named?
-- 
Thanks,

Steve

             reply	other threads:[~2021-07-09  5:48 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-09  5:48 Steve French [this message]
2021-07-09  6:48 ` how to request crypto_alloc_shash for GMAC 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=CAH2r5muOdHbLDQr_p15U0572qF+6MjPK+32JYAf4LUKPuvkLGA@mail.gmail.com \
    --to=smfrench@gmail.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=james.morris@microsoft.com \
    --cc=linux-kernel@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).