Skip to content

Commit 943f208

Browse files
committed
using github.com/ProtonMail/go-crypto instead of golang.org/x/crypto
1 parent 7f54a09 commit 943f208

File tree

10 files changed

+18
-17
lines changed

10 files changed

+18
-17
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ module github.com/jerson/openpgp-mobile
33
go 1.13
44

55
require (
6+
github.com/ProtonMail/go-crypto v0.0.0-20210920160938-87db9fbc61c7
67
github.com/google/flatbuffers v1.12.0
78
github.com/keybase/go-crypto v0.0.0-20200123153347-de78d2cb44f4
8-
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2
99
)
1010

1111
replace github.com/keybase/go-crypto => github.com/keybase/go-crypto v0.0.0-20200123153347-de78d2cb44f4

go.sum

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
github.com/ProtonMail/go-crypto v0.0.0-20210920160938-87db9fbc61c7 h1:DSqTh6nEes/uO8BlNcGk8PzZsxY2sN9ZL//veWBdTRI=
2+
github.com/ProtonMail/go-crypto v0.0.0-20210920160938-87db9fbc61c7/go.mod h1:z4/9nQmJSSwwds7ejkxaJwO37dru3geImFUdJlaLzQo=
13
github.com/google/flatbuffers v1.12.0 h1:/PtAHvnBY4Kqnx/xCQ3OIV9uYcSFGScBsWI3Oogeh6w=
24
github.com/google/flatbuffers v1.12.0/go.mod h1:1AeVuKshWv4vARoZatz6mlQ0JxURH0Kv5+zNeJKJCa8=
35
github.com/keybase/go-crypto v0.0.0-20200123153347-de78d2cb44f4 h1:cTxwSmnaqLoo+4tLukHoB9iqHOu3LmLhRmgUxZo6Vp4=
@@ -6,7 +8,6 @@ golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2 h1:It14KIkyBFYkHkwZ7k45mi
68
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
79
golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg=
810
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
9-
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1 h1:v+OssWQX+hTHEmOBgwxdZxK4zHq3yOs8F9J7mk0PY8E=
1011
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
1112
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
1213
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=

openpgp/common.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66
"encoding/base64"
77
"errors"
88
"fmt"
9-
"golang.org/x/crypto/openpgp"
10-
"golang.org/x/crypto/openpgp/armor"
11-
errorsOpenpgp "golang.org/x/crypto/openpgp/errors"
12-
"golang.org/x/crypto/openpgp/packet"
9+
"github.com/ProtonMail/go-crypto/openpgp"
10+
"github.com/ProtonMail/go-crypto/openpgp/armor"
11+
errorsOpenpgp "github.com/ProtonMail/go-crypto/openpgp/errors"
12+
"github.com/ProtonMail/go-crypto/openpgp/packet"
1313
"io"
1414
"strings"
1515
"time"

openpgp/decrypt.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package openpgp
33
import (
44
"bytes"
55
"fmt"
6-
"golang.org/x/crypto/openpgp"
6+
"github.com/ProtonMail/go-crypto/openpgp"
77
"io"
88
"io/ioutil"
99
"os"

openpgp/decrypt_symmetric.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"io/ioutil"
99
"os"
1010

11-
"golang.org/x/crypto/openpgp"
11+
"github.com/ProtonMail/go-crypto/openpgp"
1212
)
1313

1414
func (o *FastOpenPGP) DecryptSymmetric(message, passphrase string, options *KeyOptions) (string, error) {

openpgp/encrypt.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package openpgp
33
import (
44
"bytes"
55
"fmt"
6-
"golang.org/x/crypto/openpgp"
7-
"golang.org/x/crypto/openpgp/armor"
6+
"github.com/ProtonMail/go-crypto/openpgp"
7+
"github.com/ProtonMail/go-crypto/openpgp/armor"
88
"io/ioutil"
99
)
1010

openpgp/encrypt_symmetric.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package openpgp
33
import (
44
"bytes"
55
"fmt"
6-
"golang.org/x/crypto/openpgp"
7-
"golang.org/x/crypto/openpgp/armor"
6+
"github.com/ProtonMail/go-crypto/openpgp"
7+
"github.com/ProtonMail/go-crypto/openpgp/armor"
88
"io/ioutil"
99
)
1010

openpgp/generate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ package openpgp
33
import (
44
"bytes"
55
"fmt"
6+
"github.com/ProtonMail/go-crypto/openpgp/armor"
67
"github.com/keybase/go-crypto/openpgp/packet"
7-
"golang.org/x/crypto/openpgp/armor"
88

9+
"github.com/ProtonMail/go-crypto/openpgp"
910
keybaseOpenPGP "github.com/keybase/go-crypto/openpgp"
10-
"golang.org/x/crypto/openpgp"
1111
)
1212

1313
func (o *FastOpenPGP) Generate(options *Options) (*KeyPair, error) {

openpgp/metadata.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package openpgp
33
import (
44
"errors"
55
"fmt"
6-
"golang.org/x/crypto/openpgp"
6+
"github.com/ProtonMail/go-crypto/openpgp"
77
"strings"
88
"time"
99
)

openpgp/sign.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ import (
88
"io/ioutil"
99
"os"
1010

11-
"golang.org/x/crypto/openpgp"
12-
"golang.org/x/crypto/openpgp/armor"
11+
"github.com/ProtonMail/go-crypto/openpgp"
12+
"github.com/ProtonMail/go-crypto/openpgp/armor"
1313
)
1414

1515
func (o *FastOpenPGP) Sign(message, publicKey, privateKey, passphrase string, options *KeyOptions) (string, error) {

0 commit comments

Comments
 (0)