pub struct CbcDecryptor<T, X> { /* private fields */ }
Expand description
CBC decryption mode
Implementations§
Source§impl<T: BlockDecryptor, X: PaddingProcessor> CbcDecryptor<T, X>
impl<T: BlockDecryptor, X: PaddingProcessor> CbcDecryptor<T, X>
Sourcepub fn new(algo: T, padding: X, iv: Vec<u8>) -> CbcDecryptor<T, DecPadding<X>>
pub fn new(algo: T, padding: X, iv: Vec<u8>) -> CbcDecryptor<T, DecPadding<X>>
Create a new CBC decryption mode object
pub fn reset(&mut self, iv: &[u8])
Trait Implementations§
Source§impl<T: BlockDecryptor, X: PaddingProcessor> Decryptor for CbcDecryptor<T, X>
impl<T: BlockDecryptor, X: PaddingProcessor> Decryptor for CbcDecryptor<T, X>
fn decrypt( &mut self, input: &mut RefReadBuffer<'_>, output: &mut RefWriteBuffer<'_>, eof: bool, ) -> Result<BufferResult, SymmetricCipherError>
Auto Trait Implementations§
impl<T, X> Freeze for CbcDecryptor<T, X>
impl<T, X> RefUnwindSafe for CbcDecryptor<T, X>where
X: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, X> Send for CbcDecryptor<T, X>
impl<T, X> Sync for CbcDecryptor<T, X>
impl<T, X> Unpin for CbcDecryptor<T, X>
impl<T, X> UnwindSafe for CbcDecryptor<T, X>where
X: UnwindSafe,
T: 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