This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CONFIG_NORDIC_SECURITY_BACKEND for encryption and decryption

Hi, I want to enable mbed TLs library and what I saw from latest release v0.4.0 it can enable it by CONFIG_NORDIC_SECURITY_BACKEND=y in prj.conf My primary goal is to use encryption on http. Since https is not currently supported my thoughts were to use mbed TLs library to at least encrypt and decrypt payload by RSA public and private keys. My example is based on http example in SDK. The example works fine I can do HTTP GET and POST if I have CONFIG_NORDIC_SECURITY_BACKEND=n in my config.

This is my console output

15 NRF_TIMER2 Non-Secure OK
16 NRF_SAADC Non-Secure OK
17 NRF_GPIOTE1 Non-Secure OK

SPM: NS image at 0x8000
SPM: NS MSP at 0x20023eb8
SPM: NS reset vector at 0xa165
SPM: prepare to jump to Non-Secure image.
***** Booting Zephyr OS v1.14.99-ncs1 *****
UART loopback start!
HTTP start
LTE Link Connecting ...

In the same project, without changing any source code if I enable TLs library by CONFIG_NORDIC_SECURITY_BACKEND=y  the program hits the hard fault after bootloader jump. Below is the console output

15 NRF_TIMER2 Non-Secure OK
16 NRF_SAADC Non-Secure OK
17 NRF_GPIOTE1 Non-Secure OK

SPM: NS image at 0x40000
SPM: NS MSP at 0x20023ed8
SPM: NS reset vector at 0x422a5
SPM: prepare to jump to Non-Secure image.
Exception occurred in Secure State
***** HARD FAULT *****
Fault escalation (see below)
***** BUS FAULT *****
Precise data bus error
BFAR Address: 0x50008120
***** Hardware exception *****
Current thread ID = 0x20020218
Faulting instruction address = 0x99e8
Fatal fault in ISR! Spinning...

Am I missing something?.

Or is there a direct way I can use https? An example would be helpful.

Related