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