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