aboutsummaryrefslogtreecommitdiffstats
path: root/noise_test.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-05-13 19:50:58 +0200
committerJason A. Donenfeld <Jason@zx2c4.com>2018-05-13 19:52:13 +0200
commit729773fdf3cbec5f75d5981fc1fe6f7f21b0e00c (patch)
tree81d86b767cce3b641884bc143c03712df0716bc4 /noise_test.go
parentFix up tests (diff)
downloadwireguard-go-729773fdf3cbec5f75d5981fc1fe6f7f21b0e00c.tar.xz
wireguard-go-729773fdf3cbec5f75d5981fc1fe6f7f21b0e00c.zip
More odds and ends
Diffstat (limited to '')
-rw-r--r--noise_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/noise_test.go b/noise_test.go
index 37bfb94..ce32097 100644
--- a/noise_test.go
+++ b/noise_test.go
@@ -102,15 +102,15 @@ func TestNoiseHandshake(t *testing.T) {
t.Log("deriving keys")
- key1 := peer1.NewKeypair()
- key2 := peer2.NewKeypair()
+ key1 := peer1.DeriveNewKeypair()
+ key2 := peer2.DeriveNewKeypair()
if key1 == nil {
- t.Fatal("failed to dervice key-pair for peer 1")
+ t.Fatal("failed to dervice keypair for peer 1")
}
if key2 == nil {
- t.Fatal("failed to dervice key-pair for peer 2")
+ t.Fatal("failed to dervice keypair for peer 2")
}
// encrypting / decryption test