Use hardware-accelerated SHA-256 in STM32U5 #3638
Labels
core
Trezor Core firmware. Runs on Trezor Model T and T2B1.
hardware only
Issue which does not appear on the emulator - but on physical device only.
The STM32U5 implements a hardware-accelerated version of SHA-256 and HMAC-SHA256, however not SHA-512. See Chapter 51 "Hash processor" in RM0456. They claim 66 clock cycles for processing one 512-bit block of data using SHA-256. I estimate this could be tens of times faster than our software implementation. It would probably give us a huge boost in speed for:
The text was updated successfully, but these errors were encountered: