Enum rsa_cortex_m4::padding::Error[][src]

pub enum Error {
    MessageTooLong,
    EncodingError,
    DecodingError,
    Inconsistent,
}

The spec has a few error cases.

Undecided whether to expose these at all.

Variants

MessageTooLong

message too long to fit in number with required padding (encipherment case)

EncodingError

RFC returns a different error for signature padding. This is because the message is hashed before signing, so it's a logic error to pick a integer (D) that's too small

DecodingError
Inconsistent

Auto Trait Implementations

impl Send for Error[src]

impl Sync for Error[src]

impl Unpin for Error[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.