how to request crypto_alloc_shash for GMAC
From: Steve French
Date: Fri Jul 09 2021 - 01:48:29 EST
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