public static IEnumerable <Oid2> EnumerateOidInformation(OidGroup group) { foreach (CapiNative.CRYPT_OID_INFO oidInfo in CapiNative.EnumerateOidInformation(group)) { yield return(new Oid2(oidInfo)); } }
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); } }
public void Unregister() { CapiNative.UnregisterOid(ToOidInfo()); }
public void Register(OidRegistrationOptions registrationOptions) { CapiNative.RegisterOid(ToOidInfo(), registrationOptions); }