88 references to OidGroup
netstandard (1)
netstandard.cs (1)
1899[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.OidGroup))]
System (1)
src\runtime\src\libraries\shims\System\ref\System.cs (1)
856[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.OidGroup))]
System.Security.Cryptography (58)
_generated\0\LibraryImports.g.cs (2)
4696private static unsafe extern partial global::Interop.Crypt32.CRYPT_OID_INFO* CryptFindOIDInfo(global::Interop.Crypt32.CryptOidInfoKeyType dwKeyType, nint pvKey, global::System.Security.Cryptography.OidGroup group); 4704private static unsafe extern partial global::Interop.Crypt32.CRYPT_OID_INFO* CryptFindOIDInfo(global::Interop.Crypt32.CryptOidInfoKeyType dwKeyType, void* pvKey, global::System.Security.Cryptography.OidGroup group);
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.FindOidInfo.cs (16)
19public OidGroup dwGroupId; 51internal static unsafe CRYPT_OID_INFO FindOidInfo(CryptOidInfoKeyType keyType, string key, OidGroup group, bool fallBackToAllGroups) 53const OidGroup CRYPT_OID_DISABLE_SEARCH_DS_FLAG = unchecked((OidGroup)0x80000000); 77OidGroup localGroup = group | CRYPT_OID_DISABLE_SEARCH_DS_FLAG; 92if (fallBackToAllGroups && group != OidGroup.All) 96CRYPT_OID_INFO* allGroupOidInfo = CryptFindOIDInfo(keyType, rawKey, OidGroup.All); 115private static bool OidGroupWillNotUseActiveDirectory(OidGroup group) 118return group == OidGroup.HashAlgorithm || 119group == OidGroup.EncryptionAlgorithm || 120group == OidGroup.PublicKeyAlgorithm || 121group == OidGroup.SignatureAlgorithm || 122group == OidGroup.Attribute || 123group == OidGroup.ExtensionOrAttribute || 124group == OidGroup.KeyDerivationFunction; 128private static unsafe partial CRYPT_OID_INFO* CryptFindOIDInfo(CryptOidInfoKeyType dwKeyType, IntPtr pvKey, OidGroup group);
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.HashIdAlg.cs (2)
16private static unsafe partial CRYPT_OID_INFO* CryptFindOIDInfo(CryptOidInfoKeyType dwKeyType, void* pvKey, OidGroup group); 23OidGroup.HashAlgorithm);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\ECCng.HashAlgorithm.cs (1)
25OidGroup.HashAlgorithm,
System\Security\Cryptography\CapiHelper.Windows.cs (3)
1029public static int NameOrOidToHashAlgId(string? nameOrOid, OidGroup oidGroup) 1054int algId = NameOrOidToHashAlgId(hashAlgString, OidGroup.HashAlgorithm); 1129private static int GetAlgIdFromOid(string oid, OidGroup oidGroup)
System\Security\Cryptography\CngKey.EC.cs (1)
30oidValue = curveName is null ? null : OidLookup.ToOid(curveName, OidGroup.PublicKeyAlgorithm, fallBackToAllGroups: false);
System\Security\Cryptography\CryptoConfig.cs (1)
557Oid oid = Oid.FromFriendlyName(name, OidGroup.All);
System\Security\Cryptography\DSACryptoServiceProvider.Windows.cs (2)
487int calgHash = CapiHelper.NameOrOidToHashAlgId(str, OidGroup.HashAlgorithm); 512int calgHash = CapiHelper.NameOrOidToHashAlgId(str, OidGroup.HashAlgorithm);
System\Security\Cryptography\EccKeyFormatHelper.cs (1)
518oid = Oid.FromFriendlyName(oid.FriendlyName, OidGroup.All);
System\Security\Cryptography\ECCurve.cs (1)
132oid = Oid.FromFriendlyName(oidFriendlyName, OidGroup.PublicKeyAlgorithm);
System\Security\Cryptography\Oid.cs (7)
18this.Value = OidLookup.ToOid(oid, OidGroup.All, fallBackToAllGroups: false) ?? oid; 20_group = OidGroup.All; 40public static Oid FromFriendlyName(string friendlyName, OidGroup group) 51public static Oid FromOidValue(string oidValue, OidGroup group) 138private Oid(string value, string friendlyName, OidGroup group) 152private readonly OidGroup _group = OidGroup.All;
System\Security\Cryptography\OidCollection.cs (1)
55string? oidValue = OidLookup.ToOid(oid, OidGroup.All, fallBackToAllGroups: false) ?? oid;
System\Security\Cryptography\OidLookup.cs (2)
21public static string? ToFriendlyName(string oid, OidGroup oidGroup, bool fallBackToAllGroups) 59public static string? ToOid(string friendlyName, OidGroup oidGroup, bool fallBackToAllGroups)
System\Security\Cryptography\OidLookup.Windows.cs (4)
10private static bool ShouldUseCache(OidGroup oidGroup) 12return oidGroup == OidGroup.All; 15private static string? NativeOidToFriendlyName(string oid, OidGroup oidGroup, bool fallBackToAllGroups) 21private static string? NativeFriendlyNameToOid(string friendlyName, OidGroup oidGroup, bool fallBackToAllGroups)
System\Security\Cryptography\PasswordDeriveBytes.Windows.cs (2)
20int algidhash = CapiHelper.NameOrOidToHashAlgId(alghashname, OidGroup.HashAlgorithm); 24int algid = CapiHelper.NameOrOidToHashAlgId(algname, OidGroup.All);
System\Security\Cryptography\RSACryptoServiceProvider.Windows.cs (2)
464int calgHash = CapiHelper.NameOrOidToHashAlgId(str, OidGroup.HashAlgorithm); 511int calgHash = CapiHelper.NameOrOidToHashAlgId(str, OidGroup.HashAlgorithm);
System\Security\Cryptography\X509Certificates\CertificatePal.Windows.cs (1)
106algId = Interop.Crypt32.FindOidInfo(Interop.Crypt32.CryptOidInfoKeyType.CRYPT_OID_INFO_OID_KEY, keyAlgorithmOid, OidGroup.PublicKeyAlgorithm, fallBackToAllGroups: true).AlgId;
System\Security\Cryptography\X509Certificates\FindPal.cs (4)
126string oidValue = ConfirmedOidValue(findPal, findValue, OidGroup.Policy); 132string oidValue = ConfirmedOidValue(findPal, findValue, OidGroup.Policy); 138string oidValue = ConfirmedOidValue(findPal, findValue, OidGroup.ExtensionOrAttribute); 172private static string ConfirmedOidValue(IFindPal findPal, object findValue, OidGroup oidGroup)
System\Security\Cryptography\X509Certificates\FindPal.Windows.cs (2)
30public string NormalizeOid(string maybeOid, OidGroup expectedGroup) 149OidGroup.Template,
System\Security\Cryptography\X509Certificates\IFindPal.cs (1)
10string NormalizeOid(string maybeOid, OidGroup expectedGroup);
System\Security\Cryptography\X509Certificates\X509Extension.cs (1)
91base.Oid = Oid.FromOidValue(oidValue, OidGroup.ExtensionOrAttribute);
System\Security\Cryptography\X509Certificates\X509Pal.Windows.PublicKey.cs (1)
51int algId = Interop.Crypt32.FindOidInfo(CryptOidInfoKeyType.CRYPT_OID_INFO_OID_KEY, oid.Value!, OidGroup.PublicKeyAlgorithm, fallBackToAllGroups: true).AlgId;
System.Security.Cryptography.Encoding (1)
System.Security.Cryptography.Encoding.cs (1)
12[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Security.Cryptography.OidGroup))]
System.Security.Cryptography.Pkcs (27)
_generated\0\LibraryImports.g.cs (1)
1207private static unsafe extern partial global::Interop.Crypt32.CRYPT_OID_INFO* CryptFindOIDInfo(global::Interop.Crypt32.CryptOidInfoKeyType dwKeyType, nint pvKey, global::System.Security.Cryptography.OidGroup group);
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (3)
145CRYPT_OID_INFO info = Interop.Crypt32.FindOidInfo(CryptOidInfoKeyType.CRYPT_OID_INFO_OID_KEY, oidValue, OidGroup.All, false); 245AlgorithmIdentifier algorithmId = new AlgorithmIdentifier(Oid.FromOidValue(oidValue, OidGroup.PublicKeyAlgorithm), keyLength); 325AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(Oid.FromOidValue(oidValue, OidGroup.All), keyLength);
Internal\Cryptography\Pal\Windows\KeyAgreeRecipientInfoPalWindows.cs (1)
150Oid oid = Oid.FromOidValue(oidValue, OidGroup.All);
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (6)
46CryptMsgType.CMSG_DATA => Oid.FromOidValue(Oids.Pkcs7Data, OidGroup.ExtensionOrAttribute), 47CryptMsgType.CMSG_SIGNED => Oid.FromOidValue(Oids.Pkcs7Signed, OidGroup.ExtensionOrAttribute), 48CryptMsgType.CMSG_ENVELOPED => Oid.FromOidValue(Oids.Pkcs7Enveloped, OidGroup.ExtensionOrAttribute), 49CryptMsgType.CMSG_SIGNED_AND_ENVELOPED => Oid.FromOidValue(Oids.Pkcs7SignedEnveloped, OidGroup.ExtensionOrAttribute), 50CryptMsgType.CMSG_HASHED => Oid.FromOidValue(Oids.Pkcs7Hashed, OidGroup.ExtensionOrAttribute), 51CryptMsgType.CMSG_ENCRYPTED => Oid.FromOidValue(Oids.Pkcs7Encrypted, OidGroup.ExtensionOrAttribute),
src\runtime\src\libraries\Common\src\Interop\Windows\Crypt32\Interop.FindOidInfo.cs (16)
19public OidGroup dwGroupId; 51internal static unsafe CRYPT_OID_INFO FindOidInfo(CryptOidInfoKeyType keyType, string key, OidGroup group, bool fallBackToAllGroups) 53const OidGroup CRYPT_OID_DISABLE_SEARCH_DS_FLAG = unchecked((OidGroup)0x80000000); 77OidGroup localGroup = group | CRYPT_OID_DISABLE_SEARCH_DS_FLAG; 92if (fallBackToAllGroups && group != OidGroup.All) 96CRYPT_OID_INFO* allGroupOidInfo = CryptFindOIDInfo(keyType, rawKey, OidGroup.All); 115private static bool OidGroupWillNotUseActiveDirectory(OidGroup group) 118return group == OidGroup.HashAlgorithm || 119group == OidGroup.EncryptionAlgorithm || 120group == OidGroup.PublicKeyAlgorithm || 121group == OidGroup.SignatureAlgorithm || 122group == OidGroup.Attribute || 123group == OidGroup.ExtensionOrAttribute || 124group == OidGroup.KeyDerivationFunction; 128private static unsafe partial CRYPT_OID_INFO* CryptFindOIDInfo(CryptOidInfoKeyType dwKeyType, IntPtr pvKey, OidGroup group);