From 7ee096488075f6550d22bf4ae95626ca625317a3 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Sat, 7 Mar 2020 00:33:10 +0100 Subject: [PATCH] crypto: Remove unused error --- internal/crypto/crypto.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/internal/crypto/crypto.go b/internal/crypto/crypto.go index b56a9da2e..56ee61dba 100644 --- a/internal/crypto/crypto.go +++ b/internal/crypto/crypto.go @@ -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