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

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

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}.

Show fields

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

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

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

🔬 This is a nightly-only experimental API. (backtrace)

Returns a stack backtrace, if available, of where this error occurred. Read more

👎 Deprecated since 1.42.0:

use the Display impl or to_string()

👎 Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.