GetOid() public static method

public static GetOid ( string name ) : DerObjectIdentifier
name string
return DerObjectIdentifier
Esempio n. 1
0
        /**
         * return the object identifier signified by the passed in name. Null
         * if there is no object identifier associated with name.
         *
         * @return the object identifier associated with name, if present.
         */
        public static DerObjectIdentifier GetOid(string name)
        {
            DerObjectIdentifier oid = X962NamedCurves.GetOid(name);

            if (oid == null)
            {
                oid = SecNamedCurves.GetOid(name);
            }

            if (oid == null)
            {
                oid = NistNamedCurves.GetOid(name);
            }

            if (oid == null)
            {
                oid = TeleTrusTNamedCurves.GetOid(name);
            }

            if (oid == null)
            {
                oid = AnssiNamedCurves.GetOid(name);
            }

            return(oid);
        }
Esempio n. 2
0
        public static X9ECParameters GetByName(string name)
        {
            DerObjectIdentifier oid = X962NamedCurves.GetOid(name);

            if (oid != null)
            {
                return(X962NamedCurves.GetByOid(oid));
            }
            return(null);
        }