Пример #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);
        }
 private static void DefineCurve(
     string					name,
     DerObjectIdentifier		oid,
     X9ECParametersHolder	holder)
 {
     objIds.Add(Platform.ToLowerInvariant(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.ToLowerInvariant(name), oid);
     names.Add(oid, name);
     curves.Add(oid, holder);
 }
Пример #4
0
 private static void DefineCurve(
     string name,
     DerObjectIdentifier oid,
     X9ECParametersHolder holder)
 {
     objIds.Add(name, oid);
     names.Add(oid, name);
     curves.Add(oid, holder);
 }
Пример #5
0
 private static void DefineCurve(
     string name,
     DerObjectIdentifier oid,
     X9ECParametersHolder holder)
 {
     objIds.Add(Org.BouncyCastle.Utilities.Platform.ToUpperInvariant(name), oid);
     names.Add(oid, name);
     curves.Add(oid, holder);
 }
Пример #6
0
        public static X9ECParameters GetByOid(DerObjectIdentifier oid)
        {
            X9ECParametersHolder x9ECParametersHolder = (X9ECParametersHolder)X962NamedCurves.curves[oid];

            if (x9ECParametersHolder != null)
            {
                return(x9ECParametersHolder.Parameters);
            }
            return(null);
        }
Пример #7
0
 private static void DefineCurve(
     string					name,
     DerObjectIdentifier		oid,
     X9ECParametersHolder	holder)
 {
     objIds.Add(name, oid);
     names.Add(oid, name);
     curves.Add(oid, holder);
 }
Пример #8
0
 private static void DefineCurve(string name, DerObjectIdentifier oid, X9ECParametersHolder holder)
 {
     objIds.Add((object)Platform.ToUpperInvariant(name), (object)oid);
     names.Add((object)oid, (object)name);
     curves.Add((object)oid, (object)holder);
 }
 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);
 }
Пример #10
0
 private static void DefineCurve(string name, X9ECParametersHolder holder)
 {
     nameToCurve.Add(name, holder);
 }
 private static void DefineCurveWithOid(string name, DerObjectIdentifier oid, X9ECParametersHolder holder)
 {
     names.Add(name);
     oidToName.Add(oid, name);
     oidToCurve.Add(oid, holder);
     name = Platform.ToLowerInvariant(name);
     nameToOid.Add(name, oid);
     nameToCurve.Add(name, holder);
 }
 private static void DefineCurve(string name, X9ECParametersHolder holder)
 {
     names.Add(name);
     name = Platform.ToLowerInvariant(name);
     nameToCurve.Add(name, holder);
 }