crypto: remove usused function

Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
Steffen Vogel
2022-08-17 13:28:22 +00:00
parent ce93f14bae
commit 80c28f4f95

View File

@@ -5,7 +5,6 @@ import (
"encoding/base64"
"errors"
"net"
"path"
"github.com/aead/siphash"
"golang.org/x/crypto/curve25519"
@@ -44,10 +43,6 @@ func GenerateKeyFromPassword(pw string) Key {
return *(*Key)(key)
}
func PrivateKeyFromStrings(names ...string) Key {
return GenerateKeyFromPassword(path.Join(names...))
}
func GenerateKey() (Key, error) {
key, err := wgtypes.GenerateKey()
if err != nil {