cancel
Showing results for 
Search instead for 
Did you mean: 

Crypto API

fred krueger
Associate II

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?

3 REPLIES 3
mleo
Senior II

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

fred krueger
Associate II

Hi,

I've found the problem. cryp, hash and crc was disabled in linux device tree.

fred krueger
Associate II

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?