Пример #1
0
 public static IEnumerable <Oid2> EnumerateOidInformation(OidGroup group)
 {
     foreach (CapiNative.CRYPT_OID_INFO oidInfo in CapiNative.EnumerateOidInformation(group))
     {
         yield return(new Oid2(oidInfo));
     }
 }
Пример #2
0
 public static Oid2 FindByValue(string oid, OidGroup group, bool useNetworkLookup)
 {
     CapiNative.CRYPT_OID_INFO oidInfo = new CapiNative.CRYPT_OID_INFO();
     if (CapiNative.TryFindOidInfo(oid, group, CapiNative.OidKeyType.Oid, useNetworkLookup, out oidInfo))
     {
         return(new Oid2(oidInfo));
     }
     else
     {
         return(null);
     }
 }
Пример #3
0
 public void Unregister()
 {
     CapiNative.UnregisterOid(ToOidInfo());
 }
Пример #4
0
 public void Register(OidRegistrationOptions registrationOptions)
 {
     CapiNative.RegisterOid(ToOidInfo(), registrationOptions);
 }