Struct crypto::blockmodes::DecPadding
source · [−]pub struct DecPadding<X> { /* private fields */ }
Expand description
Wraps a PaddingProcessor so that only strip_output() will actually be called.
Trait Implementations
sourceimpl<X: PaddingProcessor> PaddingProcessor for DecPadding<X>
impl<X: PaddingProcessor> PaddingProcessor for DecPadding<X>
sourcefn pad_input<W: WriteBuffer>(&mut self, _: &mut W)
fn pad_input<W: WriteBuffer>(&mut self, _: &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. Read more
sourcefn strip_output<R: ReadBuffer>(&mut self, a: &mut R) -> bool
fn strip_output<R: ReadBuffer>(&mut self, a: &mut R) -> bool
Remove padding from the last block of output data If false is returned, the processing fails Read more
Auto Trait Implementations
impl<X> RefUnwindSafe for DecPadding<X> where
X: RefUnwindSafe,
impl<X> Send for DecPadding<X> where
X: Send,
impl<X> Sync for DecPadding<X> where
X: Sync,
impl<X> Unpin for DecPadding<X> where
X: Unpin,
impl<X> UnwindSafe for DecPadding<X> where
X: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more