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

BLE & NFC - security flags

Hi,

I'm using NRF52840 in order to implement an application which will connect to a mobile device with PIN code (MITM). In addition - my app will be able to connect to a PC via NFC pad. I want to use diffie-hellman as well.

In order to do that - I'm initializing peer manager and setting sec_flags of mitm and LESC to 1.

After that - when initializing ble_nfc with the function nfc_ble_pair_init(), the function pm_secure_mode_set() is called with NFC_PAIRING_MODE_LESC_OOB parameter.

After that - in the switch case of this function, I need to set m_sec_param.mitm and m_sec_param.lesc to 1, so everything will work with both NFC and mobile connections (even tough the flags wasn't originally set to 1).

Is that ok to change those flags? Can it cause any issues?

Parents Reply Children
No Data
Related