use std::{error::Error, fmt};
#[derive(Debug, Clone)]
pub struct KeyGenError;
impl fmt::Display for KeyGenError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Key generation failure")
}
}
impl Error for KeyGenError {}
#[derive(Debug, Clone)]
pub struct EncodingError;
impl fmt::Display for EncodingError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Key generation failure")
}
}
impl Error for EncodingError {}
#[derive(Debug, Clone)]
pub struct DecodingError;
impl fmt::Display for DecodingError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Key generation failure")
}
}
impl Error for DecodingError {}
#[derive(Debug, Clone)]
pub struct SignatureError;
impl fmt::Display for SignatureError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Key generation failure")
}
}
impl Error for SignatureError {}
#[derive(Debug, Clone)]
pub struct CipherTextError;
impl fmt::Display for CipherTextError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Key generation failure")
}
}
impl Error for CipherTextError {}
#[derive(Debug, Clone)]
pub struct DecryptionError;
impl fmt::Display for DecryptionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "Key generation failure")
}
}
impl Error for DecryptionError {}