Trait ieee802154::mac::frame::security::KeyDescriptorLookup
source · [−]pub trait KeyDescriptorLookup<N> where
N: ArrayLength<u8>, {
fn lookup_key_descriptor(
&self,
address_mode: AddressingMode,
key_identifier: Option<KeyIdentifier>,
device_address: Option<Address>
) -> Option<(u64, GenericArray<u8, N>)>;
}
Expand description
Used to create a KeyDescriptor from a KeyIdentifier and device address
Required Methods
sourcefn lookup_key_descriptor(
&self,
address_mode: AddressingMode,
key_identifier: Option<KeyIdentifier>,
device_address: Option<Address>
) -> Option<(u64, GenericArray<u8, N>)>
fn lookup_key_descriptor(
&self,
address_mode: AddressingMode,
key_identifier: Option<KeyIdentifier>,
device_address: Option<Address>
) -> Option<(u64, GenericArray<u8, N>)>
Look up a key from a key identifier and a device address
This is the interface that is used to perform procedure 7.2.2, but an implementation of the interface is not provided
This function should return None if the key lookup fails (i.e. a failed status), and some if the lookup succeeds, where the Option contains the KeyDescriptor that was found according to the passed in parameters
The return value should be the 64 bit UID associated with the given device address, if
any such UID exists. If it does not, the return value should be None
.