equal
deleted
inserted
replaced
60 public static Collection<? extends NamedCurve>getSupportedCurves() { |
60 public static Collection<? extends NamedCurve>getSupportedCurves() { |
61 return specCollection; |
61 return specCollection; |
62 } |
62 } |
63 |
63 |
64 // Return a NamedCurve for the specified OID/name or null if unknown. |
64 // Return a NamedCurve for the specified OID/name or null if unknown. |
65 static NamedCurve lookup(String name) { |
65 public static NamedCurve lookup(String name) { |
66 NamedCurve spec = oidMap.get(name); |
66 NamedCurve spec = oidMap.get(name); |
67 if (spec != null) { |
67 if (spec != null) { |
68 return spec; |
68 return spec; |
69 } |
69 } |
70 |
70 |
81 return lengthMap.get(length); |
81 return lengthMap.get(length); |
82 } |
82 } |
83 |
83 |
84 // Convert the given ECParameterSpec object to a NamedCurve object. |
84 // Convert the given ECParameterSpec object to a NamedCurve object. |
85 // If params does not represent a known named curve, return null. |
85 // If params does not represent a known named curve, return null. |
86 static NamedCurve lookup(ECParameterSpec params) { |
86 public static NamedCurve lookup(ECParameterSpec params) { |
87 if ((params instanceof NamedCurve) || (params == null)) { |
87 if ((params instanceof NamedCurve) || (params == null)) { |
88 return (NamedCurve)params; |
88 return (NamedCurve)params; |
89 } |
89 } |
90 |
90 |
91 // This is a hack to allow SunJSSE to work with 3rd party crypto |
91 // This is a hack to allow SunJSSE to work with 3rd party crypto |