]> Cypherpunks repositories - gostls13.git/commit
crypto/ed25519: promote from golang.org/x/crypto/ed25519
authorFilippo Valsorda <filippo@golang.org>
Thu, 2 May 2019 21:31:56 +0000 (17:31 -0400)
committerFilippo Valsorda <filippo@golang.org>
Mon, 6 May 2019 23:23:45 +0000 (23:23 +0000)
commit53374e7e068c032b9e6278e592974e973a554365
tree326ba77ff7689139667a7728ab787601ffbe1748
parent2729cd07510b38c6be4f99beebe32ccb888d1f0f
crypto/ed25519: promote from golang.org/x/crypto/ed25519

The crypto/tls and crypto/x509 APIs leak PublicKey and PrivateKey types,
so in order to add support for Ed25519 certificates we need the ed25519
package in the stdlib.

It's also a primitive that's reasonable to use directly in applications,
as it is a modern, safe and fast signing algorithm, for which there
aren't higher level APIs. (The nacl/sign API is limiting in that it
repeats the message.)

A few docs changes will come in a follow-up, and a CL will land on
golang.org/x/crypto/ed25519 to make it a type alias wrapper on Go 1.13+.

Updates #25355

Change-Id: I057f20cc7d1aca2b95c29ce73eb03c3b237e413f
Reviewed-on: https://go-review.googlesource.com/c/go/+/174945
Run-TryBot: Filippo Valsorda <filippo@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Adam Langley <agl@golang.org>
misc/nacl/testzip.proto
src/cmd/go/internal/note/note.go
src/cmd/go/internal/note/note_test.go
src/cmd/vendor/modules.txt
src/crypto/ed25519/ed25519.go [moved from src/cmd/vendor/golang.org/x/crypto/ed25519/ed25519.go with 99% similarity]
src/crypto/ed25519/ed25519_test.go [new file with mode: 0644]
src/crypto/ed25519/internal/edwards25519/const.go [moved from src/cmd/vendor/golang.org/x/crypto/ed25519/internal/edwards25519/const.go with 100% similarity]
src/crypto/ed25519/internal/edwards25519/edwards25519.go [moved from src/cmd/vendor/golang.org/x/crypto/ed25519/internal/edwards25519/edwards25519.go with 100% similarity]
src/crypto/ed25519/testdata/sign.input.gz [new file with mode: 0644]
src/go/build/deps_test.go