mirror of
https://github.com/octoleo/restic.git
synced 2024-12-22 10:58:55 +00:00
crypto: Remove unused error
This commit is contained in:
parent
f6f11400c2
commit
7ee0964880
@ -231,10 +231,6 @@ func (k *EncryptionKey) Valid() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// ErrInvalidCiphertext is returned when trying to encrypt into the slice that
|
||||
// holds the plaintext.
|
||||
var ErrInvalidCiphertext = errors.New("invalid ciphertext, same slice used for plaintext")
|
||||
|
||||
// validNonce checks that nonce is not all zero.
|
||||
func validNonce(nonce []byte) bool {
|
||||
var sum byte
|
||||
|
Loading…
Reference in New Issue
Block a user