pub struct BlockMicKey { /* private fields */ }Expand description
The cipher a block code is taken under, which the code borrows.
Implementations§
Source§impl BlockMicKey
impl BlockMicKey
Sourcepub fn new(data_block_int_key: &[u8; 16]) -> BlockMicKey
pub fn new(data_block_int_key: &[u8; 16]) -> BlockMicKey
Prepares the key a block’s code is taken under.
§Arguments
data_block_int_key- the keydata_block_int_keyderived.
§Returns
The prepared key.
Sourcepub fn start(
&self,
session_cnt: u16,
frag_index: u8,
descriptor: [u8; 4],
block_len: u32,
) -> BlockMic<'_>
pub fn start( &self, session_cnt: u16, frag_index: u8, descriptor: [u8; 4], block_len: u32, ) -> BlockMic<'_>
Starts a code over one session’s block.
§Arguments
session_cnt- the session counter the setup carried.frag_index- which of the device’s sessions this is.descriptor- the four bytes the setup described the block with.block_len- the length of the block in bytes, without its padding.
§Returns
The code, waiting for the block itself.
Auto Trait Implementations§
impl Freeze for BlockMicKey
impl RefUnwindSafe for BlockMicKey
impl Send for BlockMicKey
impl Sync for BlockMicKey
impl Unpin for BlockMicKey
impl UnsafeUnpin for BlockMicKey
impl UnwindSafe for BlockMicKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more