File tree 6 files changed +33
-9
lines changed
6 files changed +33
-9
lines changed Original file line number Diff line number Diff line change 12
12
runs-on : ubuntu-18.04
13
13
strategy :
14
14
matrix :
15
- GOVER : ['1.14', '1.13']
15
+ GOVER : ['1.14', '1.13', '1.12' ]
16
16
steps :
17
17
- name : Checkout
18
18
uses : actions/checkout@v2
Original file line number Diff line number Diff line change 1
1
module github.com/cloudflare/circl
2
2
3
- go 1.13
3
+ go 1.12
4
4
5
- require golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae
5
+ require golang.org/x/sys v0.0.0-20190602015325-4c4f7f33c9ed
Original file line number Diff line number Diff line change 1
- golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae h1:Ih9Yo4hSPImZOpfGuA4bR/ORKTAbhZo2AbWNRCnevdo =
2
- golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
1
+ golang.org/x/sys v0.0.0-20190602015325-4c4f7f33c9ed h1:uPxWBzB3+mlnjy9W58qY1j/cjyFjutgw/Vhan2zLy/A =
2
+ golang.org/x/sys v0.0.0-20190602015325-4c4f7f33c9ed /go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs =
Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ package ed25519
38
38
import (
39
39
"bytes"
40
40
"crypto"
41
- cryptoEd25519 "crypto/ed25519"
42
41
cryptoRand "crypto/rand"
43
42
"crypto/sha512"
44
43
"crypto/subtle"
@@ -90,9 +89,6 @@ const (
90
89
ED25519Ctx
91
90
)
92
91
93
- // PublicKey is the type of Ed25519 public keys.
94
- type PublicKey = cryptoEd25519.PublicKey
95
-
96
92
// PrivateKey is the type of Ed25519 private keys. It implements crypto.Signer.
97
93
type PrivateKey []byte
98
94
Original file line number Diff line number Diff line change
1
+ // +build !go1.12
2
+
3
+ package ed25519
4
+
5
+ import cryptoEd25519 "crypto/ed25519"
6
+
7
+ // PublicKey is the type of Ed25519 public keys.
8
+ type PublicKey = cryptoEd25519.PublicKey
Original file line number Diff line number Diff line change
1
+ // +build go1.12
2
+
3
+ package ed25519
4
+
5
+ import (
6
+ "bytes"
7
+ "crypto"
8
+ )
9
+
10
+ // PublicKey is the type of Ed25519 public keys.
11
+ type PublicKey []byte
12
+
13
+ // Equal reports whether pub and x have the same value.
14
+ func (pub PublicKey ) Equal (x crypto.PublicKey ) bool {
15
+ xx , ok := x .(PublicKey )
16
+ if ! ok {
17
+ return false
18
+ }
19
+ return bytes .Equal (pub , xx )
20
+ }
You can’t perform that action at this time.
0 commit comments