summaryrefslogtreecommitdiffhomepage
path: root/src/noise_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/noise_test.go')
-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)
}()