use core::fmt;
#[cfg(feature = "std")]
use std::error;
#[derive(Clone, Copy, Debug)]
pub struct BlockModeError;
#[derive(Clone, Copy, Debug)]
pub struct InvalidKeyIvLength;
impl fmt::Display for BlockModeError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
f.write_str("BlockModeError")
}
}
#[cfg(feature = "std")]
impl error::Error for BlockModeError {
fn description(&self) -> &str {
"block mode error"
}
}
impl fmt::Display for InvalidKeyIvLength {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> Result<(), fmt::Error> {
f.write_str("InvalidKeyIvLength")
}
}
#[cfg(feature = "std")]
impl error::Error for InvalidKeyIvLength {}