pub enum StegoError {
}Expand description
Errors that can occur during steganographic encoding or decoding.
Variants§
InvalidJpeg(JpegError)
The cover image could not be parsed as a valid JPEG.
ImageTooSmall
The image is too small or has too few usable coefficients.
ImageTooLarge
The image dimensions exceed the maximum allowed (16384px / 200MP).
MessageTooLarge
The message is too large for the cover image’s embedding capacity.
FrameCorrupted
CRC check failed on the extracted payload frame.
DecryptionFailed
AES-GCM decryption failed (wrong passphrase or corrupted data).
InvalidUtf8
The extracted plaintext is not valid UTF-8.
NoLuminanceChannel
The cover image has no luminance component.
Cancelled
The operation was cancelled by the user.
KeyDerivationFailed
Argon2 key derivation failed (invalid parameters or internal error).
DuplicatePassphrase
Duplicate passphrase: each shadow layer must use a unique passphrase.
ShadowEmbedFailed
Shadow embedding failed cascade — encoder verification couldn’t
recover the shadow message after escalating through all parity
tiers [4, 8, 16, 32, 64, 128]. Caller can retry with a smaller
primary message (less propagation), different gop_size/quality,
or a different shadow passphrase.
InvalidVideo(String)
The video file is invalid or uses unsupported features.
Trait Implementations§
Source§impl Debug for StegoError
impl Debug for StegoError
Source§impl Display for StegoError
impl Display for StegoError
Source§impl Error for StegoError
impl Error for StegoError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()