1 instantiation of SafeKeyHandle
mscorlib (1)
system\security\cryptography\safecryptohandles.cs (1)
80
get { return new
SafeKeyHandle
(); }
32 references to SafeKeyHandle
mscorlib (32)
system\security\cryptography\cryptoapitransform.cs (3)
39
private
SafeKeyHandle
_safeKeyHandle;
86
SafeKeyHandle
safeKeyHandle =
SafeKeyHandle
.InvalidHandle;
system\security\cryptography\dsacryptoserviceprovider.cs (2)
44
private
SafeKeyHandle
_safeKeyHandle;
220
_safeKeyHandle =
SafeKeyHandle
.InvalidHandle;
system\security\cryptography\rsacryptoserviceprovider.cs (4)
49
private
SafeKeyHandle
_safeKeyHandle;
61
private static extern void DecryptKey(
SafeKeyHandle
pKeyContext,
71
private static extern void EncryptKey(
SafeKeyHandle
pKeyContext,
282
_safeKeyHandle =
SafeKeyHandle
.InvalidHandle;
system\security\cryptography\safecryptohandles.cs (1)
79
internal static
SafeKeyHandle
InvalidHandle {
system\security\cryptography\utils.cs (22)
335
internal static byte[] ExportCspBlobHelper (bool includePrivateParameters, CspParameters parameters,
SafeKeyHandle
safeKeyHandle) {
352
internal static void GetKeyPairHelper (CspAlgorithmType keyType, CspParameters parameters, bool randomKeyContainer, int dwKeySize, ref SafeProvHandle safeProvHandle, ref
SafeKeyHandle
safeKeyHandle) {
397
SafeKeyHandle
TempFetchedKeyHandle =
SafeKeyHandle
.InvalidHandle;
419
internal static void ImportCspBlobHelper (CspAlgorithmType keyType, byte[] keyBlob, bool publicOnly, ref CspParameters parameters, bool randomKeyContainer, ref SafeProvHandle safeProvHandle, ref
SafeKeyHandle
safeKeyHandle) {
423
safeKeyHandle =
SafeKeyHandle
.InvalidHandle;
1091
private static extern void ExportCspBlob(
SafeKeyHandle
hKey, int blobType, ObjectHandleOnStack retBlob);
1117
internal static extern void SetKeyParamDw(
SafeKeyHandle
hKey, int param, int dwValue);
1122
internal static extern void SetKeyParamRgb(
SafeKeyHandle
hKey, int param, byte[] value, int cbValue);
1143
private static extern void SignValue(
SafeKeyHandle
hKey, int keyNumber, int calgKey, int calgHash, byte[] hash, int cbHash, ObjectHandleOnStack retSignature);
1146
internal static byte[] SignValue(
SafeKeyHandle
hKey, int keyNumber, int calgKey, int calgHash, byte[] hash)
1156
private static extern bool VerifySign(
SafeKeyHandle
hKey, int calgKey, int calgHash, byte[] hash, int cbHash, byte[] signature, int cbSignature);
1159
internal static bool VerifySign(
SafeKeyHandle
hKey, int calgKey, int calgHash, byte[] hash, byte[] signature)
1171
internal static extern int _DecryptData(
SafeKeyHandle
hKey, byte[] data, int ib, int cb, ref byte[] outputBuffer, int outputOffset, PaddingMode PaddingMode, bool fDone);
1175
internal static extern int _EncryptData(
SafeKeyHandle
hKey, byte[] data, int ib, int cb, ref byte[] outputBuffer, int outputOffset, PaddingMode PaddingMode, bool fDone);
1179
internal static extern void _ExportKey(
SafeKeyHandle
hKey, int blobType, object cspObject);
1183
internal static extern void _GenerateKey(SafeProvHandle hProv, int algid, CspProviderFlags flags, int keySize, ref
SafeKeyHandle
hKey);
1192
internal static extern byte[] _GetKeyParameter(
SafeKeyHandle
hKey, 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);