GetOid() 공개 정적인 메소드

public static GetOid ( string name ) : DerObjectIdentifier
name string
리턴 DerObjectIdentifier
예제 #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);
        }
예제 #2
0
        public static X9ECParameters GetByName(string name)
        {
            DerObjectIdentifier oid = X962NamedCurves.GetOid(name);

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