mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-04-23 06:44:03 +00:00
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>
This commit is contained in:
parent
7bb952cdfa
commit
8a1012d3f2
3 changed files with 1589 additions and 0 deletions
|
@ -5,3 +5,16 @@ config CRC_DEV_STM32
|
||||||
help
|
help
|
||||||
This enables support for the CRC32 hw accelerator which can be found
|
This enables support for the CRC32 hw accelerator which can be found
|
||||||
on STMicroelectronics STM32 SOC.
|
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.
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
obj-$(CONFIG_CRC_DEV_STM32) += stm32_crc32.o
|
obj-$(CONFIG_CRC_DEV_STM32) += stm32_crc32.o
|
||||||
|
obj-$(CONFIG_HASH_DEV_STM32) += stm32-hash.o
|
1575
drivers/crypto/stm32/stm32-hash.c
Normal file
1575
drivers/crypto/stm32/stm32-hash.c
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Add table
Reference in a new issue