use thiserror::Error;
#[derive(Error, Debug)]
pub enum CryptoError {
#[error("Invalid key length")]
InvalidKeyLength,
#[error("Encryption failed: {0}")]
EncryptionFailed(String),
#[error("Decryption failed: {0}")]
DecryptionFailed(String),
#[error("Invalid HMAC")]
InvalidHmac,
#[error("Invalid CRC")]
InvalidCrc,
}