79 references to CspProviderFlags
mscorlib (48)
system\security\cryptography\cryptoapitransform.cs (13)
303
public
CspProviderFlags
Flags {
304
get { return (
CspProviderFlags
) m_flags; }
307
Contract.Assert((
CspProviderFlags
.UseMachineKeyStore |
308
CspProviderFlags
.UseDefaultKeyContainer |
309
CspProviderFlags
.UseNonExportableKey |
310
CspProviderFlags
.UseExistingKey |
311
CspProviderFlags
.UseArchivableKey |
312
CspProviderFlags
.UseUserProtectedKey |
313
CspProviderFlags
.NoPrompt |
314
CspProviderFlags
.CreateEphemeralKey) == (
CspProviderFlags
)allFlags, "allFlags does not match all CspProviderFlags");
378
this (dwTypeIn, strProviderNameIn, strContainerNameIn,
CspProviderFlags
.NoFlags) {}
401
internal CspParameters (int providerType, string providerName, string keyContainerName,
CspProviderFlags
flags) {
system\security\cryptography\dsacryptoserviceprovider.cs (4)
47
private static volatile
CspProviderFlags
s_UseMachineKeyStore = 0;
152
get { return (s_UseMachineKeyStore ==
CspProviderFlags
.UseMachineKeyStore); }
153
set { s_UseMachineKeyStore = (value ?
CspProviderFlags
.UseMachineKeyStore : 0); }
224
Utils._ImportKey(Utils.StaticDssProvHandle, Constants.CALG_DSS_SIGN, (
CspProviderFlags
) 0, dsaCspObject, ref _safeKeyHandle);
system\security\cryptography\icspasymmetricalgorithm.cs (6)
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 (4)
51
private static volatile
CspProviderFlags
s_UseMachineKeyStore = 0;
203
get { return (s_UseMachineKeyStore ==
CspProviderFlags
.UseMachineKeyStore); }
204
set { s_UseMachineKeyStore = (value ?
CspProviderFlags
.UseMachineKeyStore : 0); }
286
Utils._ImportKey(Utils.StaticProvHandle, Constants.CALG_RSA_KEYX, (
CspProviderFlags
) 0, rsaCspObject, ref _safeKeyHandle);
system\security\cryptography\utils.cs (19)
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)
426
parameters.KeyNumber = Utils._ImportCspBlob(keyBlob, keyType == CspAlgorithmType.Dss ? Utils.StaticDssProvHandle : Utils.StaticProvHandle, (
CspProviderFlags
) 0, ref safeKeyHandle);
445
internal static CspParameters SaveCspParameters (CspAlgorithmType keyType, CspParameters userParameters,
CspProviderFlags
defaultFlags, ref bool randomKeyContainer) {
464
randomKeyContainer = (parameters.Flags &
CspProviderFlags
.CreateEphemeralKey) ==
CspProviderFlags
.CreateEphemeralKey;
465
if (parameters.KeyContainerName == null && (parameters.Flags &
CspProviderFlags
.UseDefaultKeyContainer) == 0) {
466
parameters.Flags |=
CspProviderFlags
.CreateEphemeralKey;
474
private static void ValidateCspFlags (
CspProviderFlags
flags) {
476
if ((flags &
CspProviderFlags
.UseExistingKey) != 0) {
477
CspProviderFlags
keyFlags = (
CspProviderFlags
.UseNonExportableKey |
CspProviderFlags
.UseArchivableKey |
CspProviderFlags
.UseUserProtectedKey);
478
if ((flags & keyFlags) !=
CspProviderFlags
.NoFlags)
483
if ((flags &
CspProviderFlags
.UseUserProtectedKey) != 0) {
1183
internal static extern void _GenerateKey(SafeProvHandle hProv, int algid,
CspProviderFlags
flags, int keySize, ref SafeKeyHandle hKey);
1214
internal static extern int _ImportCspBlob(byte[] keyBlob, SafeProvHandle hProv,
CspProviderFlags
flags, ref SafeKeyHandle hKey);
1218
internal static extern void _ImportKey(SafeProvHandle hCSP, int keyNumber,
CspProviderFlags
flags, object cspObject, ref SafeKeyHandle hKey);
system\security\permissions\keycontainerpermission.cs (2)
66
this((parameters.Flags &
CspProviderFlags
.UseMachineKeyStore) ==
CspProviderFlags
.UseMachineKeyStore ? "Machine" : "User",
System (5)
security\system\security\cryptography\cryptoapi.cs (2)
3012
parameters.Flags = (
CspProviderFlags
) ((dwFlags & CAPI.CRYPT_MACHINE_KEYSET) == CAPI.CRYPT_MACHINE_KEYSET ?
CspProviderFlags
.UseMachineKeyStore : 0);
security\system\security\cryptography\x509\x509certificate2.cs (3)
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 (9)
system\security\cryptography\cryptoapi.cs (2)
2493
parameters.Flags = (
CspProviderFlags
) ((dwFlags & CAPI.CRYPT_MACHINE_KEYSET) == CAPI.CRYPT_MACHINE_KEYSET ?
CspProviderFlags
.UseMachineKeyStore : 0);
system\security\cryptography\pkcs\pkcsutils.cs (5)
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);
system\security\cryptography\x509\x509utils.cs (2)
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;