Struct crypto::blockmodes::EcbEncryptor
source · [−]pub struct EcbEncryptor<T, X> { /* private fields */ }
Expand description
ECB Encryption mode
Implementations
sourceimpl<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
sourceimpl<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> RefUnwindSafe for EcbEncryptor<T, X> where
T: RefUnwindSafe,
X: RefUnwindSafe,
impl<T, X> Send for EcbEncryptor<T, X> where
T: Send,
X: Send,
impl<T, X> Sync for EcbEncryptor<T, X> where
T: Sync,
X: Sync,
impl<T, X> Unpin for EcbEncryptor<T, X> where
T: Unpin,
X: Unpin,
impl<T, X> UnwindSafe for EcbEncryptor<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