Struct crypto::blockmodes::PkcsPadding
source · [−]pub struct PkcsPadding;
Expand description
PKCS padding mode for ECB and CBC encryption
Trait Implementations
sourceimpl Clone for PkcsPadding
impl Clone for PkcsPadding
sourcefn clone(&self) -> PkcsPadding
fn clone(&self) -> PkcsPadding
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 more
sourceimpl PaddingProcessor for PkcsPadding
impl PaddingProcessor for PkcsPadding
sourcefn pad_input<W: WriteBuffer>(&mut self, input_buffer: &mut W)
fn pad_input<W: WriteBuffer>(&mut self, input_buffer: &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, output_buffer: &mut R) -> bool
fn strip_output<R: ReadBuffer>(&mut self, output_buffer: &mut R) -> bool
Remove padding from the last block of output data If false is returned, the processing fails Read more
impl Copy for PkcsPadding
Auto Trait Implementations
impl RefUnwindSafe for PkcsPadding
impl Send for PkcsPadding
impl Sync for PkcsPadding
impl Unpin for PkcsPadding
impl UnwindSafe for PkcsPadding
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more