Skip to content

Commit e3a47dd

Browse files
committed
deps: switch to protonmail crypto lib fork
1 parent 0859340 commit e3a47dd

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

go.mod

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ module git.sr.ht/~whereswaldon/forest-go
22

33
require golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f
44

5-
go 1.13
5+
replace golang.org/x/crypto => github.com/ProtonMail/crypto v0.0.0-20191122234321-e77a1f03baa0
6+
7+
go 1.14

go.sum

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
github.com/ProtonMail/crypto v0.0.0-20191122234321-e77a1f03baa0 h1:mCww5Yl0Pm4PZPSooupyWDgihrh96p6+O4PY1hs0FBw=
2+
github.com/ProtonMail/crypto v0.0.0-20191122234321-e77a1f03baa0/go.mod h1:MBriIAodHvZ+YvwvMJWCTmseW/LkeVRPWp/iZKvee4g=
13
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
24
golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f h1:R423Cnkcp5JABoeemiGEPlt9tHXFfw5kvc0yqlxRPWo=
35
golang.org/x/crypto v0.0.0-20190513172903-22d7a77e9e5f/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=

signature_validator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func ValidateSignature(v SignatureValidator, identity *Identity) (bool, error) {
4545

4646
signatureBuf := bytes.NewBuffer([]byte(v.GetSignature().Blob))
4747
keyring := openpgp.EntityList([]*openpgp.Entity{pubkeyEntity})
48-
_, err = openpgp.CheckDetachedSignature(keyring, signedContentBuf, signatureBuf)
48+
_, err = openpgp.CheckDetachedSignature(keyring, signedContentBuf, signatureBuf, nil)
4949
if err != nil {
5050
return false, err
5151
}

0 commit comments

Comments
 (0)