Enum opaque_ke::errors::InternalPakeError[][src]

pub enum InternalPakeError {
    InvalidByteSequence,
    SizeError {
        name: &'static str,
        len: usize,
        actual_len: usize,
    },
    PointError,
    SubGroupError,
    HashingFailure,
    HashToCurveError,
    HkdfError,
    HmacError,
    SlowHashError,
    SealError,
    SealOpenError,
    SealOpenHmacError,
    InvalidEnvelopeStructureError,
    IncompatibleEnvelopeModeError,
    UnexpectedEnvelopeContentsError,
}

Represents an error in the manipulation of internal cryptographic data

Variants

InvalidByteSequence

Deserializing from a byte sequence failed

SizeError

Invalid length for {name}: expected {len}, but is actually {actual_len}.

Fields of SizeError

name: &'static str

name

len: usize

length

actual_len: usize

actual

PointError

Could not decompress point.

SubGroupError

Key belongs to a small subgroup!

HashingFailure

hashing to a key failed

HashToCurveError

Computing the hash-to-curve function failed

HkdfError

Computing HKDF failed while deriving subkeys

HmacError

Computing HMAC failed while supplying a secret key

SlowHashError

Computing the slow hashing function failed

SealError

This error occurs when the envelope seal fails Constructing the envelope seal failed.

SealOpenError

This error occurs when the envelope seal open fails Opening the envelope seal failed.

SealOpenHmacError

This error occurs when the envelope seal open hmac check fails HMAC check in seal open failed.

InvalidEnvelopeStructureError

This error occurs when the envelope cannot be constructed properly based on the credentials that were specified to be required.

IncompatibleEnvelopeModeError

This error occurs when attempting to open an envelope of the wrong type (base mode, custom identifier)

UnexpectedEnvelopeContentsError

This error occurs when the envelope is opened and deserialization fails

Trait Implementations

impl Debug for InternalPakeError[src]

impl Display for InternalPakeError[src]

impl Error for InternalPakeError[src]

impl From<InternalPakeError> for PakeError[src]

impl From<InternalPakeError> for ProtocolError[src]

impl From<TryFromSizedBytesError> for InternalPakeError[src]

Auto Trait Implementations

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

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,