Struct cipher::StreamCipherCoreWrapper 
source · pub struct StreamCipherCoreWrapper<T: BlockSizeUser>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,{ /* private fields */ }Expand description
Wrapper around StreamCipherCore implementations.
It handles data buffering and implements the slice-based traits.
Implementations
Trait Implementations
sourceimpl<T: Clone + BlockSizeUser> Clone for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
 
impl<T: Clone + BlockSizeUser> Clone for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
sourcefn clone(&self) -> StreamCipherCoreWrapper<T>
 
fn clone(&self) -> StreamCipherCoreWrapper<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresourceimpl<T: Default + BlockSizeUser> Default for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
 
impl<T: Default + BlockSizeUser> Default for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
sourcefn default() -> StreamCipherCoreWrapper<T>
 
fn default() -> StreamCipherCoreWrapper<T>
Returns the “default value” for a type. Read more
sourceimpl<T> Drop for StreamCipherCoreWrapper<T>where
    T: BlockSizeUser,
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
 
impl<T> Drop for StreamCipherCoreWrapper<T>where
    T: BlockSizeUser,
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
sourceimpl<T: IvSizeUser + BlockSizeUser> IvSizeUser for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
 
impl<T: IvSizeUser + BlockSizeUser> IvSizeUser for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
sourceimpl<T: KeyInit + BlockSizeUser> KeyInit for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
 
impl<T: KeyInit + BlockSizeUser> KeyInit for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
sourcefn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
 
fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>
Create new value from variable size key.
sourceimpl<T: KeyIvInit + BlockSizeUser> KeyIvInit for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
 
impl<T: KeyIvInit + BlockSizeUser> KeyIvInit for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
sourcefn new(key: &Key<Self>, iv: &Iv<Self>) -> Self
 
fn new(key: &Key<Self>, iv: &Iv<Self>) -> Self
Create new value from fixed length key and nonce.
sourcefn new_from_slices(key: &[u8], iv: &[u8]) -> Result<Self, InvalidLength>
 
fn new_from_slices(key: &[u8], iv: &[u8]) -> Result<Self, InvalidLength>
Create new value from variable length key and nonce.
sourceimpl<T: KeySizeUser + BlockSizeUser> KeySizeUser for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
 
impl<T: KeySizeUser + BlockSizeUser> KeySizeUser for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
sourceimpl<T: StreamCipherCore> StreamCipher for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
 
impl<T: StreamCipherCore> StreamCipher for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
sourcefn try_apply_keystream_inout(
    &mut self,
    data: InOutBuf<'_, '_, u8>
) -> Result<(), StreamCipherError>
 
fn try_apply_keystream_inout(
    &mut self,
    data: InOutBuf<'_, '_, u8>
) -> Result<(), StreamCipherError>
Apply keystream to 
inout data. Read moresourcefn 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 moresourcefn apply_keystream_inout(&mut self, buf: InOutBuf<'_, '_, u8>)
 
fn apply_keystream_inout(&mut self, buf: InOutBuf<'_, '_, u8>)
Apply keystream to 
inout data. Read moresourcefn apply_keystream(&mut self, buf: &mut [u8])
 
fn apply_keystream(&mut self, buf: &mut [u8])
Apply keystream to data in-place. Read more
sourcefn apply_keystream_b2b(
    &mut self,
    input: &[u8],
    output: &mut [u8]
) -> Result<(), StreamCipherError>
 
fn apply_keystream_b2b(
    &mut self,
    input: &[u8],
    output: &mut [u8]
) -> Result<(), StreamCipherError>
Apply keystream to data buffer-to-buffer. Read more
sourceimpl<T: StreamCipherSeekCore> StreamCipherSeek for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
 
impl<T: StreamCipherSeekCore> StreamCipherSeek for StreamCipherCoreWrapper<T>where
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
sourcefn try_current_pos<SN: SeekNum>(&self) -> Result<SN, OverflowError>
 
fn try_current_pos<SN: SeekNum>(&self) -> Result<SN, OverflowError>
Try to get current keystream position Read more
sourcefn try_seek<SN: SeekNum>(&mut self, new_pos: SN) -> Result<(), StreamCipherError>
 
fn try_seek<SN: SeekNum>(&mut self, new_pos: SN) -> Result<(), StreamCipherError>
Try to seek to the given position Read more
sourcefn current_pos<T: SeekNum>(&self) -> T
 
fn current_pos<T: SeekNum>(&self) -> T
Get current keystream position Read more
impl<T> ZeroizeOnDrop for StreamCipherCoreWrapper<T>where
    T: BlockSizeUser + ZeroizeOnDrop,
    T::BlockSize: IsLess<U256>,
    Le<T::BlockSize, U256>: NonZero,
Auto Trait Implementations
impl<T> RefUnwindSafe for StreamCipherCoreWrapper<T>where
    T: RefUnwindSafe,
    <<T as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: RefUnwindSafe,
impl<T> Send for StreamCipherCoreWrapper<T>where
    T: Send,
impl<T> Sync for StreamCipherCoreWrapper<T>where
    T: Sync,
impl<T> Unpin for StreamCipherCoreWrapper<T>where
    T: Unpin,
    <<T as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: Unpin,
impl<T> UnwindSafe for StreamCipherCoreWrapper<T>where
    T: UnwindSafe,
    <<T as BlockSizeUser>::BlockSize as ArrayLength<u8>>::ArrayType: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    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