1 instantiation of SafeProvHandle
mscorlib (1)
system\security\cryptography\safecryptohandles.cs (1)
40
get { return new
SafeProvHandle
(); }
60 references to SafeProvHandle
mscorlib (60)
system\security\cryptography\cryptoapitransform.cs (1)
41
private
SafeProvHandle
_safeProvHandle;
system\security\cryptography\dsacryptoserviceprovider.cs (1)
42
private
SafeProvHandle
_safeProvHandle;
system\security\cryptography\icspasymmetricalgorithm.cs (14)
79
SafeProvHandle
safeProvHandle =
SafeProvHandle
.InvalidHandle;
103
SafeProvHandle
safeProvHandle =
SafeProvHandle
.InvalidHandle;
117
SafeProvHandle
safeProvHandle =
SafeProvHandle
.InvalidHandle;
135
SafeProvHandle
safeProvHandle =
SafeProvHandle
.InvalidHandle;
154
SafeProvHandle
safeProvHandle =
SafeProvHandle
.InvalidHandle;
172
SafeProvHandle
safeProvHandle =
SafeProvHandle
.InvalidHandle;
194
SafeProvHandle
safeProvHandle =
SafeProvHandle
.InvalidHandle;
system\security\cryptography\passwordderivebytes.cs (4)
37
private
SafeProvHandle
_safeProvHandle = null;
38
private
SafeProvHandle
ProvHandle {
44
SafeProvHandle
safeProvHandle = Utils.AcquireProvHandle(_cspParams);
240
private static extern void DeriveKey(
SafeProvHandle
hProv, int algid, int algidHash,
system\security\cryptography\rfc2898derivebytes.cs (4)
277
private
SafeProvHandle
_safeProvHandle = null;
278
private
SafeProvHandle
ProvHandle
289
SafeProvHandle
safeProvHandle = Utils.AcquireProvHandle(m_cspParams);
302
private static extern void DeriveKey(
SafeProvHandle
hProv, int algid, int algidHash,
system\security\cryptography\rngcryptoserviceprovider.cs (3)
27
SafeProvHandle
m_safeProvHandle;
194
private static extern void GetBytes(
SafeProvHandle
hProv, byte[] randomBytes, int count);
199
private static extern void GetNonZeroBytes(
SafeProvHandle
hProv, byte[] randomBytes, int count);
system\security\cryptography\rsacryptoserviceprovider.cs (1)
47
private
SafeProvHandle
_safeProvHandle;
system\security\cryptography\safecryptohandles.cs (1)
39
internal static
SafeProvHandle
InvalidHandle {
system\security\cryptography\utils.cs (31)
159
private static volatile
SafeProvHandle
_safeProvHandle;
160
internal static
SafeProvHandle
StaticProvHandle {
175
private static volatile
SafeProvHandle
_safeDssProvHandle;
176
internal static
SafeProvHandle
StaticDssProvHandle {
194
internal static
SafeProvHandle
AcquireProvHandle (CspParameters parameters) {
198
SafeProvHandle
safeProvHandle =
SafeProvHandle
.InvalidHandle;
206
internal static
SafeProvHandle
CreateProvHandle (CspParameters parameters, bool randomKeyContainer) {
207
SafeProvHandle
safeProvHandle =
SafeProvHandle
.InvalidHandle;
238
internal static CryptoKeySecurity GetKeySetSecurityInfo (
SafeProvHandle
hProv, AccessControlSections accessControlSections) {
287
internal static void SetKeySetSecurityInfo (
SafeProvHandle
hProv, CryptoKeySecurity cryptoKeySecurity, AccessControlSections accessControlSections) {
352
internal static void GetKeyPairHelper (CspAlgorithmType keyType, CspParameters parameters, bool randomKeyContainer, int dwKeySize, ref
SafeProvHandle
safeProvHandle, ref SafeKeyHandle safeKeyHandle) {
353
SafeProvHandle
TempFetchedProvHandle = Utils.CreateProvHandle(parameters, randomKeyContainer);
419
internal static void ImportCspBlobHelper (CspAlgorithmType keyType, byte[] keyBlob, bool publicOnly, ref CspParameters parameters, bool randomKeyContainer, ref
SafeProvHandle
safeProvHandle, ref SafeKeyHandle safeKeyHandle) {
1073
internal static extern SafeHashHandle CreateHash(
SafeProvHandle
hProv, int algid);
1096
internal static extern bool GetPersistKeyInCsp(
SafeProvHandle
hProv);
1112
private static extern bool SearchForAlgorithm(
SafeProvHandle
hProv, int algID, int keyLength);
1128
private static extern int SetKeySetSecurityInfo(
SafeProvHandle
hProv, SecurityInfos securityInfo, byte[] sd);
1133
internal static extern void SetPersistKeyInCsp(
SafeProvHandle
hProv, bool fPersistKeyInCsp);
1138
internal static extern void SetProviderParameter(
SafeProvHandle
hProv, int keyNumber, uint paramID, IntPtr pbData);
1167
internal static extern void _CreateCSP(CspParameters param, bool randomKeyContainer, ref
SafeProvHandle
hProv);
1183
internal static extern void _GenerateKey(
SafeProvHandle
hProv, int algid, CspProviderFlags flags, int keySize, ref SafeKeyHandle hKey);
1197
internal static extern byte[] _GetKeySetSecurityInfo(
SafeProvHandle
hProv, SecurityInfos securityInfo, out int error);
1202
internal static extern object _GetProviderParameter(
SafeProvHandle
hProv, int keyNumber, uint paramID);
1206
internal static extern int _GetUserKey(
SafeProvHandle
hProv, int keyNumber, ref SafeKeyHandle hKey);
1210
internal static extern void _ImportBulkKey(
SafeProvHandle
hProv, int algid, bool useSalt, byte[] key, 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);
1227
internal static extern int _OpenCSP(CspParameters param, uint flags, ref
SafeProvHandle
hProv);
1231
internal static extern void _AcquireCSP(CspParameters param, ref
SafeProvHandle
hProv);