DECT MAC: security key by network

My DECT nr+ PT supports connecting to either of a set of networks, which of course have different integrity and cipher keys.

While scanning for cluster beacons, I can receive the 24MSB of the network ID and then make a decision on the key to use, but the key is set in control_configure already before scanning. I can only run control_configure again successfully if I deactivate control_functional_mode, and when I activate it again, the information that the MAC layer stores internally during mac_network_scan is lost, mac_association therefore fails, and I have to mac_network_scan with the new keys, even though no new information is expected.

Is there a shorter way to update the keys to allow association without another round of waiting for the beacon, or is that the penalty that has to be taken for not guessing the network to connect to correctly?

Parents Reply Children
  • Thanks.

    Seeing that  NRF_MODEM_DECT_MAC_SECURITY_MODE_2 is currently not part of nrfxlib, I'll have to wait for that too as part of rolling over keys within the same network.

    (That'd have been a follow-up question, and relevant one: Best practice with shared symmetric keys is to replace them regularly (eg.as part of rekeying, see RFC8654 or draft-irtf-cfrg-aead-limits for recent work). While TSI TS 103 636-4 leaves the rotation itself to further specification, it does provide a key index in the MAC Security Info IE (MAC Security 10 in the MAC header type). But without SECURITY_MODE_2, no point in asking about how to use it.)

Related