2022-11-23 10:25 PM
Hi,
I am working on enabling hardware cryptography in nucleo-u585ai board.
Can you suggest an example for enabling hardware cryptography? or Is it enabled always?
How to test or know that data is encrypted?
Thanks,
Akanksha
2022-11-24 01:05 AM
Check if there are code examples for the EVAL series board, port those to the NUCLEO.
Have some examples and test cases / patterns you construct on a PC, or other platform, and compare results. Create encrypt and decrypt test code and have them communicate and validate results.
Expect to have to understand the concepts and methods.
2022-11-24 06:18 AM
Thanks for the reply
I would like to know whether the hardware cryptography feature is enabled implicitly or we need to enable it?
We are using zephyr rtos . Is hardware cryptography enable and disable is present in zephyr?
2022-11-24 06:38 AM
It is a synchronous peripheral, expect you'll need to enable the clocks like you would on any other peripheral.
There's surely some coverage and description in the Reference Manual
STM32Cube_FW_U5_V1.1.1\Projects\B-U585I-IOT02A\Examples\CRYP\CRYP_AES_GCM
Support in an OS would depend on appropriate drivers. The hardware isn't multi-threaded or multi-context, so you'd have to arbitrate usage.