pub trait SynchronousStreamCipher {
// Required method
fn process(&mut self, input: &[u8], output: &mut [u8]);
}Required Methods§
Trait Implementations§
Source§impl Decryptor for Box<dyn SynchronousStreamCipher + 'static>
impl Decryptor for Box<dyn SynchronousStreamCipher + 'static>
fn decrypt( &mut self, input: &mut RefReadBuffer<'_>, output: &mut RefWriteBuffer<'_>, _: bool, ) -> Result<BufferResult, SymmetricCipherError>
Source§impl Encryptor for Box<dyn SynchronousStreamCipher + 'static>
impl Encryptor for Box<dyn SynchronousStreamCipher + 'static>
fn encrypt( &mut self, input: &mut RefReadBuffer<'_>, output: &mut RefWriteBuffer<'_>, _: bool, ) -> Result<BufferResult, SymmetricCipherError>
Source§impl SynchronousStreamCipher for Box<dyn SynchronousStreamCipher + 'static>
impl SynchronousStreamCipher for Box<dyn SynchronousStreamCipher + 'static>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".