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