pub enum ZeroPadding {}Expand description
Implementation of basic Zero Padding. May not be reversible if the original data ends with one or more zero bytes. Does not add an extra block of padding if the data length is already a multiple of the block size
Trait Implementations§
Source§impl Padding for ZeroPadding
impl Padding for ZeroPadding
Source§fn padded_buffer_length(data_length: usize, block_size: usize) -> usize
fn padded_buffer_length(data_length: usize, block_size: usize) -> usize
Given a length of data and block_size return the minimum size of a buffer required to hold
the padded data
Auto Trait Implementations§
impl Freeze for ZeroPadding
impl RefUnwindSafe for ZeroPadding
impl Send for ZeroPadding
impl Sync for ZeroPadding
impl Unpin for ZeroPadding
impl UnsafeUnpin for ZeroPadding
impl UnwindSafe for ZeroPadding
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