nRF9160DK Cryptography

Hi!
I'm trying to encrypt some data using ECC 256 but I have some issues:


-I found a code (https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/samples/crypto/ecdsa/README.html) in the Devzone that works with TFM but when I'm trying to set the code for the SPM it works only in the secure domain. How can I use this type of encryption for some data created in the non-secure domain?

-This guide https://infocenter.nordicsemi.com/index.jsp?topic=%2Fps_nrf9160%2Fcryptocell.html&cp=2_0_0_5_0 explain to me how this encryption/decryption works or it is also an alternative for the code that I found?

Thanks

Related