Restrict to EC only

This commit is contained in:
Max Goedjen
2020-03-09 22:06:51 -07:00
parent 945907cfd4
commit 668f46c803
4 changed files with 2 additions and 13 deletions

View File

@@ -37,8 +37,6 @@ extension OpenSSHKeyWriter {
switch algorithm {
case .ellipticCurve:
return "nistp" + String(describing: length)
case .rsa:
return "ssh-rsa"
}
}
@@ -46,8 +44,6 @@ extension OpenSSHKeyWriter {
switch algorithm {
case .ellipticCurve:
return "ecdsa-sha2-nistp" + String(describing: length)
case .rsa:
return "ssh-rsa"
}
}
}