1// Copyright (C) 2020 Storj Labs, Inc.
2// See LICENSE for copying information.
3
4// Package encryption collects common cryptographic primitives needed for path and data encryption.
5package encryption
6
7import (
8	"github.com/zeebo/errs"
9)
10
11// Error is the default encryption errs class.
12var Error = errs.Class("encryption")
13
14// ErrDecryptFailed is the errs class when the decryption fails.
15var ErrDecryptFailed = errs.Class("decryption failed, check encryption key")
16
17// ErrInvalidConfig is the errs class for invalid configuration.
18var ErrInvalidConfig = errs.Class("invalid encryption configuration")
19