Skip to main content

Module ckdf

Module ckdf 

Source
Expand description

S2 key derivation (CKDF), per the Security 2 specification.

All derivations are AES-128-CMAC over fixed constants, so the outputs are the same on every implementation; the controller and the joining node derive the same temporary keys from the ECDH secret and both public keys.

Structs§

DerivedKeys
Keys derived from a permanent network key (or, during bootstrapping, from the ECDH secret).

Functions§

mei
CKDF-MEI-Expand: the 32-byte mixed entropy input that seeds a SPAN’s CTR_DRBG.
network_keys
CKDF-NetworkKeyExpand: CCM key, personalization string and MPAN key from a network key.
nonce_prk
CKDF-MEI-Extract: the nonce PRK from the sender’s and receiver’s entropy inputs.
temp_keys
CKDF-TempExpand: the temporary CCM key and personalization string.
temp_prk
CKDF-TempExtract: the pseudo random key from the ECDH shared secret.