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