-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherrors.go
More file actions
43 lines (32 loc) · 1.67 KB
/
Copy patherrors.go
File metadata and controls
43 lines (32 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
package cpace
import "errors"
var (
// ErrInvalidInput reports invalid local configuration or parameters.
ErrInvalidInput = errors.New("cpace: invalid input")
// ErrEmptySessionID reports an empty Input.SessionID without the explicit
// AllowEmptySessionID compatibility opt-in. The returned error also wraps
// ErrInvalidInput.
ErrEmptySessionID = errors.New("cpace: empty session id")
// ErrRandomness reports randomness-related failures, including random
// source read failures and repeated unusable scalar samples.
ErrRandomness = errors.New("cpace: randomness failure")
// ErrMessage reports malformed or unexpected wire messages.
ErrMessage = errors.New("cpace: invalid message")
// ErrStateUsed reports an attempt to reuse a single-use protocol state.
ErrStateUsed = errors.New("cpace: state already used")
// ErrSessionClosed reports an attempt to export key material from a closed
// Session.
ErrSessionClosed = errors.New("cpace: session closed")
// ErrAbort reports a draft abort condition such as an invalid point or
// neutral-element Diffie-Hellman result.
ErrAbort = errors.New("cpace: protocol abort")
// ErrPeerShareEncoding reports a peer public share that is not a
// canonical Ristretto255 encoding. The returned error also wraps
// ErrAbort.
ErrPeerShareEncoding = errors.New("cpace: peer share encoding")
// ErrPeerShareIdentity reports a peer public share that decoded to the
// Ristretto255 identity element. The returned error also wraps ErrAbort.
ErrPeerShareIdentity = errors.New("cpace: peer share identity")
// ErrConfirmationFailed reports failed explicit key confirmation.
ErrConfirmationFailed = errors.New("cpace: key confirmation failed")
)