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