Enum salty::Error[][src]

#[repr(C)]
pub enum Error {
    NoError,
    NonCanonicalFieldElement,
    PublicKeyBytesInvalid,
    SignatureInvalid,
    ContextTooLong,
    WrongTwist,
    // some variants omitted
}
Expand description

Extensible error type for all salty operations.

This enum has a hidden member, to prevent exhaustively checking for errors. It also has a member NoError with value zero, for use in the C API.

Variants

NoError

Never occurs, simplifies C bindings

NonCanonicalFieldElement

Bytes do not correspond to a canonical base field element

PublicKeyBytesInvalid

Public key bytes invalid

SignatureInvalid

Signature verification failed

ContextTooLong

Context for prehashed signatures too long

WrongTwist

Point is on other twist of curve

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.

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.