pub struct Aes128Ctr(_);
Expand description
AES 128 in counter mode as used by Tor.
Trait Implementations
sourceimpl InnerIvInit for Aes128Ctr
impl InnerIvInit for Aes128Ctr
sourcefn inner_iv_init(
inner: Self::Inner,
iv: &GenericArray<u8, Self::IvSize>
) -> Self
fn inner_iv_init(
inner: Self::Inner,
iv: &GenericArray<u8, Self::IvSize>
) -> Self
Initialize value using inner
and iv
array.
sourcefn inner_iv_slice_init(
inner: Self::Inner,
iv: &[u8]
) -> Result<Self, InvalidLength>
fn inner_iv_slice_init(
inner: Self::Inner,
iv: &[u8]
) -> Result<Self, InvalidLength>
Initialize value using inner
and iv
slice.
sourceimpl IvSizeUser for Aes128Ctr
impl IvSizeUser for Aes128Ctr
sourceimpl StreamCipher for Aes128Ctr
impl StreamCipher for Aes128Ctr
sourcefn try_apply_keystream_inout(
&mut self,
buf: InOutBuf<'_, '_, u8>
) -> Result<(), StreamCipherError>
fn try_apply_keystream_inout(
&mut self,
buf: InOutBuf<'_, '_, u8>
) -> Result<(), StreamCipherError>
Apply keystream to inout
data. Read more
sourcefn try_apply_keystream(
&mut self,
buf: &mut [u8]
) -> Result<(), StreamCipherError>
fn try_apply_keystream(
&mut self,
buf: &mut [u8]
) -> Result<(), StreamCipherError>
Apply keystream to data behind buf
. Read more
sourcefn apply_keystream_inout(&mut self, buf: InOutBuf<'_, '_, u8>)
fn apply_keystream_inout(&mut self, buf: InOutBuf<'_, '_, u8>)
Apply keystream to inout
data. Read more
Auto Trait Implementations
impl RefUnwindSafe for Aes128Ctr
impl Send for Aes128Ctr
impl Sync for Aes128Ctr
impl Unpin for Aes128Ctr
impl UnwindSafe for Aes128Ctr
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more