aboutsummaryrefslogtreecommitdiffstats
path: root/xchacha20_test.go
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2018-02-12 20:10:44 +0100
committerJason A. Donenfeld <Jason@zx2c4.com>2018-02-12 20:13:03 +0100
commitbffe99aeadae09abd02f2bd3184925af6b680535 (patch)
tree556d223ebcd32b957e62e15353087b93a824641c /xchacha20_test.go
parentMoved test-processes to background (diff)
downloadwireguard-go-bffe99aeadae09abd02f2bd3184925af6b680535.tar.xz
wireguard-go-bffe99aeadae09abd02f2bd3184925af6b680535.zip
Don't use modules
Feel free to revert this if you have a strong feeling about it. But so far as I can see, it adds a lot of complexity for basically no upsides.
Diffstat (limited to '')
-rw-r--r--xchacha20_test.go (renamed from internal/xchacha20poly1305/xchacha20_test.go)6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/xchacha20poly1305/xchacha20_test.go b/xchacha20_test.go
index 5d5b78f..0f41cf8 100644
--- a/internal/xchacha20poly1305/xchacha20_test.go
+++ b/xchacha20_test.go
@@ -1,4 +1,4 @@
-package xchacha20poly1305
+package main
import (
"encoding/hex"
@@ -60,7 +60,7 @@ func TestXChaCha20(t *testing.T) {
// test encryption
- ct := Encrypt(
+ ct := XChaCha20Poly1305Encrypt(
nil,
&nonceArray,
pt,
@@ -74,7 +74,7 @@ func TestXChaCha20(t *testing.T) {
// test decryption
- ptp, err := Decrypt(
+ ptp, err := XChaCha20Poly1305Decrypt(
nil,
&nonceArray,
ct,