Skip to content

Commit ae832e3

Browse files
dalessanherbertx
authored andcommitted
crypto: keembay-ocs-hcu - Add HMAC support
Add HMAC support to the Keem Bay OCS HCU driver, thus making it provide the following additional transformations: - hmac(sha256) - hmac(sha384) - hmac(sha512) - hmac(sm3) The Keem Bay OCS HCU hardware does not allow "context-switch" for HMAC operations, i.e., it does not support computing a partial HMAC, save its state and then continue it later. Therefore, full hardware acceleration is provided only when possible (e.g., when crypto_ahash_digest() is called); in all other cases hardware acceleration is only partial (OPAD and IPAD calculation is done in software, while hashing is hardware accelerated). Co-developed-by: Declan Murphy <declan.murphy@intel.com> Signed-off-by: Declan Murphy <declan.murphy@intel.com> Signed-off-by: Daniele Alessandrelli <daniele.alessandrelli@intel.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
1 parent 472b044 commit ae832e3

File tree

4 files changed

+544
-9
lines changed

4 files changed

+544
-9
lines changed

drivers/crypto/keembay/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ config CRYPTO_DEV_KEEMBAY_OCS_HCU
4949
Control Unit (HCU) hardware acceleration for use with Crypto API.
5050

5151
Provides OCS HCU hardware acceleration of sha256, sha384, sha512, and
52-
sm3.
52+
sm3, as well as the HMAC variant of these algorithms.
5353

5454
Say Y or M if you're building for the Intel Keem Bay SoC. If compiled
5555
as a module, the module will be called keembay-ocs-hcu.

0 commit comments

Comments
 (0)