Module lorawan::keys

source ·

Structs

  • AES128 represents 128-bit AES key.
  • AppEui should be entered in LSB format. For example, if your LNS provides a AppEui of 00:11:22:33:44:55:66:77, you should enter it as AppEui([0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11, 0x00]).
  • AppKey should be entered in MSB format. For example, if your LNS provides a AppKey of 00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF, you should enter it as AppKey([0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF]).
  • AppSKey should be entered in MSB format. For example, if your LNS provides a AppSKey of 00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF, you should enter it as AppSKey([0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF]).
  • DevEui should be entered in LSB format. For example, if your LNS provides a DevEui of 00:11:22:33:44:55:66:77, you should enter it as DevEui([0x77, 0x66, 0x55, 0x44, 0x33, 0x22, 0x11, 0x00]).
  • MIC represents LoRaWAN MIC.
  • NwkSKey should be entered in MSB format. For example, if your LNS provides a NwkSKey of 00:11:22:33:44:55:66:77:88:99:AA:BB:CC:DD:EE:FF, you should enter it as NwkSKey([0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88, 0x99, 0xAA, 0xBB, 0xCC, 0xDD, 0xEE, 0xFF]).

Traits

  • Represents an abstraction over the crypto functions.
  • Trait for implementations of AES128 decryption.
  • Trait for implementations of AES128 encryption.
  • Trait for implementations of CMAC.