Enum ntru::types::Error [] [src]

pub enum Error {
    OutOfMemory,
    Prng,
    MessageTooLong,
    InvalidMaxLength,
    Md0Violation,
    NoZeroPad,
    InvalidEncoding,
    NullArgument,
    UnknownParamSet,
    InvalidParam,
    InvalidKey,
}

The error enum

Variants

Out of memory error.

Error in the random number generator.

Message is too long.

Invalid maximum length.

MD0 violation.

No zero pad.

Invalid encoding of the message.

Null argument.

Unknown parameter set.

Invalid parameter.

Invalid key.

Trait Implementations

impl Debug for Error
[src]

Formats the value using the given formatter.

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Error
[src]

impl Display for Error
[src]

Formats the value using the given formatter. Read more

impl From<uint8_t> for Error
[src]

Performs the conversion.

impl Error for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more