2018-10-18 12:10:29 +01:00
|
|
|
// Copyright (C) 2018 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package encryption
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/zeebo/errs"
|
|
|
|
)
|
|
|
|
|
|
|
|
// Error is the default encryption errs class
|
|
|
|
var Error = errs.Class("encryption error")
|
2018-10-23 15:05:15 +01:00
|
|
|
|
|
|
|
// ErrDecryptFailed is the errs class when the decryption fails
|
|
|
|
var ErrDecryptFailed = errs.Class("decryption failed, check encryption key")
|
|
|
|
|
|
|
|
// ErrInvalidConfig is the errs class for invalid configuration
|
|
|
|
var ErrInvalidConfig = errs.Class("invalid encryption configuration")
|