nkaminski / csrmesh

Reverse engineered bridge implementation of the CSRMesh BTLE protocol
GNU Lesser General Public License v3.0
70 stars 20 forks source link

Fix SEQ length in decrypt_packet #28

Closed JeffSimmer closed 4 years ago

JeffSimmer commented 4 years ago

Fixed the length of SEQ (3 bytes) and source (2 bytes). This fixes decryption for packets sent from addresses other than 32768 (such as packets sent from devices instead of an app). Changed the name of 'magic' in decrypt_packet to 'source', which is a breaking change if anyone was using magic.

Fixes #27