pub struct Threefish1024 { /* private fields */ }Implementations§
Source§impl Threefish1024
impl Threefish1024
pub fn with_tweak( key: &GenericArray<u8, U128>, tweak0: u64, tweak1: u64, ) -> Threefish1024
Trait Implementations§
Source§impl BlockCipher for Threefish1024
impl BlockCipher for Threefish1024
Source§type BlockSize = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>
type BlockSize = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>
Size of the block in bytes
Source§type ParBlocks = UInt<UTerm, B1>
type ParBlocks = UInt<UTerm, B1>
Number of blocks which can be processed in parallel by
cipher implementation
Source§fn encrypt_block(&self, block: &mut GenericArray<u8, Self::BlockSize>)
fn encrypt_block(&self, block: &mut GenericArray<u8, Self::BlockSize>)
Encrypt block in-place
Source§fn decrypt_block(&self, block: &mut GenericArray<u8, Self::BlockSize>)
fn decrypt_block(&self, block: &mut GenericArray<u8, Self::BlockSize>)
Decrypt block in-place
Source§fn encrypt_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>,
)
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
Source§fn encrypt_slice(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])
fn encrypt_slice(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])
Encrypt a slice of blocks, leveraging parallelism when available.
Source§fn decrypt_blocks(
&self,
blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>,
)
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
Source§fn decrypt_slice(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])
fn decrypt_slice(&self, blocks: &mut [GenericArray<u8, Self::BlockSize>])
Decrypt a slice of blocks, leveraging parallelism when available.
Source§impl Clone for Threefish1024
impl Clone for Threefish1024
Source§fn clone(&self) -> Threefish1024
fn clone(&self) -> Threefish1024
Returns a duplicate 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 moreSource§impl NewBlockCipher for Threefish1024
impl NewBlockCipher for Threefish1024
Source§type KeySize = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>
type KeySize = UInt<UInt<UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>, B0>, B0>, B0>, B0>
Key size in bytes with which cipher guaranteed to be initialized.
Source§fn new(key: &GenericArray<u8, U128>) -> Threefish1024
fn new(key: &GenericArray<u8, U128>) -> Threefish1024
Create new block cipher instance from key with fixed size.
Source§fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>
fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>
Create new block cipher instance from key with variable size. Read more
impl Copy for Threefish1024
Auto 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<Alg> BlockCipherMut for Algwhere
Alg: BlockCipher,
impl<Alg> BlockCipherMut for Algwhere
Alg: BlockCipher,
Source§type BlockSize = <Alg as BlockCipher>::BlockSize
type BlockSize = <Alg as BlockCipher>::BlockSize
Size of the block in bytes
Source§fn encrypt_block(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>,
)
fn encrypt_block( &mut self, block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>, )
Encrypt block in-place
Source§fn decrypt_block(
&mut self,
block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>,
)
fn decrypt_block( &mut self, block: &mut GenericArray<u8, <Alg as BlockCipherMut>::BlockSize>, )
Decrypt block in-place
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