fix wrong ed25519 information

ECDH is not used for the ed25519. The scheme is called EdDSA.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
Rosen Penev 2021-09-11 00:05:42 -07:00 committed by Paul Spooren
parent 2890d1842a
commit 738f36a1c3

View file

@ -95,7 +95,7 @@ var SSHPubkeyDecoder = baseclass.singleton({
return { type: 'DSA', bits: len1 * 8, comment: comment, options: options, fprint: fprint, src: s }; return { type: 'DSA', bits: len1 * 8, comment: comment, options: options, fprint: fprint, src: s };
case 'ssh-ed25519': 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': case 'ecdsa-sha2':
return { type: 'ECDSA', curve: curve, comment: comment, options: options, fprint: fprint, src: s }; return { type: 'ECDSA', curve: curve, comment: comment, options: options, fprint: fprint, src: s };