pub struct EncPadding<X> { /* private fields */ }
Expand description
Wraps a PaddingProcessor so that only pad_input() will actually be called.
Trait Implementations§
Source§impl<X: PaddingProcessor> PaddingProcessor for EncPadding<X>
impl<X: PaddingProcessor> PaddingProcessor for EncPadding<X>
Source§fn pad_input<W: WriteBuffer>(&mut self, a: &mut W)
fn pad_input<W: WriteBuffer>(&mut self, a: &mut W)
Add padding to the last block of input data
If the mode can’t handle a non-full block, it signals that error by simply leaving the block
as it is which will be detected as an InvalidLength error.
Source§fn strip_output<R: ReadBuffer>(&mut self, _: &mut R) -> bool
fn strip_output<R: ReadBuffer>(&mut self, _: &mut R) -> bool
Remove padding from the last block of output data
If false is returned, the processing fails
Auto Trait Implementations§
impl<X> Freeze for EncPadding<X>where
X: Freeze,
impl<X> RefUnwindSafe for EncPadding<X>where
X: RefUnwindSafe,
impl<X> Send for EncPadding<X>where
X: Send,
impl<X> Sync for EncPadding<X>where
X: Sync,
impl<X> Unpin for EncPadding<X>where
X: Unpin,
impl<X> UnwindSafe for EncPadding<X>where
X: UnwindSafe,
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