I think the Link_Layer_Key can very easily changed to send any kind of
keys that are supported by 802.15.4.

If it is updated as follows:

   Link_Layer_Key = (
       key_index          : uint,
     ? key_usage          : uint / nint,
       key_value          : bstr,
     ? key_source         : bstr,
   )

Then it can include all KeyIdModes of 802.15.4.

For KeyIdMode 0 (pairwise keys), the key_index is set to 0, and
key_source is omitted. The key_index 0 is invalid for other modes, and
KeyIdMode 0 do not have key_index, so this will allow us to transmit
pairwise keys between the peers (the addresses needs to be taken from
the MAC header).

For KeyIdMode 1 (key index only), the key_index is set, and key_source
is omitted. This is what is defined now.

For KeyIdMode 2 (key index + pan id and short address of key owner),
the key_index is set and key_source is set to contain 4 octets,
containing 2 octet pan id, and 2 octet short address.

For KeyIdMode 3 (key index + extended address of key owner), the
key_index is set, and key_source is set to contain 8 octets of
extended address of the key owner.
-- 
[email protected]

_______________________________________________
6tisch mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/6tisch

Reply via email to