nkaminski / csrmesh

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

Don't assume payload is 10 bytes long in decrypt_packet() #5

Closed mjg59 closed 7 years ago

mjg59 commented 7 years ago

decrypt_packet() was making the assumption that the payload was 10 bytes long. This broke nothing other than the calculated hmac.