pub struct Speck64 { /* private fields */ }Implementations§
Source§impl Speck64
impl Speck64
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 Speck64
impl RefUnwindSafe for Speck64
impl Send for Speck64
impl Sync for Speck64
impl Unpin for Speck64
impl UnwindSafe for Speck64
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