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
Never occurs, simplifies C bindings
Bytes do not correspond to a canonical base field element
Public key bytes invalid
Signature verification failed
Context for prehashed signatures too long
Point is on other twist of curve