diff options
author | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-11-17 17:25:45 +0100 |
---|---|---|
committer | Mathias Hall-Andersen <mathias@hall-andersen.dk> | 2017-11-17 17:25:58 +0100 |
commit | fa399a91d5da9874cbf248e00db8dbd87b587e91 (patch) | |
tree | 8aaca42f4a3cc11666c12d5077e8ed5ac35200a8 /src/noise_test.go | |
parent | e1227d3af480eae72639cde842b4d538c58936dc (diff) |
Ported remaining netns.sh
- Ported remaining netns.sh tests
- Begin work on generic implementation of bind interface
Diffstat (limited to 'src/noise_test.go')
-rw-r--r-- | src/noise_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/noise_test.go b/src/noise_test.go index 48408f9..0d7f0e9 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.aead.Seal(out, nonce[:], testMsg, nil) - out, err = key2.receive.aead.Open(out[:0], nonce[:], out, nil) + out = key1.send.Seal(out, nonce[:], testMsg, nil) + out, err = key2.receive.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.aead.Seal(out, nonce[:], testMsg, nil) - out, err = key1.receive.aead.Open(out[:0], nonce[:], out, nil) + out = key2.send.Seal(out, nonce[:], testMsg, nil) + out, err = key1.receive.Open(out[:0], nonce[:], out, nil) assertNil(t, err) assertEqual(t, out, testMsg) }() |