mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-23 00:06:17 -04:00
Fix incorrect curve detection for ecdsa-sha2
This commit is contained in:
parent
944842d4eb
commit
ac1c93d29b
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue