mirror of
https://codeberg.org/cunicu/cunicu.git
synced 2025-11-03 07:30:50 +08:00
crypto: remove usused function
Signed-off-by: Steffen Vogel <post@steffenvogel.de>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user