Skip to main content

ExtractTechnique

Trait ExtractTechnique 

Source
pub trait ExtractTechnique {
    // Required methods
    fn technique(&self) -> StegoTechnique;
    fn extract(&self, stego: &CoverMedia) -> Result<Payload, StegoError>;
}
Expand description

Extraction half of a steganographic technique.

Required Methods§

Source

fn technique(&self) -> StegoTechnique

The technique identifier for this implementation.

Source

fn extract(&self, stego: &CoverMedia) -> Result<Payload, StegoError>

Extract a hidden payload from stego.

§Errors

Returns StegoError::NoPayloadFound or StegoError::IntegrityCheckFailed.

Implementors§