pub struct NoPadding;
Expand description
No padding mode for ECB and CBC encryption
Trait Implementations§
Source§impl PaddingProcessor for NoPadding
impl PaddingProcessor for NoPadding
Source§fn 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.
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
impl Copy for NoPadding
Auto Trait Implementations§
impl Freeze for NoPadding
impl RefUnwindSafe for NoPadding
impl Send for NoPadding
impl Sync for NoPadding
impl Unpin for NoPadding
impl UnwindSafe for NoPadding
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)