pub trait KeyProcedure {
// Required method
fn lookup_key(
&self,
level: SecurityLevel,
key_id: KeyId,
) -> Option<[u8; 16]>;
}
Expand description
IEEE 802.15.4-2015, 9.2.2, KeyDescriptor lookup procedure.
Trait to be implemented by an upper layer that manages the list of 802.15.4 key descriptors. This trait interface enables the lookup procedure to be implemented either explicitly (managing a list of KeyDescriptors) or implicitly with some equivalent logic.
Required Methods§
Sourcefn lookup_key(&self, level: SecurityLevel, key_id: KeyId) -> Option<[u8; 16]>
fn lookup_key(&self, level: SecurityLevel, key_id: KeyId) -> Option<[u8; 16]>
Lookup the KeyDescriptor matching the provided security level and key ID mode and return the key associated with it.