Struct sphinx_packet::header::mac::HeaderIntegrityMac
source · pub struct HeaderIntegrityMac(_);Implementations§
source§impl HeaderIntegrityMac
impl HeaderIntegrityMac
pub fn verify( &self, integrity_mac_key: HeaderIntegrityMacKey, enc_routing_info: &[u8] ) -> bool
pub fn into_inner(self) -> GenericArray<u8, HeaderIntegrityMacSize>
pub fn as_bytes(&self) -> &[u8] ⓘ
pub fn from_bytes(bytes: [u8; 16]) -> Self
Trait Implementations§
source§impl Clone for HeaderIntegrityMac
impl Clone for HeaderIntegrityMac
source§fn clone(&self) -> HeaderIntegrityMac
fn clone(&self) -> HeaderIntegrityMac
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more