summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Langley <agl@imperialviolet.org>2015-08-26 13:43:51 -0700
committerAdam Langley <agl@imperialviolet.org>2015-08-26 13:43:51 -0700
commit2c9297c0029af199c7cdf8f035cd6eea366e1977 (patch)
tree0b2ca0298f63dd2efff1ec0c49b59c476249a6a5
parentd2b94fd789ea21d12fac1a4443dd3a3f79cda72c (diff)
parent2b8e3036fb039833b5120f31e436ba4b90128ba9 (diff)
downloaded25519-2c9297c0029af199c7cdf8f035cd6eea366e1977.tar.xz
Merge pull request #7 from StableLib/fixes
extra25519: gofmt and update path to curve25519
-rw-r--r--extra25519/extra25519_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/extra25519/extra25519_test.go b/extra25519/extra25519_test.go
index 1e1dbdc..55be8ec 100644
--- a/extra25519/extra25519_test.go
+++ b/extra25519/extra25519_test.go
@@ -9,8 +9,8 @@ import (
"crypto/rand"
"testing"
- "code.google.com/p/go.crypto/curve25519"
"github.com/agl/ed25519"
+ "golang.org/x/crypto/curve25519"
)
func TestCurve25519Conversion(t *testing.T) {
@@ -52,7 +52,7 @@ func TestElligator(t *testing.T) {
func BenchmarkKeyGeneration(b *testing.B) {
var publicKey, representative, privateKey [32]byte
-
+
// Find the private key that results in a point that's in the image of the map.
for {
rand.Reader.Read(privateKey[:])
@@ -63,7 +63,7 @@ func BenchmarkKeyGeneration(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
- ScalarBaseMult(&publicKey, &representative, &privateKey);
+ ScalarBaseMult(&publicKey, &representative, &privateKey)
}
}
@@ -73,6 +73,6 @@ func BenchmarkMap(b *testing.B) {
b.ResetTimer()
for i := 0; i < b.N; i++ {
- RepresentativeToPublicKey(&publicKey, &representative);
+ RepresentativeToPublicKey(&publicKey, &representative)
}
}