27 writes to Flags
mscorlib (5)
system\security\cryptography\cryptoapitransform.cs (2)
406
Flags
= flags;
415
Flags
= parameters.Flags;
system\security\cryptography\icspasymmetricalgorithm.cs (2)
120
parameters.
Flags
= (parameters.Flags & CspProviderFlags.UseMachineKeyStore) != 0 ? CspProviderFlags.UseMachineKeyStore : 0;
138
parameters.
Flags
= (parameters.Flags & CspProviderFlags.UseMachineKeyStore) != 0 ? CspProviderFlags.UseMachineKeyStore : 0;
system\security\cryptography\utils.cs (1)
466
parameters.
Flags
|= CspProviderFlags.CreateEphemeralKey;
System (3)
security\system\security\cryptography\cryptoapi.cs (1)
3012
parameters.
Flags
= (CspProviderFlags) ((dwFlags & CAPI.CRYPT_MACHINE_KEYSET) == CAPI.CRYPT_MACHINE_KEYSET ? CspProviderFlags.UseMachineKeyStore : 0);
security\system\security\cryptography\x509\x509certificate2.cs (2)
790
parameters.
Flags
|= CspProviderFlags.UseExistingKey;
1224
parameters.
Flags
= (CspProviderFlags) ((pKeyProvInfo.dwFlags & CAPI.CRYPT_MACHINE_KEYSET) == CAPI.CRYPT_MACHINE_KEYSET ? CspProviderFlags.UseMachineKeyStore : 0);
System.Configuration (3)
System\Configuration\RSAProtectedConfigurationProvider.cs (3)
174
csp.
Flags
|= CspProviderFlags.UseMachineKeyStore;
176
csp.
Flags
|= CspProviderFlags.UseNonExportableKey;
178
csp.
Flags
|= CspProviderFlags.UseExistingKey;
System.Data (3)
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCertificateStoreProvider.cs (2)
606
privateKeyParams.
Flags
= CspProviderFlags.UseMachineKeyStore;
610
privateKeyParams.
Flags
= CspProviderFlags.UseExistingKey;
fx\src\data\System\Data\SqlClient\SqlColumnEncryptionCspProvider.cs (1)
407
cspParams.
Flags
= CspProviderFlags.UseExistingKey;
System.IdentityModel (8)
System\IdentityModel\CryptoHelper.cs (4)
797
csp.
Flags
= CspProviderFlags.UseMachineKeyStore;
800
csp.
Flags
|= CspProviderFlags.UseExistingKey;
848
csp.
Flags
= CspProviderFlags.UseMachineKeyStore;
851
csp.
Flags
|= CspProviderFlags.UseExistingKey;
System\IdentityModel\Tokens\X509AsymmetricSecurityKey.cs (4)
61
csp.
Flags
= CspProviderFlags.UseMachineKeyStore;
63
csp.
Flags
|= CspProviderFlags.UseExistingKey;
444
csp.
Flags
= CspProviderFlags.UseMachineKeyStore;
446
csp.
Flags
|= CspProviderFlags.UseExistingKey;
System.Security (2)
system\security\cryptography\cryptoapi.cs (1)
2493
parameters.
Flags
= (CspProviderFlags) ((dwFlags & CAPI.CRYPT_MACHINE_KEYSET) == CAPI.CRYPT_MACHINE_KEYSET ? CspProviderFlags.UseMachineKeyStore : 0);
system\security\cryptography\x509\x509utils.cs (1)
174
parameters.
Flags
= (CspProviderFlags) ((pKeyProvInfo.dwFlags & CAPI.CRYPT_MACHINE_KEYSET) == CAPI.CRYPT_MACHINE_KEYSET ? CspProviderFlags.UseMachineKeyStore : 0);
System.Windows.Forms (1)
parent\parent\parent\public\Internal\NDP\Inc\mansign2.cs (1)
1483
csp.
Flags
= CspProviderFlags.UseMachineKeyStore;
WsatConfig (1)
Configuration\WsatConfiguration.cs (1)
639
cspParams.
Flags
= CspProviderFlags.UseMachineKeyStore;
WsatUI (1)
Configuration\WsatConfiguration.cs (1)
639
cspParams.
Flags
= CspProviderFlags.UseMachineKeyStore;
18 references to Flags
mscorlib (14)
system\security\cryptography\cryptoapitransform.cs (1)
415
Flags = parameters.
Flags
;
system\security\cryptography\dsacryptoserviceprovider.cs (1)
233
Utils._ImportKey(_safeProvHandle, Constants.CALG_DSS_SIGN, _parameters.
Flags
, dsaCspObject, ref _safeKeyHandle);
system\security\cryptography\icspasymmetricalgorithm.cs (3)
54
return (m_parameters.
Flags
& CspProviderFlags.UseMachineKeyStore) == CspProviderFlags.UseMachineKeyStore ? true : false;
120
parameters.Flags = (parameters.
Flags
& CspProviderFlags.UseMachineKeyStore) != 0 ? CspProviderFlags.UseMachineKeyStore : 0;
138
parameters.Flags = (parameters.
Flags
& CspProviderFlags.UseMachineKeyStore) != 0 ? CspProviderFlags.UseMachineKeyStore : 0;
system\security\cryptography\rsacryptoserviceprovider.cs (1)
297
Utils._ImportKey(_safeProvHandle, Constants.CALG_RSA_KEYX, _parameters.
Flags
, rsaCspObject, ref _safeKeyHandle);
system\security\cryptography\utils.cs (7)
213
if ((parameters.
Flags
& CspProviderFlags.UseExistingKey) != 0 || (hr != Constants.NTE_KEYSET_NOT_DEF && hr != Constants.NTE_BAD_KEYSET && hr != Constants.NTE_FILENOTFOUND))
400
if ((parameters.
Flags
& CspProviderFlags.UseExistingKey) != 0 || hr != Constants.NTE_NO_KEY)
403
Utils._GenerateKey(safeProvHandle, parameters.KeyNumber, parameters.
Flags
, dwKeySize, ref TempFetchedKeyHandle);
436
parameters.KeyNumber = Utils._ImportCspBlob(keyBlob, safeProvHandle, parameters.
Flags
, ref safeKeyHandle);
451
ValidateCspFlags(userParameters.
Flags
);
464
randomKeyContainer = (parameters.
Flags
& CspProviderFlags.CreateEphemeralKey) == CspProviderFlags.CreateEphemeralKey;
465
if (parameters.KeyContainerName == null && (parameters.
Flags
& CspProviderFlags.UseDefaultKeyContainer) == 0) {
system\security\permissions\keycontainerpermission.cs (1)
66
this((parameters.
Flags
& CspProviderFlags.UseMachineKeyStore) == CspProviderFlags.UseMachineKeyStore ? "Machine" : "User",
System.Security (4)
system\security\cryptography\pkcs\pkcsutils.cs (4)
1044
if (0 != (parameters.
Flags
& CspProviderFlags.UseMachineKeyStore))
1048
if (0 != (parameters.
Flags
& CspProviderFlags.UseDefaultKeyContainer))
1052
if (0 != (parameters.
Flags
& CspProviderFlags.NoPrompt))
1070
KeyProvInfo.dwFlags = (uint)((parameters.
Flags
& CspProviderFlags.UseMachineKeyStore) == CspProviderFlags.UseMachineKeyStore ? CAPI.CRYPT_MACHINE_KEYSET : 0);