summaryrefslogtreecommitdiffhomepage
path: root/noise_test.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-13 23:14:43 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-13 23:20:13 +0200
commitb56af1829d0368c893f8e9e14894f9563afb60ef (patch)
treebf8aaeefe196ff6672819c1c858c7b5d19352577 /noise_test.go
parent729773fdf3cbec5f75d5981fc1fe6f7f21b0e00c (diff)
More refactoring
Diffstat (limited to 'noise_test.go')
-rw-r--r--noise_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/noise_test.go b/noise_test.go
index ce32097..8e1bd89 100644
--- a/noise_test.go
+++ b/noise_test.go
@@ -36,8 +36,8 @@ func TestNoiseHandshake(t *testing.T) {
defer dev1.Close()
defer dev2.Close()
- peer1, _ := dev2.NewPeer(dev1.noise.privateKey.publicKey())
- peer2, _ := dev1.NewPeer(dev2.noise.privateKey.publicKey())
+ peer1, _ := dev2.NewPeer(dev1.staticIdentity.privateKey.publicKey())
+ peer2, _ := dev1.NewPeer(dev2.staticIdentity.privateKey.publicKey())
assertEqual(
t,
@@ -102,8 +102,8 @@ func TestNoiseHandshake(t *testing.T) {
t.Log("deriving keys")
- key1 := peer1.DeriveNewKeypair()
- key2 := peer2.DeriveNewKeypair()
+ key1 := peer1.BeginSymmetricSession()
+ key2 := peer2.BeginSymmetricSession()
if key1 == nil {
t.Fatal("failed to dervice keypair for peer 1")