pub struct Iv(pub [u8; 16]);Expand description
One AES initialisation vector, supplied by the caller of
crate::SecurityHandler::encrypt.
A named type rather than a bare [u8; 16] because the encrypt call
already carries an object reference and a payload, and a bare array beside
those is one &[u8] away from being passed the payload by mistake. It
also gives the “where does this come from?” question somewhere to be
answered: nowhere in this crate, is the answer — see the crate docs.
The RC4 handlers ignore it entirely.
Tuple Fields§
§0: [u8; 16]Implementations§
Trait Implementations§
impl Copy for Iv
impl Eq for Iv
impl StructuralPartialEq for Iv
Auto Trait Implementations§
impl Freeze for Iv
impl RefUnwindSafe for Iv
impl Send for Iv
impl Sync for Iv
impl Unpin for Iv
impl UnsafeUnpin for Iv
impl UnwindSafe for Iv
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