Is there any peripheral sample for OOB legacy pairing?

Is there any peripheral sample for OOB legacy pairing?
I'd like to know how to encrypt with temporary key(TK).
I checked the ble_hids_keyboard_pair_nfc sample in the SDK 17.1.0, but I couldn't find the part that generated LP_CONFIRM_R and STK from TK.
I would appreciate any advice.

Parents
  • Hi Wang

    Yes, the nRF52 series all support legacy OOB pairing. The authentication key is generated like this in the NFC examples that uses legacy OOB for example. 

    {
                    // Generate Authentication OOB Key and update NDEF message content.
                    uint8_t length = random_vector_generate(m_oob_auth_key.tk, BLE_GAP_SEC_KEY_LEN);
                    random_vector_log(length);
                    err_code = nfc_tk_group_modifier_update(&m_oob_auth_key);
                    APP_ERROR_CHECK(err_code);
                }

    I'm not sure what you refer to with LP_CONFIRM_R as that's not mentioned in the entire SDK as far as I can see?

    Best regards,

    Simon

Reply
  • Hi Wang

    Yes, the nRF52 series all support legacy OOB pairing. The authentication key is generated like this in the NFC examples that uses legacy OOB for example. 

    {
                    // Generate Authentication OOB Key and update NDEF message content.
                    uint8_t length = random_vector_generate(m_oob_auth_key.tk, BLE_GAP_SEC_KEY_LEN);
                    random_vector_log(length);
                    err_code = nfc_tk_group_modifier_update(&m_oob_auth_key);
                    APP_ERROR_CHECK(err_code);
                }

    I'm not sure what you refer to with LP_CONFIRM_R as that's not mentioned in the entire SDK as far as I can see?

    Best regards,

    Simon

Children
Related