Browse Source

:wrench: Switch to more robust Ed25519

Ettore Di Giacinto 3 years ago
parent
commit
04b4eca601
1 changed files with 2 additions and 2 deletions
  1. 2 2
      pkg/edgevpn/connection.go

+ 2 - 2
pkg/edgevpn/connection.go

@@ -33,8 +33,8 @@ func (e *EdgeVPN) genHost(ctx context.Context) (host.Host, error) {
 	} else {
 		r = mrand.New(mrand.NewSource(e.seed))
 	}
-	// Creates a new RSA key pair for this host.
-	prvKey, _, err := crypto.GenerateKeyPairWithReader(crypto.RSA, 2048, r)
+
+	prvKey, _, err := crypto.GenerateKeyPairWithReader(crypto.Ed25519, 4096, r)
 	if err != nil {
 		return nil, err
 	}