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