Enum ntru::types::Error
[−]
[src]
pub enum Error { OutOfMemory, Prng, MessageTooLong, InvalidMaxLength, Md0Violation, NoZeroPad, InvalidEncoding, NullArgument, UnknownParamSet, InvalidParam, InvalidKey, }
The error enum
Variants
OutOfMemory
Out of memory error.
Prng
Error in the random number generator.
MessageTooLong
Message is too long.
InvalidMaxLength
Invalid maximum length.
Md0Violation
MD0 violation.
NoZeroPad
No zero pad.
InvalidEncoding
Invalid encoding of the message.
NullArgument
Null argument.
UnknownParamSet
Unknown parameter set.
InvalidParam
Invalid parameter.
InvalidKey
Invalid key.
Trait Implementations
impl Debug for Error
[src]
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Clone for Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more