crypto::symmetriccipher

Trait Decryptor

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

Required Methods§

Source

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

Implementations on Foreign Types§

Source§

impl Decryptor for Box<dyn SynchronousStreamCipher + 'static>

Source§

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

Implementors§