aboutsummaryrefslogtreecommitdiffstats
path: root/src/noise_test.go
diff options
context:
space:
mode:
authorMathias Hall-Andersen <mathias@hall-andersen.dk>2017-09-01 14:31:57 +0200
committerMathias Hall-Andersen <mathias@hall-andersen.dk>2017-09-01 14:31:57 +0200
commitc24b883c01fc932dd28add1ac0319459a007d498 (patch)
treef8eaf8fa466060874e7408972632efeef6ee7e8b /src/noise_test.go
parentImproved handling of key-material (diff)
downloadwireguard-go-c24b883c01fc932dd28add1ac0319459a007d498.tar.xz
wireguard-go-c24b883c01fc932dd28add1ac0319459a007d498.zip
Fixed KDF tests
Diffstat (limited to '')
-rw-r--r--src/noise_test.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/noise_test.go b/src/noise_test.go
index 0d7f0e9..48408f9 100644
--- a/src/noise_test.go
+++ b/src/noise_test.go
@@ -117,8 +117,8 @@ func TestNoiseHandshake(t *testing.T) {
var err error
var out []byte
var nonce [12]byte
- out = key1.send.Seal(out, nonce[:], testMsg, nil)
- out, err = key2.receive.Open(out[:0], nonce[:], out, nil)
+ out = key1.send.aead.Seal(out, nonce[:], testMsg, nil)
+ out, err = key2.receive.aead.Open(out[:0], nonce[:], out, nil)
assertNil(t, err)
assertEqual(t, out, testMsg)
}()
@@ -128,8 +128,8 @@ func TestNoiseHandshake(t *testing.T) {
var err error
var out []byte
var nonce [12]byte
- out = key2.send.Seal(out, nonce[:], testMsg, nil)
- out, err = key1.receive.Open(out[:0], nonce[:], out, nil)
+ out = key2.send.aead.Seal(out, nonce[:], testMsg, nil)
+ out, err = key1.receive.aead.Open(out[:0], nonce[:], out, nil)
assertNil(t, err)
assertEqual(t, out, testMsg)
}()