Struct tor_llcrypto::cipher::aes::Aes256Ctr
source · pub struct Aes256Ctr(/* private fields */);
Expand description
AES 256 in counter mode as used by Tor.
Trait Implementations§
source§impl InnerIvInit for Aes256Ctr
impl InnerIvInit for Aes256Ctr
source§fn 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.§fn 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.source§impl StreamCipher for Aes256Ctr
impl StreamCipher for Aes256Ctr
source§fn 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§fn 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§fn apply_keystream_inout(&mut self, buf: InOutBuf<'_, '_, u8>)
fn apply_keystream_inout(&mut self, buf: InOutBuf<'_, '_, u8>)
Apply keystream to
inout
data. Read more§fn apply_keystream(&mut self, buf: &mut [u8])
fn apply_keystream(&mut self, buf: &mut [u8])
Apply keystream to data in-place. Read more
Auto Trait Implementations§
impl Freeze for Aes256Ctr
impl RefUnwindSafe for Aes256Ctr
impl Send for Aes256Ctr
impl Sync for Aes256Ctr
impl Unpin for Aes256Ctr
impl UnwindSafe for Aes256Ctr
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more