aboutsummaryrefslogtreecommitdiff
path: root/device/cookie_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'device/cookie_test.go')
-rw-r--r--device/cookie_test.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/device/cookie_test.go b/device/cookie_test.go
index ef01d46..79a6a86 100644
--- a/device/cookie_test.go
+++ b/device/cookie_test.go
@@ -7,8 +7,6 @@ package device
import (
"testing"
-
- "golang.zx2c4.com/wireguard/wgcfg"
)
func TestCookieMAC1(t *testing.T) {
@@ -20,11 +18,11 @@ func TestCookieMAC1(t *testing.T) {
checker CookieChecker
)
- sk, err := wgcfg.NewPrivateKey()
+ sk, err := newPrivateKey()
if err != nil {
t.Fatal(err)
}
- pk := sk.Public()
+ pk := sk.publicKey()
generator.Init(pk)
checker.Init(pk)