use thiserror::Error;
#[derive(Error, Copy, Clone, Debug)]
pub enum Error {
#[error("Invalid secret key length: {0}")]
InvalidSecretKeyLength(usize),
#[error("Invalid public key length: {0}")]
InvalidPublicKeyLength(usize),
#[error("Invalid ciphertext length: {0}")]
InvalidCiphertextLength(usize),
#[error("Invalid shared secret length: {0}")]
InvalidSharedSecretLength(usize),
#[error("Invalid message length: {0}")]
InvalidMessageLength(usize),
#[error("Unsupported algorithm")]
UnsupportedAlgorithm,
}
pub type FrodoResult<T> = Result<T, Error>;