summaryrefslogtreecommitdiff
path: root/drivers/crypto/stm32/Kconfig
diff options
context:
space:
mode:
authorlionel.debieve@st.com <lionel.debieve@st.com>2017-07-13 16:32:27 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2017-07-28 12:55:59 +0300
commit8a1012d3f2abcef43470f879dbfd72651818e059 (patch)
tree7fc9135b4114e761a5be73dfc4ca30f9a3827375 /drivers/crypto/stm32/Kconfig
parent7bb952cdfae25f4d9d4dd8c4812c302f57aac4b6 (diff)
downloadlinux-8a1012d3f2abcef43470f879dbfd72651818e059.tar.xz
crypto: stm32 - Support for STM32 HASH module
This module register a HASH module that support multiples algorithms: MD5, SHA1, SHA224, SHA256. It includes the support of HMAC hardware processing corresponding to the supported algorithms. DMA or IRQ mode are used depending on data length. Signed-off-by: Lionel Debieve <lionel.debieve@st.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/stm32/Kconfig')
-rw-r--r--drivers/crypto/stm32/Kconfig13
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/crypto/stm32/Kconfig b/drivers/crypto/stm32/Kconfig
index 7dd14f8d294e..602332e02729 100644
--- a/drivers/crypto/stm32/Kconfig
+++ b/drivers/crypto/stm32/Kconfig
@@ -5,3 +5,16 @@ config CRC_DEV_STM32
help
This enables support for the CRC32 hw accelerator which can be found
on STMicroelectronics STM32 SOC.
+
+config HASH_DEV_STM32
+ tristate "Support for STM32 hash accelerators"
+ depends on ARCH_STM32
+ depends on HAS_DMA
+ select CRYPTO_HASH
+ select CRYPTO_MD5
+ select CRYPTO_SHA1
+ select CRYPTO_SHA256
+ select CRYPTO_ENGINE
+ help
+ This enables support for the HASH hw accelerator which can be found
+ on STMicroelectronics STM32 SOC.