Skip to content

Commit

Permalink
crypto: caam - ahash hmac support
Browse files Browse the repository at this point in the history
caam supports ahash hmac with sha algorithms and md5.

Signed-off-by: Yuan Kang <Yuan.Kang@freescale.com>
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Yuan Kang authored and Herbert Xu committed Jun 27, 2012
1 parent a299c83 commit 045e367
Show file tree
Hide file tree
Showing 6 changed files with 1,869 additions and 0 deletions.
12 changes: 12 additions & 0 deletions drivers/crypto/caam/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,15 @@ config CRYPTO_DEV_FSL_CAAM_CRYPTO_API

To compile this as a module, choose M here: the module
will be called caamalg.

config CRYPTO_DEV_FSL_CAAM_AHASH_API
tristate "Register hash algorithm implementations with Crypto API"
depends on CRYPTO_DEV_FSL_CAAM
default y
select CRYPTO_AHASH
help
Selecting this will offload ahash for users of the
scatterlist crypto API to the SEC4 via job ring.

To compile this as a module, choose M here: the module
will be called caamhash.
1 change: 1 addition & 0 deletions drivers/crypto/caam/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@

obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM) += caam.o
obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API) += caamalg.o
obj-$(CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API) += caamhash.o

caam-objs := ctrl.o jr.o error.o key_gen.o
Loading

0 comments on commit 045e367

Please sign in to comment.