pub struct EcbEncryptor<T, X> { /* private fields */ }
Expand description
ECB Encryption mode
Implementations§
Source§impl<T: BlockEncryptor, X: PaddingProcessor> EcbEncryptor<T, X>
impl<T: BlockEncryptor, X: PaddingProcessor> EcbEncryptor<T, X>
Sourcepub fn new(algo: T, padding: X) -> EcbEncryptor<T, EncPadding<X>>
pub fn new(algo: T, padding: X) -> EcbEncryptor<T, EncPadding<X>>
Create a new ECB encryption mode object
pub fn reset(&mut self)
Trait Implementations§
Source§impl<T: BlockEncryptor, X: PaddingProcessor> Encryptor for EcbEncryptor<T, X>
impl<T: BlockEncryptor, X: PaddingProcessor> Encryptor for EcbEncryptor<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 EcbEncryptor<T, X>
impl<T, X> RefUnwindSafe for EcbEncryptor<T, X>where
X: RefUnwindSafe,
T: RefUnwindSafe,
impl<T, X> Send for EcbEncryptor<T, X>
impl<T, X> Sync for EcbEncryptor<T, X>
impl<T, X> Unpin for EcbEncryptor<T, X>
impl<T, X> UnwindSafe for EcbEncryptor<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