crypto: Remove unused error

This commit is contained in:
Michael Eischer 2020-03-07 00:33:10 +01:00
parent f6f11400c2
commit 7ee0964880

View file

@ -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