crypto::symmetriccipher

Trait Encryptor

Source
pub trait Encryptor {
    // Required method
    fn encrypt(
        &mut self,
        input: &mut RefReadBuffer<'_>,
        output: &mut RefWriteBuffer<'_>,
        eof: bool,
    ) -> Result<BufferResult, SymmetricCipherError>;
}

Required Methods§

Source

fn encrypt( &mut self, input: &mut RefReadBuffer<'_>, output: &mut RefWriteBuffer<'_>, eof: bool, ) -> Result<BufferResult, SymmetricCipherError>

Implementations on Foreign Types§

Source§

impl Encryptor for Box<dyn SynchronousStreamCipher + 'static>

Source§

fn encrypt( &mut self, input: &mut RefReadBuffer<'_>, output: &mut RefWriteBuffer<'_>, _: bool, ) -> Result<BufferResult, SymmetricCipherError>

Implementors§