| 1 |
package handshake |
| 2 |
|
| 3 |
import "errors" |
| 4 |
|
| 5 |
var ( |
| 6 |
ErrInitiateOnResponder = errors.New("initiate called on responder") |
| 7 |
ErrInitiateAlreadyCalled = errors.New("initiate already called") |
| 8 |
ErrInitiateNotCalled = errors.New("initiate must be called before ProcessPacket for initiators") |
| 9 |
ErrPacketTooShort = errors.New("packet too short") |
| 10 |
ErrPublicKeyMismatch = errors.New("public key mismatch between certificate and handshake") |
| 11 |
ErrIncompleteHandshake = errors.New("handshake completed without receiving required content") |
| 12 |
ErrMachineFailed = errors.New("handshake machine has failed") |
| 13 |
ErrUnknownSubtype = errors.New("unknown handshake subtype") |
| 14 |
ErrMissingContent = errors.New("expected handshake content but message was empty") |
| 15 |
ErrUnexpectedContent = errors.New("received unexpected handshake content") |
| 16 |
ErrInvalidRemoteIndex = errors.New("peer sent an invalid index in handshake payload") |
| 17 |
ErrIndexAllocation = errors.New("failed to allocate local index") |
| 18 |
ErrNoCredential = errors.New("no handshake credential available for cert version") |
| 19 |
ErrAsymmetricCipherKeys = errors.New("noise produced only one cipher key") |
| 20 |
ErrMultiMessageUnsupported = errors.New("multi-message handshake patterns are not yet supported by the manager") |
| 21 |
ErrSubtypeMismatch = errors.New("packet subtype does not match handshake machine subtype") |
| 22 |
) |