pub struct Hctr3<Aes: AesCipher> { /* private fields */ }Expand description
Generic HCTR3 cipher parameterized by AES key size.
Implementations§
Source§impl<Aes: AesCipher> Hctr3<Aes>
impl<Aes: AesCipher> Hctr3<Aes>
Sourcepub const KEY_LENGTH: usize = Aes::KEY_LEN
pub const KEY_LENGTH: usize = Aes::KEY_LEN
Encryption key length in bytes.
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.
Sourcepub fn new(key: &[u8]) -> Self
pub fn new(key: &[u8]) -> Self
Initialize HCTR3 cipher state from an encryption key.
Derives a secondary authentication key (Ke) from the encryption key for the two-key construction.
Auto Trait Implementations§
impl<Aes> Freeze for Hctr3<Aes>
impl<Aes> RefUnwindSafe for Hctr3<Aes>
impl<Aes> Send for Hctr3<Aes>
impl<Aes> Sync for Hctr3<Aes>
impl<Aes> Unpin for Hctr3<Aes>
impl<Aes> UnwindSafe for Hctr3<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