hardwario / lora-modem

Open LoRaWAN modem for Murata Type ABZ
BSD 3-Clause "New" or "Revised" License
14 stars 3 forks source link

Reset session keys on counter reset #101

Closed janakj closed 2 years ago

janakj commented 2 years ago

Reset the application and network session keys whenever the uplink and downlink counters are reset in LoRaMac-node to prevent initialization vector reuse. The library does not seem to do that in all cases, only in some.

Murata resets appskey and nwkskey on region change (it probably does a full factory reset in that case).