forked from mozilla-services/go-cose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
errors.go
23 lines (21 loc) · 1.17 KB
/
errors.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
package cose
import (
"errors"
)
var (
ErrInvalidAlg = errors.New("Invalid algorithm")
ErrAlgNotFound = errors.New("Error fetching alg")
ErrECDSAVerification = errors.New("verification failed ecdsa.Verify")
ErrRSAPSSVerification = errors.New("verification failed rsa.VerifyPSS err crypto/rsa: verification error")
ErrMissingCOSETagForLabel = errors.New("No common COSE tag for label")
ErrMissingCOSETagForTag = errors.New("No common COSE label for tag")
ErrNilSigHeader = errors.New("Signature.headers is nil")
ErrNilSigProtectedHeaders = errors.New("Signature.headers.protected is nil")
ErrNilSignatures = errors.New("SignMessage.signatures is nil. Use AddSignature to add one")
ErrNoSignatures = errors.New("No signatures to sign the message. Use AddSignature to add them")
ErrNoSignerFound = errors.New("No signer found")
ErrNoVerifierFound = errors.New("No verifier found")
ErrUnavailableHashFunc = errors.New("hash function is not available")
ErrUnknownPrivateKeyType = errors.New("Unrecognized private key type")
ErrUnknownPublicKeyType = errors.New("Unrecognized public key type")
)