Is there any MCU that can perform AES at fill USB HS rate?  - Page 1
Forum section: electronics / general

author: Miyuki
author_rank: Frequent Contributor
timestamp: February 14, 2024, 10:51:20 am
content: Hi folks,I know many MCUs have AES or other cipher accelerators, but it is rather hard to find their performance.So are there some, that can provide performance at rates at least close to USB High speed?

author: brucehoult
author_rank: Super Contributor
timestamp: February 14, 2024, 11:05:46 am
content: If I understand this page correctly, a 600 MHz CM7 can do AES256 at 384 Mbps (400 cycles per 256 bits) without any special AES instructions or accelerator at all.https://github.com/jnk0le/cortexm-AES@jnk0le

author: std
author_rank: Contributor
timestamp: February 14, 2024, 11:50:18 am
content: Quote from: Miyuki on February 14, 2024, 10:51:20 amHere AES cycle accurate figures for stm32h7 and other modern STM32'shttps://wiki.st.com/stm32mcu/wiki/Security:STM32H7_Series:_Cryptographic_Library_Performanceupd:Now I took a closer look, they give numbers for the H743, but AES hardware peripheral not announced for it. The H753 has AES peripheral.The numbers at 400Mhz rougly: 6.4Mb/s software AES-256, 48.3Mb/s hardware. USB high-speed 480Mbits (60Mb/s) is only theoretical limit. In practice, however, USB 2.0 achieve ~43Mb/s (for some good conditions, more real number ~33Mb/s). So, hardware AES of the STM32H753 @ 400Mhz will encrypt/decrypt on the fly.

author: std
author_rank: Contributor
timestamp: February 14, 2024, 05:15:07 pm
content: Tried initializing CRYP peripheral, tried AES, encoded and decoded the data. All is OK.The peripheral works fine on the STM32H743, although according to the ST datasheet it is not there.Do you see the gopher?- No- And I don’t see. And he is.

author: eliocor
author_rank: Unknown
timestamp: February 15, 2024, 06:35:51 am
content: according to this post:https://www.mikrocontroller.net/topic/459746the following CPUsmount the same chip die: despite the different name/families, their functionalities/memory are the same!DIE450 STM32H742A(G-I)IxDIE450 STM32H742B(G-I)TxDIE450 STM32H742I(G-I)KxDIE450 STM32H742I(G-I)TxDIE450 STM32H742V(G-I)HxDIE450 STM32H742V(G-I)TxDIE450 STM32H742X(G-I)HxDIE450 STM32H742Z(G-I)TxDIE450 STM32H743A(G-I)IxDIE450 STM32H743BGTxDIE450 STM32H743BITxDIE450 STM32H743IGKxDIE450 STM32H743IGTxDIE450 STM32H743IIKxDIE450 STM32H743IITxDIE450 STM32H743V(G-I)HxDIE450 STM32H743VGTxDIE450 STM32H743VITxDIE450 STM32H743XGHxDIE450 STM32H743XIHxDIE450 STM32H743ZGTxDIE450 STM32H743ZITxDIE450 STM32H745BGTxDIE450 STM32H745BITxDIE450 STM32H745IGKxDIE450 STM32H745IGTxDIE450 STM32H745IIKxDIE450 STM32H745IITxDIE450 STM32H745XGHxDIE450 STM32H745XIHxDIE450 STM32H745ZGTxDIE450 STM32H745ZITxDIE450 STM32H747A(G-I)IxDIE450 STM32H747BGTxDIE450 STM32H747BITxDIE450 STM32H747IGTxDIE450 STM32H747IITxDIE450 STM32H747XGHxDIE450 STM32H747XIHxDIE450 STM32H747ZIYxDIE450 STM32H750IBKxDIE450 STM32H750IBTxDIE450 STM32H750VBTxDIE450 STM32H750XBHxDIE450 STM32H750ZBTxDIE450 STM32H753AIIxDIE450 STM32H753BITxDIE450 STM32H753IIKxDIE450 STM32H753IITxDIE450 STM32H753VIHxDIE450 STM32H753VITxDIE450 STM32H753XIHxDIE450 STM32H753ZITxDIE450 STM32H755BITxDIE450 STM32H755IIKxDIE450 STM32H755IITxDIE450 STM32H755XIHxDIE450 STM32H755ZITxDIE450 STM32H757AIIxDIE450 STM32H757BITxDIE450 STM32H757IITxDIE450 STM32H757XIHxDIE450 STM32H757ZIYxto get the full list (attached) I went in the following directory (STM32CubeIDE) [yours can be different!]C:\ST\STM32CubeIDE_1.13.1\STM32CubeIDE\plugins\com.st.stm32cube.common.mx_6.10.0.202311202037\db\mcuand gave the command:Code:grep -o "DIE..." STM* | sed -e "s/\(.*\).xml:\(DIE.*\)/\2 \1/" | sort

author: Berni
author_rank: Super Contributor
timestamp: February 15, 2024, 06:45:01 am
content: So even tho they claim they have less Flash, RAM, peripherals..etc they are actually are actually all there if you try to use them?I would have thought they would have some secret e-fuses they blow on the die to disable those if they use the same die pattern.

author: eliocor
author_rank: Unknown
timestamp: February 15, 2024, 07:02:44 am
content: to my knowledge ST does not use any method to differentiate their products (with the same die) except for a different name/descriptionJust as an example, during the chip shortage, I used some STM32L431 (no USB) to replace some STM32L433 (with USB) without any problem.I have seen the same behavior with some TI H-bridges....

author: tru
author_rank: Regular Contributor
timestamp: February 15, 2024, 10:12:19 am
content: Quote from: eliocor on February 15, 2024, 06:35:51 amInteresting, but I think the STM32H747/757 series are dual cores (M4+M7), while the others are single M7 core. I do have a ST Nucleo 144 STM32H753ZI, hmm.

author: jnk0le
author_rank: Regular Contributor
timestamp: February 17, 2024, 03:57:46 pm
content: Quote from: brucehoult on February 14, 2024, 11:05:46 am192mbps as the aes does only 16 bytes of data at a time.CTR32 mode can go up to ~26MiB/s @ 400MHz or ~66MiB/s @ 1GHz (RT1170). Requires at least 4KiB of data to get to full speed.