Enum chacha20_poly1305_aead::DecryptError [] [src]

pub enum DecryptError {
    TagMismatch,
    IoError(Error),
}

Error returned from the decrypt function.

Variants

TagMismatch

The calculated Poly1305 tag did not match the given tag.

IoError

There was an error writing the output.

Trait Implementations

impl Display for DecryptError

fn fmt(&self, fmt: &mut Formatter) -> Result

impl Error for DecryptError

fn description(&self) -> &str

fn cause(&self) -> Option<&Error>

impl From<Error> for DecryptError

fn from(error: Error) -> Self

Derived Implementations

impl Debug for DecryptError

fn fmt(&self, __arg_0: &mut Formatter) -> Result