Struct rc2::Rc2
[−]
[src]
pub struct Rc2 { /* fields omitted */ }
A structure that represents the block cipher initialized with a key
Methods
impl Rc2
[src]
fn new_with_eff_key_len(key: &[u8], eff_key_len: usize) -> Self
[src]
Create a cipher with the specified effective key length
Trait Implementations
impl BlockCipher for Rc2
[src]
type KeySize = U32
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, U32>) -> Self
[src]
Create new block cipher instance from key with fixed size.
fn new_varkey(key: &[u8]) -> Result<Self, InvalidKeyLength>
[src]
Create new block cipher instance from key with variable size. Read more
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 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