File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
tls/src/main/java/org/bouncycastle/tls/crypto/impl/jcajce Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -458,7 +458,7 @@ public AlgorithmParameters getNamedGroupAlgorithmParameters(int namedGroup)
458458 */
459459 return null ;
460460 }
461- else if (NamedGroup .refersToAnECDSACurve (namedGroup ))
461+ else if (NamedGroup .refersToASpecificCurve (namedGroup ))
462462 {
463463 return ECUtil .getAlgorithmParameters (this , NamedGroup .getCurveName (namedGroup ));
464464 }
@@ -1238,18 +1238,18 @@ protected Boolean isSupportedNamedGroup(int namedGroup)
12381238 }
12391239 }
12401240 }
1241- else if (NamedGroup .refersToASpecificKem (namedGroup ))
1242- {
1243- return Boolean .valueOf (KemUtil .isKemSupported (this , NamedGroup .getKemName (namedGroup )));
1244- }
1245- else if (NamedGroup .refersToAnECDSACurve (namedGroup ))
1241+ else if (NamedGroup .refersToASpecificCurve (namedGroup ))
12461242 {
12471243 return Boolean .valueOf (ECUtil .isCurveSupported (this , NamedGroup .getCurveName (namedGroup )));
12481244 }
12491245 else if (NamedGroup .refersToASpecificFiniteField (namedGroup ))
12501246 {
12511247 return Boolean .valueOf (DHUtil .isGroupSupported (this , TlsDHUtils .getNamedDHGroup (namedGroup )));
12521248 }
1249+ else if (NamedGroup .refersToASpecificKem (namedGroup ))
1250+ {
1251+ return Boolean .valueOf (KemUtil .isKemSupported (this , NamedGroup .getKemName (namedGroup )));
1252+ }
12531253 }
12541254 catch (GeneralSecurityException e )
12551255 {
You can’t perform that action at this time.
0 commit comments