pub struct Aes128Mmo { /* private fields */ }Expand description
AES-MMO hash function used for Zigbee key derivation, section 4.5.3.
Simplified for 16-byte (128-bit) inputs only.
Implementations§
Source§impl Aes128Mmo
impl Aes128Mmo
pub fn initialize(iv: &[u8]) -> Self
Sourcepub fn update(&mut self, data: &[u8]) -> Result<(), SecurityError>
pub fn update(&mut self, data: &[u8]) -> Result<(), SecurityError>
Update the hash with a single 128-bit block
pub fn finalize(self) -> [u8; 16]
pub fn digest(data: &[u8]) -> Result<[u8; 16], SecurityError>
pub fn digest_impl( data: impl Iterator<Item = u8>, ) -> Result<[u8; 16], SecurityError>
pub fn digest_with_iv(iv: &[u8], data: &[u8]) -> Result<[u8; 16], SecurityError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Aes128Mmo
impl RefUnwindSafe for Aes128Mmo
impl Send for Aes128Mmo
impl Sync for Aes128Mmo
impl Unpin for Aes128Mmo
impl UnsafeUnpin for Aes128Mmo
impl UnwindSafe for Aes128Mmo
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more