Struct des::Des
[−]
[src]
pub struct Des { /* fields omitted */ }
Trait Implementations
impl Copy for Des
[src]
impl Clone for Des
[src]
fn clone(&self) -> Des
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl BlockCipher for Des
[src]
type KeySize = U8
Key size in bytes with which cipher guaranteed to be initialized
type BlockSize = U8
Size of the block in bytes
type ParBlocks = U1
Number of blocks which can be processed in parallel by cipher implementation Read more
fn new(key: &GenericArray<u8, U8>) -> Self
[src]
Create new block cipher instance from key with fixed size.
fn encrypt_block(&self, block: &mut GenericArray<u8, U8>)
[src]
Encrypt block in-place
fn decrypt_block(&self, block: &mut GenericArray<u8, U8>)
[src]
Decrypt block in-place
fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>
[src]
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]
&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]
&self,
blocks: &mut GenericArray<GenericArray<u8, Self::BlockSize>, Self::ParBlocks>
)
Decrypt several blocks in parallel using instruction level parallelism if possible. Read more