pub struct Simon48 { /* private fields */ }Implementations§
Source§impl Simon48
impl Simon48
pub fn new(key: [u32; 4]) -> Self
pub fn from_bytes(key: [u8; 12]) -> 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 Simon48
impl RefUnwindSafe for Simon48
impl Send for Simon48
impl Sync for Simon48
impl Unpin for Simon48
impl UnwindSafe for Simon48
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