Esempio n. 1
0
 public Oid(Oid oid)
 {
     if (oid == null)
     {
         throw new ArgumentNullException("oid");
     }
     this.m_value        = oid.m_value;
     this.m_friendlyName = oid.m_friendlyName;
     this.m_group        = oid.m_group;
 }
 public Oid(Oid oid)
 {
     if (oid == null)
     {
         throw new ArgumentNullException("oid");
     }
     this.m_value = oid.m_value;
     this.m_friendlyName = oid.m_friendlyName;
     this.m_group = oid.m_group;
 }
Esempio n. 3
0
 internal Oid(string oid, System.Security.Cryptography.OidGroup group, bool lookupFriendlyName)
 {
     if (lookupFriendlyName)
     {
         string str = System.Security.Cryptography.X509Certificates.X509Utils.FindOidInfo(2, oid, group);
         if (str == null)
         {
             str = oid;
         }
         this.Value = str;
     }
     else
     {
         this.Value = oid;
     }
     this.m_group = group;
 }
 internal Oid(string oid, System.Security.Cryptography.OidGroup group, bool lookupFriendlyName)
 {
     if (lookupFriendlyName)
     {
         string str = System.Security.Cryptography.X509Certificates.X509Utils.FindOidInfo(2, oid, group);
         if (str == null)
         {
             str = oid;
         }
         this.Value = str;
     }
     else
     {
         this.Value = oid;
     }
     this.m_group = group;
 }
 public static System.Security.Cryptography.Oid FromOidValue(string oidValue, System.Security.Cryptography.OidGroup group)
 {
     return(default(System.Security.Cryptography.Oid));
 }
 public static System.Security.Cryptography.Oid FromFriendlyName(string friendlyName, System.Security.Cryptography.OidGroup group)
 {
     return(default(System.Security.Cryptography.Oid));
 }
Esempio n. 7
0
 public static System.Security.Cryptography.Oid FromOidValue(string oidValue, System.Security.Cryptography.OidGroup group)
 {
     throw null;
 }
Esempio n. 8
0
 public static System.Security.Cryptography.Oid FromFriendlyName(string friendlyName, System.Security.Cryptography.OidGroup group)
 {
     throw null;
 }
        internal static CAPIBase.CRYPT_OID_INFO CryptFindOIDInfo([In] uint dwKeyType, [In] SafeLocalAllocHandle pvKey, [In] System.Security.Cryptography.OidGroup dwGroupId)
        {
            if (pvKey == null)
            {
                throw new ArgumentNullException("pvKey");
            }
            if (pvKey.IsInvalid)
            {
                throw new CryptographicException(SR.GetString("Cryptography_InvalidHandle"), "pvKey");
            }
            CAPIBase.CRYPT_OID_INFO crypt_oid_info = new CAPIBase.CRYPT_OID_INFO(Marshal.SizeOf(typeof(CAPIBase.CRYPT_OID_INFO)));
            IntPtr ptr = CAPISafe.CryptFindOIDInfo(dwKeyType, pvKey, dwGroupId);

            if (ptr != IntPtr.Zero)
            {
                crypt_oid_info = (CAPIBase.CRYPT_OID_INFO)Marshal.PtrToStructure(ptr, typeof(CAPIBase.CRYPT_OID_INFO));
            }
            return(crypt_oid_info);
        }
Esempio n. 10
0
        internal static CAPIBase.CRYPT_OID_INFO CryptFindOIDInfo([In] uint dwKeyType, [In] IntPtr pvKey, [In] System.Security.Cryptography.OidGroup dwGroupId)
        {
            if (pvKey == IntPtr.Zero)
            {
                throw new ArgumentNullException("pvKey");
            }
            CAPIBase.CRYPT_OID_INFO crypt_oid_info = new CAPIBase.CRYPT_OID_INFO(Marshal.SizeOf(typeof(CAPIBase.CRYPT_OID_INFO)));
            IntPtr ptr = CAPISafe.CryptFindOIDInfo(dwKeyType, pvKey, dwGroupId);

            if (ptr != IntPtr.Zero)
            {
                crypt_oid_info = (CAPIBase.CRYPT_OID_INFO)Marshal.PtrToStructure(ptr, typeof(CAPIBase.CRYPT_OID_INFO));
            }
            return(crypt_oid_info);
        }