/** * return the X9ECParameters object for the named curve represented by * the passed in object identifier. Null if the curve isn't present. * * @param oid an object identifier representing a named curve, if present. */ public static X9ECParameters getByOID( ASN1ObjectIdentifier oid) { X9ECParametersHolder holder = (X9ECParametersHolder)curves.get(oid); if (holder != null) { return holder.getParameters(); } return null; }
static void defineCurveWithOID(String name, ASN1ObjectIdentifier oid, X9ECParametersHolder holder) { names.addElement(name); oidToName.put(oid, name); oidToCurve.put(oid, holder); name = Strings.toLowerCase(name); nameToOID.put(name, oid); nameToCurve.put(name, holder); }
/** * return the X9ECParameters object for the named curve represented by * the passed in object identifier. Null if the curve isn't present. * * @param oid an object identifier representing a named curve, if present. */ public static X9ECParameters getByOID( ASN1ObjectIdentifier oid) { X9ECParametersHolder holder = (X9ECParametersHolder)curves.get(oid); return holder == null ? null : holder.getParameters(); }
static void defineCurveWithOID(String name, ASN1ObjectIdentifier oid, X9ECParametersHolder holder) { nameToCurve.put(name, holder); nameToOID.put(name, oid); oidToName.put(oid, name); oidToCurve.put(oid, holder); }
static void defineCurve(String name, ASN1ObjectIdentifier oid, X9ECParametersHolder holder) { objIds.put(name, oid); names.put(oid, name); curves.put(oid, holder); }
static void defineCurve(String name, X9ECParametersHolder holder) { names.addElement(name); name = Strings.toLowerCase(name); nameToCurve.put(name, holder); }
public static X9ECParameters getByName(String name) { X9ECParametersHolder holder = (X9ECParametersHolder)nameToCurve.get(Strings.toLowerCase(name)); return holder == null ? null : holder.getParameters(); }
static void defineCurve(String name, ASN1ObjectIdentifier oid, X9ECParametersHolder holder) { objIds.put(name.toLowerCase(), oid); names.put(oid, name); curves.put(oid, holder); }
static void defineCurve(String name, X9ECParametersHolder holder) { nameToCurve.put(name, holder); }