pub struct Simon48Whitened { /* private fields */ }Implementations§
Source§impl Simon48Whitened
impl Simon48Whitened
pub fn new(key: [u32; 8]) -> Self
pub fn from_bytes(key: [u8; 24]) -> Self
pub fn encrypt(&self, plaintext: [u32; 2]) -> [u32; 2]
pub fn decrypt(&self, ciphertext: [u32; 2]) -> [u32; 2]
pub fn encrypt_block(&self, block: [u8; 6]) -> [u8; 6]
pub fn decrypt_block(&self, block: [u8; 6]) -> [u8; 6]
Auto Trait Implementations§
impl Freeze for Simon48Whitened
impl RefUnwindSafe for Simon48Whitened
impl Send for Simon48Whitened
impl Sync for Simon48Whitened
impl Unpin for Simon48Whitened
impl UnwindSafe for Simon48Whitened
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