Skip to main content

Decryptor

Trait Decryptor 

Source
pub trait Decryptor {
    // Required methods
    fn decrypt_with_tag(
        &mut self,
        decrypeted_data: &[u8],
        tag: Tag,
    ) -> Result<(Vec<u8>, usize), Unspecified>;
    fn decrypt<'a>(
        &mut self,
        data: &'a mut [u8],
    ) -> Result<&'a mut [u8], Unspecified>;
}

Required Methods§

Source

fn decrypt_with_tag( &mut self, decrypeted_data: &[u8], tag: Tag, ) -> Result<(Vec<u8>, usize), Unspecified>

Source

fn decrypt<'a>( &mut self, data: &'a mut [u8], ) -> Result<&'a mut [u8], Unspecified>

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§