20 writes to KeyNumber
mscorlib (9)
system\security\cryptography\cryptoapitransform.cs (2)
405
KeyNumber
= -1;
414
KeyNumber
= parameters.KeyNumber;
system\security\cryptography\icspasymmetricalgorithm.cs (2)
42
m_parameters.
KeyNumber
= Constants.AT_KEYEXCHANGE;
44
m_parameters.
KeyNumber
= Constants.AT_SIGNATURE;
system\security\cryptography\utils.cs (5)
426
parameters.
KeyNumber
= Utils._ImportCspBlob(keyBlob, keyType == CspAlgorithmType.Dss ? Utils.StaticDssProvHandle : Utils.StaticProvHandle, (CspProviderFlags) 0, ref safeKeyHandle);
436
parameters.
KeyNumber
= Utils._ImportCspBlob(keyBlob, safeProvHandle, parameters.Flags, ref safeKeyHandle);
456
parameters.
KeyNumber
= keyType == CspAlgorithmType.Dss ? Constants.AT_SIGNATURE : Constants.AT_KEYEXCHANGE;
458
parameters.
KeyNumber
= Constants.AT_SIGNATURE;
460
parameters.
KeyNumber
= Constants.AT_KEYEXCHANGE;
System (2)
security\system\security\cryptography\cryptoapi.cs (1)
3011
parameters.
KeyNumber
= -1;
security\system\security\cryptography\x509\x509certificate2.cs (1)
1223
parameters.
KeyNumber
= (int) pKeyProvInfo.dwKeySpec;
System.Configuration (1)
System\Configuration\RSAProtectedConfigurationProvider.cs (1)
167
csp.
KeyNumber
= 1;
System.Data (1)
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (1)
599
privateKeyParams.
KeyNumber
= (int)((RSACryptoServiceProvider)certificate.PrivateKey).CspKeyContainerInfo.KeyNumber;
System.IdentityModel (4)
System\IdentityModel\CryptoHelper.cs (2)
794
csp.
KeyNumber
= (int)rsaProvider.CspKeyContainerInfo.KeyNumber;
845
csp.
KeyNumber
= (int)rsaProvider.CspKeyContainerInfo.KeyNumber;
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (2)
59
csp.
KeyNumber
= (int)rsaCsp.CspKeyContainerInfo.KeyNumber;
442
csp.
KeyNumber
= (int)rsaCsp.CspKeyContainerInfo.KeyNumber;
System.Security (2)
system\security\cryptography\cryptoapi.cs (1)
2492
parameters.
KeyNumber
= -1;
system\security\cryptography\x509\x509utils.cs (1)
173
parameters.
KeyNumber
= (int) pKeyProvInfo.dwKeySpec;
System.Windows.Forms (1)
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (1)
1480
csp.
KeyNumber
= (int)oldCsp.CspKeyContainerInfo.KeyNumber;
23 references to KeyNumber
mscorlib (21)
system\security\cryptography\cryptoapitransform.cs (1)
414
KeyNumber = parameters.
KeyNumber
;
system\security\cryptography\dsacryptoserviceprovider.cs (1)
320
return Utils.SignValue(_safeKeyHandle, _parameters.
KeyNumber
, Constants.CALG_DSS_SIGN, calgHash, rgbHash);
system\security\cryptography\icspasymmetricalgorithm.cs (8)
40
if (m_parameters.
KeyNumber
== -1) {
84
string uniqueContainerName = (string) Utils._GetProviderParameter(safeProvHandle, m_parameters.
KeyNumber
, Constants.CLR_UNIQUE_CONTAINER);
92
return (KeyNumber) m_parameters.
KeyNumber
;
108
byte[] isExportable = (byte[]) Utils._GetProviderParameter(safeProvHandle, m_parameters.
KeyNumber
, Constants.CLR_EXPORTABLE);
126
byte[] isHardwareDevice = (byte[]) Utils._GetProviderParameter(safeProvHandle, parameters.
KeyNumber
, Constants.CLR_HARDWARE);
144
byte[] isRemovable = (byte[]) Utils._GetProviderParameter(safeProvHandle, parameters.
KeyNumber
, Constants.CLR_REMOVABLE);
159
byte[] isAccessible = (byte[]) Utils._GetProviderParameter(safeProvHandle, m_parameters.
KeyNumber
, Constants.CLR_ACCESSIBLE);
177
byte[] isProtected = (byte[]) Utils._GetProviderParameter(safeProvHandle, m_parameters.
KeyNumber
, Constants.CLR_PROTECTED);
system\security\cryptography\rsacryptoserviceprovider.cs (2)
192
if (_parameters.
KeyNumber
== Constants.AT_KEYEXCHANGE)
363
return Utils.SignValue(_safeKeyHandle, _parameters.
KeyNumber
, Constants.CALG_RSA_SIGN, calgHash, rgbHash);
system\security\cryptography\utils.cs (8)
380
SetProviderParameter(TempFetchedProvHandle, parameters.
KeyNumber
, Constants.CLR_PP_CLIENT_HWND, pHwnd);
385
SetProviderParameter(TempFetchedProvHandle, parameters.
KeyNumber
, Constants.CLR_PP_PIN, szPassword);
398
int hr = Utils._GetUserKey(safeProvHandle, parameters.
KeyNumber
, ref TempFetchedKeyHandle);
403
Utils._GenerateKey(safeProvHandle, parameters.
KeyNumber
, parameters.Flags, dwKeySize, ref TempFetchedKeyHandle);
455
if (parameters.
KeyNumber
== -1)
457
else if (parameters.
KeyNumber
== Constants.CALG_DSS_SIGN || parameters.
KeyNumber
== Constants.CALG_RSA_SIGN)
459
else if (parameters.
KeyNumber
== Constants.CALG_RSA_KEYX)
system\security\permissions\keycontainerpermission.cs (1)
70
parameters.
KeyNumber
,
System.Security (2)
system\security\cryptography\pkcs\pkcsutils.cs (2)
866
keySpec = (uint)parameters.
KeyNumber
;
1069
KeyProvInfo.dwKeySpec = (uint)parameters.
KeyNumber
;