blob: ac9ba2744dc1984d26c8abf944d410f2349b9e45 [file] [log] [blame]
package cose
import "errors"
// Common errors
var (
ErrAlgorithmMismatch = errors.New("algorithm mismatch")
ErrAlgorithmNotFound = errors.New("algorithm not found")
ErrAlgorithmNotSupported = errors.New("algorithm not supported")
ErrAlgorithmRegistered = errors.New("algorithm registered")
ErrEmptySignature = errors.New("empty signature")
ErrInvalidAlgorithm = errors.New("invalid algorithm")
ErrMissingPayload = errors.New("missing payload")
ErrNoSignatures = errors.New("no signatures attached")
ErrUnavailableHashFunc = errors.New("hash function is not available")
ErrUnknownAlgorithm = errors.New("unknown algorithm")
ErrVerification = errors.New("verification error")
)