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