Added two files (one header and one source) for Trailer:
model/lorawan-mic-trailer.cc
model/lorawan-mic-trailer.h
model/lorawan-mic-trailer: Added in AES128_CMAC and AES-128 cipher (needed for AES128_CMAC), MIC calculation and verification (See LoRaWAN Specification Section 4.4) for both UL and DL and v1.0 and v1.1 network servers, and functions for packing B0/B1 blocks
model/end-device-lorawan-mac: Added function for handling the MIC calculation with all required parameters and added the necessary parameters to the class (some are related to join procedure which requires them to be set manually due to this not being implemented in the module) and had the MIC trailer be calculated and added to the packets before transmission
-helper/lorawan-mac-helper: Added functionality for generating JoinEUI and NwkKey keys for each end device
MIC Trailer (Issue #123):
Proposed Changes
Added two files (one header and one source) for Trailer:
model/lorawan-mic-trailer: Added in AES128_CMAC and AES-128 cipher (needed for AES128_CMAC), MIC calculation and verification (See LoRaWAN Specification Section 4.4) for both UL and DL and v1.0 and v1.1 network servers, and functions for packing B0/B1 blocks
model/end-device-lorawan-mac: Added function for handling the MIC calculation with all required parameters and added the necessary parameters to the class (some are related to join procedure which requires them to be set manually due to this not being implemented in the module) and had the MIC trailer be calculated and added to the packets before transmission
-helper/lorawan-mac-helper: Added functionality for generating JoinEUI and NwkKey keys for each end device