fix wrong ed25519 information
authorRosen Penev <rosenp@gmail.com>
Sat, 11 Sep 2021 07:05:42 +0000 (00:05 -0700)
committerPaul Spooren <mail@aparcar.org>
Mon, 20 Sep 2021 22:11:00 +0000 (12:11 -1000)
ECDH is not used for the ed25519. The scheme is called EdDSA.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
modules/luci-mod-system/htdocs/luci-static/resources/view/system/sshkeys.js

index 1e38a620fae5a46398e9b88614bbbe09a0a33e96..ae2c2b3de3ef331283d9eda82d1686317fbc0629 100644 (file)
@@ -95,7 +95,7 @@ var SSHPubkeyDecoder = baseclass.singleton({
                        return { type: 'DSA', bits: len1 * 8, comment: comment, options: options, fprint: fprint, src: s };
 
                case 'ssh-ed25519':
-                       return { type: 'ECDH', curve: 'Curve25519', comment: comment, options: options, fprint: fprint, src: s };
+                       return { type: 'EdDSA', curve: 'Curve25519', comment: comment, options: options, fprint: fprint, src: s };
 
                case 'ecdsa-sha2':
                        return { type: 'ECDSA', curve: curve, comment: comment, options: options, fprint: fprint, src: s };