Trait capsules_extra::ieee802154::framer::KeyProcedure

source ·
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§

source

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.

Implementors§

source§

impl<'a, A: Alarm<'a>> KeyProcedure for ThreadNetworkDriver<'a, A>

source§

impl<'a, M: MacDevice<'a>> KeyProcedure for RadioDriver<'a, M>