Skip to content

Commit

Permalink
observe gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
martelletto committed Sep 25, 2017
1 parent dd7adfa commit 2606468
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions ratchet/ratchet_test.go
Expand Up @@ -15,19 +15,19 @@ import (
"time"

"github.com/agl/ed25519"
"github.com/companyzero/zkc/blobshare"
"github.com/companyzero/sntrup4591761"
"github.com/companyzero/zkc/blobshare"
"github.com/companyzero/zkc/ratchet/disk"
"github.com/davecgh/go-xdr/xdr2"
"golang.org/x/crypto/curve25519"
)

type client struct {
PrivateKey [sntrup4591761.PrivateKeySize]byte
PublicKey [sntrup4591761.PublicKeySize]byte
SigningPrivate [64]byte
SigningPublic [32]byte
Identity [sha256.Size]byte
PrivateKey [sntrup4591761.PrivateKeySize]byte
PublicKey [sntrup4591761.PublicKeySize]byte
SigningPrivate [64]byte
SigningPublic [32]byte
Identity [sha256.Size]byte
}

func nowFunc() time.Time {
Expand Down Expand Up @@ -574,7 +574,7 @@ func TestImpersonation(t *testing.T) {

notB := New(rand.Reader)
notB.Now = nowFunc
notB.MyPrivateKey = &chris.PrivateKey // I am actually Chris...
notB.MyPrivateKey = &chris.PrivateKey // I am actually Chris...
notB.MySigningPublic = &bob.SigningPublic // But Alice will think I am Bob.

// Alice thinks she's talking to Bob
Expand Down
4 changes: 2 additions & 2 deletions zkidentity/zkidentity_test.go
Expand Up @@ -97,8 +97,8 @@ func TestImpersonatedRatchet(t *testing.T) {
a.TheirPublicKey = &bob.Public.Key

b := ratchet.New(rand.Reader)
b.MyPrivateKey = &chris.PrivateKey // I am chris
b.MySigningPublic = &bob.Public.SigKey // pretending to be bob
b.MyPrivateKey = &chris.PrivateKey // I am chris
b.MySigningPublic = &bob.Public.SigKey // pretending to be bob
b.TheirIdentityPublic = &alice.Public.Identity // trying to fool Alice
b.TheirSigningPublic = &alice.Public.SigKey
b.TheirPublicKey = &alice.Public.Key
Expand Down

0 comments on commit 2606468

Please sign in to comment.