24 references to ClrPropertyId
System.Security.Cryptography (24)
System\Security\Cryptography\CapiHelper.Windows.cs (12)
359public static object GetProviderParameter(SafeProvHandle safeProvHandle, int keyNumber, ClrPropertyId keyParam) 374case ClrPropertyId.CLR_EXPORTABLE: 403case ClrPropertyId.CLR_REMOVABLE: 409case ClrPropertyId.CLR_HARDWARE: 410case ClrPropertyId.CLR_PROTECTED: 416case ClrPropertyId.CLR_ACCESSIBLE: 421case ClrPropertyId.CLR_UNIQUE_CONTAINER: 550internal static byte[] GetKeyParameter(SafeCapiKeyHandle safeKeyHandle, ClrPropertyId keyParam) 558case ClrPropertyId.CLR_KEYLEN: 571case ClrPropertyId.CLR_PUBLICKEYONLY: 577case ClrPropertyId.CLR_ALGID: 747byte[] algid = CapiHelper.GetKeyParameter(hKey, ClrPropertyId.CLR_ALGID);
System\Security\Cryptography\CspKeyContainerInfo.Windows.cs (8)
50object? retVal = ReadKeyParameterSilent(CapiHelper.ClrPropertyId.CLR_ACCESSIBLE, throwOnNotFound: false); 75return (bool)ReadKeyParameterSilent(CapiHelper.ClrPropertyId.CLR_EXPORTABLE)!; 86return (bool)ReadDeviceParameterVerifyContext(CapiHelper.ClrPropertyId.CLR_HARDWARE); 136return (bool)ReadKeyParameterSilent(CapiHelper.ClrPropertyId.CLR_PROTECTED)!; 180return (bool)ReadDeviceParameterVerifyContext(CapiHelper.ClrPropertyId.CLR_REMOVABLE); 191return (string)ReadKeyParameterSilent(CapiHelper.ClrPropertyId.CLR_UNIQUE_CONTAINER)!; 198private object? ReadKeyParameterSilent(CapiHelper.ClrPropertyId keyParam, bool throwOnNotFound = true) 225private object ReadDeviceParameterVerifyContext(CapiHelper.ClrPropertyId keyParam)
System\Security\Cryptography\DSACryptoServiceProvider.Windows.cs (2)
206byte[] keySize = CapiHelper.GetKeyParameter(SafeKeyHandle, CapiHelper.ClrPropertyId.CLR_KEYLEN); 249byte[] publicKey = CapiHelper.GetKeyParameter(SafeKeyHandle, CapiHelper.ClrPropertyId.CLR_PUBLICKEYONLY);
System\Security\Cryptography\RSACryptoServiceProvider.Windows.cs (2)
195byte[] keySize = CapiHelper.GetKeyParameter(SafeKeyHandle, CapiHelper.ClrPropertyId.CLR_KEYLEN); 236byte[] publicKey = CapiHelper.GetKeyParameter(SafeKeyHandle, CapiHelper.ClrPropertyId.CLR_PUBLICKEYONLY);