pub struct Threefish1024 { /* private fields */ }
Expand description
Threefish-1024 block cipher.
Implementations§
Source§impl Threefish1024
impl Threefish1024
Sourcepub fn new_with_tweak(key: &[u8; 128], tweak: &[u8; 16]) -> Threefish1024
pub fn new_with_tweak(key: &[u8; 128], tweak: &[u8; 16]) -> Threefish1024
Create new block cipher instance with the given key and tweak.
Sourcepub fn new_with_tweak_u64(key: &[u64; 16], tweak: &[u64; 2]) -> Threefish1024
pub fn new_with_tweak_u64(key: &[u64; 16], tweak: &[u64; 2]) -> Threefish1024
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; 16])
pub fn encrypt_block_u64(&self, block: &mut [u64; 16])
Encrypt block in the form of array of u64
s
Sourcepub fn decrypt_block_u64(&self, block: &mut [u64; 16])
pub fn decrypt_block_u64(&self, block: &mut [u64; 16])
Decrypt block in the form of array of u64
s
Trait Implementations§
Source§impl Clone for Threefish1024
impl Clone for Threefish1024
Source§fn clone(&self) -> Threefish1024
fn clone(&self) -> Threefish1024
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 Threefish1024
impl RefUnwindSafe for Threefish1024
impl Send for Threefish1024
impl Sync for Threefish1024
impl Unpin for Threefish1024
impl UnwindSafe for Threefish1024
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: 2688 bytes