forked from TrueCloudLab/restic
crypto: Remove unused error
This commit is contained in:
parent
f6f11400c2
commit
7ee0964880
1 changed files with 0 additions and 4 deletions
|
@ -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 a new issue