Skip to main content

EncryptStream

Trait EncryptStream 

Source
pub trait EncryptStream: Cipher {
    // Required methods
    fn write(&mut self, data: &[u8]) -> Result<Pond<'_>, CryptoError>;
    fn finish(&mut self) -> Result<Pond<'_>, CryptoError>;
}

Required Methods§

Source

fn write(&mut self, data: &[u8]) -> Result<Pond<'_>, CryptoError>

Source

fn finish(&mut self) -> Result<Pond<'_>, CryptoError>

the pond will be cleared after pond.drop() called.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<C, IV> EncryptStream for OFBEncrypt<C, IV>
where C: Cipher, IV: InitialVec<C>,

Source§

impl<C, P, IV> EncryptStream for CBCEncrypt<C, P, IV>
where C: Cipher, P: 'static + Padding, IV: InitialVec<C>,

Source§

impl<C, P, IV> EncryptStream for CFBEncrypt<C, P, IV>
where C: Cipher, P: 'static + Padding, IV: InitialVec<C>,

Source§

impl<C, P> EncryptStream for ECBEncrypt<C, P>
where C: Cipher, P: 'static + Padding,

Source§

impl<C, T> EncryptStream for CTREncrypt<C, T>
where C: Cipher, T: Counter,