2021-08-06 10:30 AM
I've tried to enable the CRYPT and HASH peripherals by setting bits 5 and 4 in the AHB2ENR register, but all peripheral registers read as zero and writes are ignored as if the clock wasn't enabled or the peripheral was missing. Does this chip have hardware crypto and if it does what's required to initialize the hardware to calculate a SHA256 hash?
Solved! Go to Solution.
2021-08-09 10:55 AM
Probably..
2021-08-10 04:25 AM
Dear @JBram.1 @Community member ,
I confirm that we had in second half of 2020 a test program issue at our factories, during manufacturing, leading to cryptographic feature disabled (CRYP and HASH). In case these cryptographic features would be used in final application, functionality failure will be visible immediately (100% failure rate) as you have seen with 0x000..
We sent a Quality Alert to all of our customers/distributors at that time by December 2020 and then Issue is fixed at our Factories, To be very specific not all parts are impacted by few Lots at specific factory where date code is from 2020 Week 22 to 2020 Week 47 . 022 to 047 may be impacted.
In case customer application would require these specific cryptographic features and to avoid any customer manufacturing burden, ST recommends recalling all unused impacted material and will issue a return material acceptance (RMA) accordingly, so please to go in touch with your local distributor or ST sales Offices. Our customers not using theses features, they will not see such impact.
Hope it is more clear now.
Ciao,
STOne-32.
2021-08-10 01:59 PM
Thx for admitting your colossal screw up. I have lost at least three weeks debugging this because my code did follow the reference manual. Please update the errata sheet to help the next poor fellow loose less time to this issue.
2022-09-29 01:05 PM
Cross linking this so I can find it later, also out of Amkor ATP
2023-11-28 08:58 AM
Back linking to this thread, so I can cross reference later, and so Google / Bing / ChatWTF can spider.
https://community.st.com/t5/stm32-mcus-security/aes-ecb-initialization-fails/td-p/614297