pub struct Aes128Ctr(/* private fields */);Expand description
AES-128 in CTR mode.
Create a new cipher with new.
xor_keystream to encrypt or decrypt
(CTR mode is symmetric).
You can move in the keystream with set_counter.
Implementations§
Trait Implementations§
Source§impl StreamCipher for Aes128Ctr
impl StreamCipher for Aes128Ctr
fn xor_keystream(&mut self, in_out: &mut [u8])
Auto Trait Implementations§
impl Freeze for Aes128Ctr
impl RefUnwindSafe for Aes128Ctr
impl Send for Aes128Ctr
impl Sync for Aes128Ctr
impl Unpin for Aes128Ctr
impl UnsafeUnpin for Aes128Ctr
impl UnwindSafe for Aes128Ctr
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