示例#1
0
        /**
         * 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(
            DerObjectIdentifier oid)
        {
            X9ECParametersHolder holder = (X9ECParametersHolder)curves[oid];

            return(holder == null ? null : holder.Parameters);
        }
示例#2
0
 private static void DefineCurve(
     string name,
     DerObjectIdentifier oid,
     X9ECParametersHolder holder)
 {
     objIds.Add(name, oid);
     names.Add(oid, name);
     curves.Add(oid, holder);
 }
示例#3
0
		private static void DefineCurve(
			string name,
			DerObjectIdentifier oid,
			X9ECParametersHolder holder)
		{
			objIds.Add(Platform.ToUpperInvariant(name), oid);
			names.Add(oid, name);
			curves.Add(oid, holder);
		}
示例#4
0
 private static void DefineCurve(string name, DerObjectIdentifier oid, X9ECParametersHolder holder)
 {
     nameToCurve.Add(name, holder);
     nameToOid.Add(name, oid);
     oidToName.Add(oid, name);
     oidToCurve.Add(oid, holder);
 }
示例#5
0
 private static void DefineCurve(string name, X9ECParametersHolder holder)
 {
     nameToCurve.Add(name, holder);
 }
示例#6
0
 private static void DefineCurve(
     string					name,
     DerObjectIdentifier		oid,
     X9ECParametersHolder	holder)
 {
     objIds.Add(name, oid);
     names.Add(oid, name);
     curves.Add(oid, holder);
 }