Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
 private static void DefineCurve(
     string name,
     DerObjectIdentifier oid,
     X9ECParametersHolder holder)
 {
     objIds.Add(name, oid);
     names.Add(oid, name);
     curves.Add(oid, holder);
 }
Ejemplo n.º 3
0
		private static void DefineCurve(
			string					name,
			DerObjectIdentifier		oid,
			X9ECParametersHolder	holder)
		{
			objIds.Add(name, oid);
			names.Add(oid, name);
			curves.Add(oid, holder);
		}