seemoo-lab / openhaystack

Build your own 'AirTags' 🏷 today! Framework for tracking personal Bluetooth devices via Apple's massive Find My network.
https://owlink.org
GNU Affero General Public License v3.0
8.03k stars 428 forks source link

[fix] Derive symmetric key correctly #218

Closed freak4pc closed 8 months ago

freak4pc commented 8 months ago

I discussed this with @Sn0wfreezeDev privately,

When deriving symmetric keys, the code was always deriving from the root symmetric key instead of deriving from the oldest relevant symmetric key.

This produced the same symmetric key over and over and over instead of deriving new rolling ones.

Thanks to @ThatFatPat for helping me debug this 🚀

Sn0wfreezeDev commented 8 months ago

Thanks a lot for discovering that issue. Happy to accept your PR 😊