Struct crypto::blockmodes::EcbDecryptor
source · [−]pub struct EcbDecryptor<T, X> { /* private fields */ }
Expand description
ECB Decryption mode
Implementations
sourceimpl<T: BlockDecryptor, X: PaddingProcessor> EcbDecryptor<T, X>
impl<T: BlockDecryptor, X: PaddingProcessor> EcbDecryptor<T, X>
sourcepub fn new(algo: T, padding: X) -> EcbDecryptor<T, DecPadding<X>>
pub fn new(algo: T, padding: X) -> EcbDecryptor<T, DecPadding<X>>
Create a new ECB decryption mode object
pub fn reset(&mut self)
Trait Implementations
sourceimpl<T: BlockDecryptor, X: PaddingProcessor> Decryptor for EcbDecryptor<T, X>
impl<T: BlockDecryptor, X: PaddingProcessor> Decryptor for EcbDecryptor<T, X>
fn decrypt(
&mut self,
input: &mut RefReadBuffer<'_>,
output: &mut RefWriteBuffer<'_>,
eof: bool
) -> Result<BufferResult, SymmetricCipherError>
Auto Trait Implementations
impl<T, X> RefUnwindSafe for EcbDecryptor<T, X> where
T: RefUnwindSafe,
X: RefUnwindSafe,
impl<T, X> Send for EcbDecryptor<T, X> where
T: Send,
X: Send,
impl<T, X> Sync for EcbDecryptor<T, X> where
T: Sync,
X: Sync,
impl<T, X> Unpin for EcbDecryptor<T, X> where
T: Unpin,
X: Unpin,
impl<T, X> UnwindSafe for EcbDecryptor<T, X> where
T: UnwindSafe,
X: UnwindSafe,
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