So I need to decrypt a single 16 byte block of data using AES128 and a pre-shared key on the above SoCs. But PSA doesn't seem to work (I'm currently working using the nRF52DK). Even the AES CBC example application fails with an error when I run it
Booting nRF Connect SDK v2.9.0-7787b2649840 *** *** Using Zephyr OS v3.7.99-1f8f3dc29142 *** [00:00:00.265,533] <inf> aes_cbc: Starting AES-CBC-NO-PADDING example... [00:00:00.265,594] <inf> aes_cbc: Generating random AES key... [00:00:00.265,625] <inf> aes_cbc: psa_generate_key failed! (Error: -141) [00:00:00.265,625] <inf> aes_cbc: Example exited with error!
I notice there is a config option CONFIG_MBEDTLS_LEGACY_CRYPTO_C, but the description suggests it's not a great option
Enable support for legacy mbed TLS APIs. Note that this is a configuration that may be removed at some point. It is only provided during a transition period while PSA Crypto APIs become the defacto front-end. Enabling this will enable nrf_oberon for all features that are supported and builtin for the remaining functionality.
Any advice on the way forward?