< prev index next >

src/java.base/share/classes/sun/security/util/CurveDB.java

Print this page
rev 54061 : 8226374: Restrict TLS signature schemes and named groups
Reviewed-by: mullan

@@ -60,11 +60,11 @@
     public static Collection<? extends NamedCurve>getSupportedCurves() {
         return specCollection;
     }
 
     // Return a NamedCurve for the specified OID/name or null if unknown.
-    static NamedCurve lookup(String name) {
+    public static NamedCurve lookup(String name) {
         NamedCurve spec = oidMap.get(name);
         if (spec != null) {
             return spec;
         }
 

@@ -81,11 +81,11 @@
         return lengthMap.get(length);
     }
 
     // Convert the given ECParameterSpec object to a NamedCurve object.
     // If params does not represent a known named curve, return null.
-    static NamedCurve lookup(ECParameterSpec params) {
+    public static NamedCurve lookup(ECParameterSpec params) {
         if ((params instanceof NamedCurve) || (params == null)) {
             return (NamedCurve)params;
         }
 
         // This is a hack to allow SunJSSE to work with 3rd party crypto
< prev index next >