From b82ecc64252b442c9b330fa33b9ff8b3e90477f9 Mon Sep 17 00:00:00 2001 From: Michael Eischer Date: Wed, 5 Jun 2024 22:33:20 +0200 Subject: [PATCH] crypto: cleanup ciphertext verification error --- internal/crypto/crypto.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/crypto/crypto.go b/internal/crypto/crypto.go index 58c82e78c..d7ac9c3d4 100644 --- a/internal/crypto/crypto.go +++ b/internal/crypto/crypto.go @@ -27,7 +27,7 @@ const ( var ( // ErrUnauthenticated is returned when ciphertext verification has failed. - ErrUnauthenticated = errors.New("ciphertext verification failed") + ErrUnauthenticated = fmt.Errorf("ciphertext verification failed") ) // Key holds encryption and message authentication keys for a repository. It is stored