pub struct MacInfo {
pub name: &'static str,
pub is_otm: bool,
pub mac_len: usize,
pub mac_len_r: Range<usize>,
pub key_len_r: Range<usize>,
}
Expand description
Information about a MAC implementation
Fields§
§name: &'static str
The name
is_otm: bool
Indicates if this MAC is a one time MAC (= requires a unique key for each message)
mac_len: usize
The default/selected MAC length
mac_len_r: Range<usize>
The supported MAC lengths
key_len_r: Range<usize>
The supported key lengths
Trait Implementations§
impl Eq for MacInfo
impl StructuralPartialEq for MacInfo
Auto Trait Implementations§
impl Freeze for MacInfo
impl RefUnwindSafe for MacInfo
impl Send for MacInfo
impl Sync for MacInfo
impl Unpin for MacInfo
impl UnwindSafe for MacInfo
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