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

Data Encryption

Hi nRF team,

we are building our project on top ble_template_example, and we want data encryption for bluetooth data .

we have seen below ways :-

1.) AES Encryption

2.) BLE_GAP_CONN_SEC_MODE Permissions 

pls suggest which one is more feasible for data encryption.

And also share any project examples where above Encrptions are implemented.

Thank You ! 

Parents
  • Hi, 

    These two ways are practical. You can simply put your crypto code into the beacon and scanner example, and it should work. There is one tedious task that needs to be done, though, and that is to add all dependencies for nrf_crypto (include paths and .c files) and add needed sdk_config configuration macros. The easiest way to get this could be to use example projects that use pairing, as the peer manager has dependencies of nrf_crypto. Please see this LE Secure Connections Multirole Example which uses LESC and ARM Cryptocell CC310 backend AES mode for nRF52840.

    -Amanda H.

  • Hi Amanda, thank you for replying !

    In our project, central device is Mobile App and peripheral device is nRF52 DK.

    Question :-

    1.) Pls suggest what configuration we have to make at mobile application side for AES Data encryption ?

    or which above data encryption method will be more feasible ?

    *Note : Our peripheral device is not an beacon and we are using "Just works" method for pairing with Mobile App*

    Thank You !

Reply
  • Hi Amanda, thank you for replying !

    In our project, central device is Mobile App and peripheral device is nRF52 DK.

    Question :-

    1.) Pls suggest what configuration we have to make at mobile application side for AES Data encryption ?

    or which above data encryption method will be more feasible ?

    *Note : Our peripheral device is not an beacon and we are using "Just works" method for pairing with Mobile App*

    Thank You !

Children
Related