1pub use anyhow::{anyhow, bail, ensure, Error};
2
3#[derive(Debug, thiserror::Error)]
4pub enum HydroError {
5 #[error("Invalid input")]
6 InvalidInput,
7 #[error("Invalid key")]
8 InvalidKey,
9 #[error("Invalid padding")]
10 InvalidPadding,
11 #[error("Invalid probe")]
12 InvalidProbe,
13 #[error("Invalid signature")]
14 InvalidSignature,
15 #[error("Unable to decrypt the ciphertext")]
16 DecryptionError,
17 #[error("Unable to initialized the hydrogen library")]
18 InitError,
19 #[error("Unsupported output length")]
20 UnsupportedOutputLength,
21}