From 02f30472ca8eac7ae286f5043d4b131ba7400a8c Mon Sep 17 00:00:00 2001 From: Lukas Burkhalter Date: Fri, 8 Nov 2024 15:44:10 +0100 Subject: [PATCH] feat: Adapt to go-crypto cleartext API changes --- crypto/verify_handle.go | 2 +- go.mod | 2 +- go.sum | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/crypto/verify_handle.go b/crypto/verify_handle.go index 3cc7d9bd..e5498e10 100644 --- a/crypto/verify_handle.go +++ b/crypto/verify_handle.go @@ -221,7 +221,7 @@ func (vh *verifyHandle) verifyCleartext(cleartext []byte) (*VerifyCleartextResul } return &VerifyCleartextResult{ VerifyResult: *result, - cleartext: block.Plaintext[:len(block.Plaintext)-1], + cleartext: block.Plaintext, }, nil } diff --git a/go.mod b/go.mod index a02595a5..c9080eff 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module github.com/ProtonMail/gopenpgp/v3 go 1.17 require ( - github.com/ProtonMail/go-crypto v1.1.0 + github.com/ProtonMail/go-crypto v1.1.2-0.20241108143523-2d2c7894dbb6 github.com/ProtonMail/go-mime v0.0.0-20230322103455-7d82a3887f2f github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.7.0 diff --git a/go.sum b/go.sum index 59e27411..b025f588 100644 --- a/go.sum +++ b/go.sum @@ -1,5 +1,7 @@ github.com/ProtonMail/go-crypto v1.1.0 h1:OnlSGxXflfrWJESDsGQOmACNQRM9IflG3q8XTrOqvbE= github.com/ProtonMail/go-crypto v1.1.0/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= +github.com/ProtonMail/go-crypto v1.1.2-0.20241108143523-2d2c7894dbb6 h1:z5b/wKa/rQQ0n6MiQbGRS2f4OwtPFfIPsVWRCvt8N30= +github.com/ProtonMail/go-crypto v1.1.2-0.20241108143523-2d2c7894dbb6/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= github.com/ProtonMail/go-mime v0.0.0-20230322103455-7d82a3887f2f h1:tCbYj7/299ekTTXpdwKYF8eBlsYsDVoggDAuAjoK66k= github.com/ProtonMail/go-mime v0.0.0-20230322103455-7d82a3887f2f/go.mod h1:gcr0kNtGBqin9zDW9GOHcVntrwnjrK+qdJ06mWYBybw= github.com/bwesterb/go-ristretto v1.2.3/go.mod h1:fUIoIZaG73pV5biE2Blr2xEzDoMj7NFEuV9ekS419A0=