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