Fix incorrect curve detection for ecdsa-sha2
This commit is contained in:
parent
944842d4eb
commit
ac1c93d29b
@ -62,7 +62,7 @@ class ParseSSHHostKey extends Operation {
|
||||
output += `\ng: 0x${fields[3]}`;
|
||||
output += `\ny: 0x${fields[4]}`;
|
||||
} else if (keyType.startsWith("ecdsa-sha2")) {
|
||||
output += `\nCurve: ${Utils.byteArrayToChars(fromHex(fields[0]))}`;
|
||||
output += `\nCurve: ${Utils.byteArrayToChars(fromHex(fields[1]))}`;
|
||||
output += `\nPoint: 0x${fields.slice(2)}`;
|
||||
} else {
|
||||
output += "\nUnsupported key type.";
|
||||
|
Loading…
Reference in New Issue
Block a user