#![forbid(unsafe_code)]
use thiserror::Error;
#[derive(Debug, Clone, PartialEq, Eq, Error)]
#[non_exhaustive]
pub enum Error {
#[error("subsample ranges exceed sample length")]
SubsampleOverflow,
#[error("pattern is not valid for this protection scheme")]
InvalidPattern,
#[error("invalid key or iv length")]
InvalidKeyMaterial,
}