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