Skip to content

Commit b665ba6

Browse files
thaJeztahFiloSottile
authored andcommitted
all: use crypto/ed25519 instead of golang.org/x/crypto/ed25519
This is a follow-up to CL 317169, which dropped go1.12 compatibility, and made the golang.org/x/crypto/ed25519 package an alias / wrapper for crypto/ed25519 in stdlib. This patch updates uses within this repository to use stdlib instead of depending on the wrapper. With this patch applied, the only remaining use of the wrapper is in ed25519_test, which appears to be in place to verify compatibility of the wrapper itself. Change-Id: I0195396102a75ae20bdd82ca8ab59855c0eb5cea GitHub-Last-Rev: 24dbec5 GitHub-Pull-Request: #238 Reviewed-on: https://go-review.googlesource.com/c/crypto/+/448238 Reviewed-by: Bryan Mills <[email protected]> Run-TryBot: Nicola Murino <[email protected]> Reviewed-by: Nicola Murino <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Joedian Reid <[email protected]> Reviewed-by: Roland Shoemaker <[email protected]> Reviewed-by: Than McIntosh <[email protected]>
1 parent a1aeb9b commit b665ba6

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

internal/wycheproof/eddsa_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@
88
package wycheproof
99

1010
import (
11+
"crypto/ed25519"
1112
"testing"
12-
13-
"golang.org/x/crypto/ed25519"
1413
)
1514

1615
func TestEddsa(t *testing.T) {

nacl/sign/sign.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@
2121
package sign
2222

2323
import (
24+
"crypto/ed25519"
2425
"io"
2526

26-
"golang.org/x/crypto/ed25519"
2727
"golang.org/x/crypto/internal/alias"
2828
)
2929

ssh/agent/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import (
1616
"bytes"
1717
"crypto/dsa"
1818
"crypto/ecdsa"
19+
"crypto/ed25519"
1920
"crypto/elliptic"
2021
"crypto/rsa"
2122
"encoding/base64"
@@ -26,7 +27,6 @@ import (
2627
"math/big"
2728
"sync"
2829

29-
"golang.org/x/crypto/ed25519"
3030
"golang.org/x/crypto/ssh"
3131
)
3232

ssh/agent/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ package agent
77
import (
88
"crypto/dsa"
99
"crypto/ecdsa"
10+
"crypto/ed25519"
1011
"crypto/elliptic"
1112
"crypto/rsa"
1213
"encoding/binary"
@@ -16,7 +17,6 @@ import (
1617
"log"
1718
"math/big"
1819

19-
"golang.org/x/crypto/ed25519"
2020
"golang.org/x/crypto/ssh"
2121
)
2222

ssh/keys.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111
"crypto/cipher"
1212
"crypto/dsa"
1313
"crypto/ecdsa"
14+
"crypto/ed25519"
1415
"crypto/elliptic"
1516
"crypto/md5"
1617
"crypto/rand"
@@ -28,7 +29,6 @@ import (
2829
"math/big"
2930
"strings"
3031

31-
"golang.org/x/crypto/ed25519"
3232
"golang.org/x/crypto/ssh/internal/bcrypt_pbkdf"
3333
)
3434

ssh/keys_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import (
88
"bytes"
99
"crypto/dsa"
1010
"crypto/ecdsa"
11+
"crypto/ed25519"
1112
"crypto/elliptic"
1213
"crypto/rand"
1314
"crypto/rsa"
@@ -21,7 +22,6 @@ import (
2122
"strings"
2223
"testing"
2324

24-
"golang.org/x/crypto/ed25519"
2525
"golang.org/x/crypto/ssh/testdata"
2626
)
2727

0 commit comments

Comments
 (0)