Skip to main content
fred krueger
Associate II
February 3, 2020
Question

Crypto API

  • February 3, 2020
  • 3 replies
  • 1104 views

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?

This topic has been closed for replies.

3 replies

mleo
Visitor II
February 4, 2020

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
February 5, 2020

Hi,

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

fred krueger
Associate II
February 6, 2020

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?