Using built in AES Libraries to Resolve a Private Mac Address

adojang
Posts: 2
Joined: Tue Jun 28, 2022 11:37 am

Using built in AES Libraries to Resolve a Private Mac Address

Postby adojang » Tue Jun 28, 2022 1:59 pm

Hello, and thank you for taking the time to read this!
I've got a project where my ESP32 acts as a client to a nRF peripheral.

The peripheral uses a ble private resolvable mac address which changes periodically.
I've got the IRK key, and the true identity MAC address from the nRF device, but I'm not able to connect with it (this is intentional).

I've started looking at the Bluetooth standard
https://www.bluetooth.com/specification ... ation-5-3/ (page 1559)

and AES encryption:
https://csrc.nist.gov/csrc/media/public ... ps-197.pdf

But before I spend days trying to get this to work, I wanted to ask if there was a way to use the built-in functions that surely must already exist in the arudino-esp32 framework?

The goal here is to scan for BLE mac addresses, and then attempt to resolve the addresses with this function to see if they match the secret true mac address of the nRF device.

Any help would be vastly appreciated :)

adojang
Posts: 2
Joined: Tue Jun 28, 2022 11:37 am

Re: Using built in AES Libraries to Resolve a Private Mac Address

Postby adojang » Wed Jun 29, 2022 7:49 am

I may as well also add that I've tried to pair the two devices, similar to this issue https://www.esp32.com/viewtopic.php?t=7657
The ESP doesn't pickup that the peripheral's mac address is BLE_ADDR_TYPE_RPA_PUBLIC or BLE_ADDR_TYPE_RPA_PRIVATE.

Who is online

Users browsing this forum: No registered users and 60 guests