Enum ntru::types::NtruError
[−]
[src]
pub enum NtruError { OutOfMemory, Prng, MessageTooLong, InvalidMaxLength, Md0Violation, NoZeroPad, InvalidEncoding, NullArgument, UnknownParamSet, InvalidParam, }
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.
Methods
impl NtruError
[src]
fn from_uint8_t(err: uint8_t) -> NtruError
Get the NtruError from the original uint8_t libntru error.
Trait Implementations
impl Copy for NtruError
[src]
impl Clone for NtruError
[src]
fn clone(&self) -> NtruError
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
impl PartialEq for NtruError
[src]
fn eq(&self, __arg_0: &NtruError) -> 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 !=
.