fix wrong ed25519 information

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

Signed-off-by: Rosen Penev <rosenp@gmail.com>
(cherry picked from commit 738f36a1c3)
This commit is contained in:
Rosen Penev 2021-09-11 00:05:42 -07:00 committed by Jo-Philipp Wich
parent fc702bcbf5
commit 8acd0d76c4

View 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 };