jdk/src/java.base/share/classes/sun/security/ssl/SupportedEllipticCurvesExtension.java
equal
deleted
inserted
replaced
171 return NAMED_CURVE_OID_TABLE[index]; |
171 return NAMED_CURVE_OID_TABLE[index]; |
172 } |
172 } |
173 return null; |
173 return null; |
174 } |
174 } |
175 |
175 |
176 private final static int ARBITRARY_PRIME = 0xff01; |
176 private static final int ARBITRARY_PRIME = 0xff01; |
177 private final static int ARBITRARY_CHAR2 = 0xff02; |
177 private static final int ARBITRARY_CHAR2 = 0xff02; |
178 |
178 |
179 // See sun.security.util.NamedCurve for the OIDs |
179 // See sun.security.util.NamedCurve for the OIDs |
180 private final static String[] NAMED_CURVE_OID_TABLE = new String[] { |
180 private static final String[] NAMED_CURVE_OID_TABLE = new String[] { |
181 null, // (0) unused |
181 null, // (0) unused |
182 "1.3.132.0.1", // (1) sect163k1, NIST K-163 |
182 "1.3.132.0.1", // (1) sect163k1, NIST K-163 |
183 "1.3.132.0.2", // (2) sect163r1 |
183 "1.3.132.0.2", // (2) sect163r1 |
184 "1.3.132.0.15", // (3) sect163r2, NIST B-163 |
184 "1.3.132.0.15", // (3) sect163r2, NIST B-163 |
185 "1.3.132.0.24", // (4) sect193r1 |
185 "1.3.132.0.24", // (4) sect193r1 |
204 "1.2.840.10045.3.1.7", // (23) secp256r1, NIST P-256 |
204 "1.2.840.10045.3.1.7", // (23) secp256r1, NIST P-256 |
205 "1.3.132.0.34", // (24) secp384r1, NIST P-384 |
205 "1.3.132.0.34", // (24) secp384r1, NIST P-384 |
206 "1.3.132.0.35", // (25) secp521r1, NIST P-521 |
206 "1.3.132.0.35", // (25) secp521r1, NIST P-521 |
207 }; |
207 }; |
208 |
208 |
209 private final static Map<String,Integer> curveIndices; |
209 private static final Map<String,Integer> curveIndices; |
210 |
210 |
211 static { |
211 static { |
212 curveIndices = new HashMap<String,Integer>(); |
212 curveIndices = new HashMap<String,Integer>(); |
213 for (int i = 1; i < NAMED_CURVE_OID_TABLE.length; i++) { |
213 for (int i = 1; i < NAMED_CURVE_OID_TABLE.length; i++) { |
214 curveIndices.put(NAMED_CURVE_OID_TABLE[i], i); |
214 curveIndices.put(NAMED_CURVE_OID_TABLE[i], i); |