pub struct Chctr2<Aes: AesCipher> { /* private fields */ }Expand description
Generic CHCTR2 cipher parameterized by AES key size.
Implementations§
Source§impl<Aes: AesCipher> Chctr2<Aes>
impl<Aes: AesCipher> Chctr2<Aes>
Sourcepub const KEY_LENGTH: usize
pub const KEY_LENGTH: usize
Total key length in bytes (two AES keys).
Sourcepub const SINGLE_KEY_LENGTH: usize = Aes::KEY_LEN
pub const SINGLE_KEY_LENGTH: usize = Aes::KEY_LEN
Single AES key length.
Sourcepub const BLOCK_LENGTH: usize = BLOCK_LENGTH
pub const BLOCK_LENGTH: usize = BLOCK_LENGTH
AES block length in bytes (always 16).
Sourcepub const MIN_INPUT_LENGTH: usize = BLOCK_LENGTH
pub const MIN_INPUT_LENGTH: usize = BLOCK_LENGTH
Minimum input length in bytes.
Auto Trait Implementations§
impl<Aes> Freeze for Chctr2<Aes>
impl<Aes> RefUnwindSafe for Chctr2<Aes>
impl<Aes> Send for Chctr2<Aes>
impl<Aes> Sync for Chctr2<Aes>
impl<Aes> Unpin for Chctr2<Aes>
impl<Aes> UnwindSafe for Chctr2<Aes>
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