pub struct Aes128Ctr(/* private fields */);Expand description
AES-CTR-128 Cipher implementation.
Trait Implementations§
Source§impl StreamCipher for Aes128Ctr
impl StreamCipher for Aes128Ctr
Source§fn new(key: &Self::Key, nonce: &Self::Nonce) -> Self
fn new(key: &Self::Key, nonce: &Self::Nonce) -> Self
Creates a new AES-128-CTR cipher instance from key material.
Source§fn apply_keystream(&mut self, buffer: &mut [u8]) -> Result<(), CipherError>
fn apply_keystream(&mut self, buffer: &mut [u8]) -> Result<(), CipherError>
Applies the keystream in-place, advancing the counter state appropriately.
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