Support Ed448 key types
@@ -226,6 +226,15 @@ static boolean isSuitableCertificate(boolean forServer, String keyType, X509Cert
if (isSuitableKeyUsage(KeyUsage.digitalSignature, c))
{
+ if ("Ed25519".equalsIgnoreCase(keyType))
+ {
+ return "Ed25519".equalsIgnoreCase(pub.getAlgorithm());
+ }
+ if ("Ed448".equalsIgnoreCase(keyType))
+ {
+ return "Ed448".equalsIgnoreCase(pub.getAlgorithm());
+ }
+
if (forServer)
{
if (keyType.equalsIgnoreCase("ECDHE_ECDSA"))
