2020-02-03 09:25 AM
Trying to build image using unmodified distribution package. Hardware crypto devices are enabled in config:
root@stm32mp1:/etc# zcat /proc/config.gz | grep CONFIG_CRYPTO_DEV_STM32
CONFIG_CRYPTO_DEV_STM32_CRC=y
CONFIG_CRYPTO_DEV_STM32_HASH=y
CONFIG_CRYPTO_DEV_STM32_CRYP=y
But 'cat /proc/crypto' shows no 'stm32' drivers. What am I doing wrong?
2020-02-04 07:32 AM
Hi,
Coudl you share content of /proc/crypto?
I've just verified on DK2 - all the drivers are listed.
https://wiki.st.com/stm32mpu/wiki/Crypto_API_overview
Could you also share final kernel .config ?
https://wiki.st.com/stm32mpu/wiki/Menuconfig_or_how_to_configure_kernel
BR,
Milan
2020-02-05 02:25 AM
Hi,
I've found the problem. cryp, hash and crc was disabled in linux device tree.
2020-02-06 12:55 PM
Hi,
Benchmarks from 'cryptodev-test' show what HW accelerated 'stm32-cbc-aes' driver is almost 6 times slower than software 'cbc-aes-neonbs'.
Is it a problem with stm32 driver? What is an average stm32mp1 crypt throughput?