Skip to content

Commit

Permalink
extra25519: gofmt and update path to curve25519
Browse files Browse the repository at this point in the history
  • Loading branch information
dchest committed May 8, 2015
1 parent d2b94fd commit 2b8e303
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions extra25519/extra25519_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -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[:])
Expand All @@ -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)
}
}

Expand All @@ -73,6 +73,6 @@ func BenchmarkMap(b *testing.B) {

b.ResetTimer()
for i := 0; i < b.N; i++ {
RepresentativeToPublicKey(&publicKey, &representative);
RepresentativeToPublicKey(&publicKey, &representative)
}
}

0 comments on commit 2b8e303

Please sign in to comment.