Tero,

Thanks Tero for the proposal. Is the current "key_usage" registry enough to
fully configure the security tables for the non-index modes?

When a pledge/node receives a Link_Layer_Key corresponding to KeyIdMode 2,
how does it know which other node to use it for? i.e. I want to encrypt
data towards node B with K3 and data towards node C with K4.

Mališa



On Wed, Jul 18, 2018 at 8:42 PM Thomas Watteyne <[email protected]>
wrote:

> Malisa,
> Can you please comment?
> Thomas
>
> On Wed, Jul 18, 2018 at 8:16 PM Tero Kivinen <[email protected]> wrote:
>
>> 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
>>
>
>
> --
> ________________________________________
>
> Thomas Watteyne, PhD
> Research Scientist & Innovator, Inria
> Sr Networking Design Eng, Analog Devices
> Founder & co-lead, UC Berkeley OpenWSN
> Co-chair, IETF 6TiSCH
>
> www.thomaswatteyne.com
> ________________________________________
> _______________________________________________
> 6tisch mailing list
> [email protected]
> https://www.ietf.org/mailman/listinfo/6tisch
>
_______________________________________________
6tisch mailing list
[email protected]
https://www.ietf.org/mailman/listinfo/6tisch

Reply via email to