pub struct MacParam {
pub key: Option<Vec<u8>>,
pub mac_length: Option<u8>,
pub mac: Option<Vec<u8>>,
}
Expand description
MAC algorithm parameters for compute
Fields§
§key: Option<Vec<u8>>
external encryption/decryption key needed for MAC calculation when an ‘AES’ or ‘ShaOrText’ key stored in the cryptochip is not used
mac_length: Option<u8>
MAC length generated during calculation
mac: Option<Vec<u8>>
MAC to verify authenticity of the provided data
Trait Implementations§
impl StructuralPartialEq for MacParam
Auto Trait Implementations§
impl Freeze for MacParam
impl RefUnwindSafe for MacParam
impl Send for MacParam
impl Sync for MacParam
impl Unpin for MacParam
impl UnwindSafe for MacParam
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