eznacl 3.2.9

A wrapper around NaCl which makes working with cryptography even easier
Documentation
use thiserror::Error;

#[derive(Error, Debug, PartialEq)]
#[cfg_attr(feature = "use_serde", derive(serde::Serialize, serde::Deserialize))]
pub enum EzNaclError {
    #[error("base85 decoding error")]
    DecodingError,
    #[error("decryption error")]
    DecryptionError,
    #[error("encoding error")]
    EncodingError,
    #[error("encryption error")]
    EncryptionError,
    #[error("key error")]
    KeyError,
    #[error("signature error")]
    SignatureError,
    #[error("size error")]
    SizeError,
    #[error("unsupported algorithm")]
    UnsupportedAlgorithm,
    #[error("internal error")]
    InternalError,
    #[error("value error")]
    ValueError,
}