pub struct Threefish256 { /* private fields */ }
Expand description
Threefish-256 block cipher.
Implementations§
Source§impl Threefish256
impl Threefish256
Sourcepub fn new_with_tweak(key: &[u8; 32], tweak: &[u8; 16]) -> Threefish256
pub fn new_with_tweak(key: &[u8; 32], tweak: &[u8; 16]) -> Threefish256
Create new block cipher instance with the given key and tweak.
Sourcepub fn new_with_tweak_u64(key: &[u64; 4], tweak: &[u64; 2]) -> Threefish256
pub fn new_with_tweak_u64(key: &[u64; 4], tweak: &[u64; 2]) -> Threefish256
Create new block cipher instance with the given key and tweak
represented in the form of array of u64
s.
Sourcepub fn encrypt_block_u64(&self, block: &mut [u64; 4])
pub fn encrypt_block_u64(&self, block: &mut [u64; 4])
Encrypt block in the form of array of u64
s
Sourcepub fn decrypt_block_u64(&self, block: &mut [u64; 4])
pub fn decrypt_block_u64(&self, block: &mut [u64; 4])
Decrypt block in the form of array of u64
s
Trait Implementations§
Source§impl Clone for Threefish256
impl Clone for Threefish256
Source§fn clone(&self) -> Threefish256
fn clone(&self) -> Threefish256
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for Threefish256
impl RefUnwindSafe for Threefish256
impl Send for Threefish256
impl Sync for Threefish256
impl Unpin for Threefish256
impl UnwindSafe for Threefish256
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 608 bytes