[−][src]Struct threefish_cipher::Threefish1024
Methods
impl Threefish1024[src]
impl Threefish1024pub fn with_tweak(
key: &GenericArray<u8, U128>,
tweak0: u64,
tweak1: u64
) -> Threefish1024[src]
pub fn with_tweak(
key: &GenericArray<u8, U128>,
tweak0: u64,
tweak1: u64
) -> Threefish1024Trait Implementations
impl Copy for Threefish1024[src]
impl Copy for Threefish1024impl Clone for Threefish1024[src]
impl Clone for Threefish1024fn clone(&self) -> Threefish1024[src]
fn clone(&self) -> Threefish1024Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl BlockCipher for Threefish1024[src]
impl BlockCipher for Threefish1024type BlockSize = U128
Size of the block in bytes
type KeySize = U128
Key size in bytes with which cipher guaranteed to be initialized
type ParBlocks = U1
Number of blocks which can be processed in parallel by cipher implementation Read more
fn new(key: &GenericArray<u8, U128>) -> Threefish1024[src]
fn new(key: &GenericArray<u8, U128>) -> Threefish1024Create new block cipher instance from key with fixed size.
fn encrypt_block(&self, block: &mut GenericArray<u8, Self::BlockSize>)[src]
fn encrypt_block(&self, block: &mut GenericArray<u8, Self::BlockSize>)Encrypt block in-place
fn decrypt_block(&self, block: &mut GenericArray<u8, Self::BlockSize>)[src]
fn decrypt_block(&self, block: &mut GenericArray<u8, Self::BlockSize>)Decrypt block in-place
fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>[src]
fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>Create new block cipher instance from key with variable size. Read more
fn encrypt_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>
)[src]
fn encrypt_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>
)Encrypt several blocks in parallel using instruction level parallelism if possible. Read more
fn decrypt_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>
)[src]
fn decrypt_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>
)Decrypt several blocks in parallel using instruction level parallelism if possible. Read more
Auto Trait Implementations
impl Send for Threefish1024
impl Send for Threefish1024impl Sync for Threefish1024
impl Sync for Threefish1024Blanket Implementations
impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> From for T[src]
impl<T> From for Timpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more
impl<T> Same for T
impl<T> Same for Ttype Output = T
Should always be Self