Skip to content

Commit

Permalink
feat: Adapt to go-crypto cleartext API changes
Browse files Browse the repository at this point in the history
  • Loading branch information
lubux committed Nov 8, 2024
1 parent 641a7b6 commit 02f3047
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crypto/verify_handle.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -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=
Expand Down

0 comments on commit 02f3047

Please sign in to comment.