32 references to UnsafeNativeMethods
System.Core (32)
System\Security\Cryptography\CngKey.cs (1)
522
NCryptNative.ErrorCode error = NCryptNative.
UnsafeNativeMethods
.NCryptOpenKey(kspHandle,
System\Security\Cryptography\NCryptNative.cs (31)
624
UnsafeNativeMethods
.NCryptDecrypt);
645
return
UnsafeNativeMethods
.NCryptDecrypt(hKey, pbInput, cbInput, IntPtr.Zero, pbOutput, cbOutput, out pcbResult, dwFlags);
709
UnsafeNativeMethods
.NCryptEncrypt);
743
return
UnsafeNativeMethods
.NCryptEncrypt(hKey, pbInput, cbInput, IntPtr.Zero, pbOutput, cbOutput, out pcbResult, dwFlags);
809
UnsafeNativeMethods
.NCryptSignHash);
834
UnsafeNativeMethods
.NCryptSignHash);
885
UnsafeNativeMethods
.NCryptVerifySignature);
912
UnsafeNativeMethods
.NCryptVerifySignature);
986
ErrorCode error =
UnsafeNativeMethods
.NCryptCreatePersistedKey(provider,
1006
ErrorCode error =
UnsafeNativeMethods
.NCryptDeleteKey(key, 0);
1121
ErrorCode error =
UnsafeNativeMethods
.NCryptDeriveKey(secretAgreement,
1134
error =
UnsafeNativeMethods
.NCryptDeriveKey(secretAgreement,
1245
ErrorCode error =
UnsafeNativeMethods
.NCryptSecretAgreement(privateKey,
1268
ErrorCode error =
UnsafeNativeMethods
.NCryptExportKey(key,
1284
error =
UnsafeNativeMethods
.NCryptExportKey(key,
1333
ErrorCode error =
UnsafeNativeMethods
.NCryptFinalizeKey(key, 0);
1352
ErrorCode error =
UnsafeNativeMethods
.NCryptGetProperty(ncryptObject,
1374
error =
UnsafeNativeMethods
.NCryptGetProperty(ncryptObject,
1421
ErrorCode errorCode =
UnsafeNativeMethods
.NCryptGetProperty(
1451
ErrorCode error =
UnsafeNativeMethods
.NCryptGetProperty(ncryptObject,
1540
ErrorCode error =
UnsafeNativeMethods
.NCryptImportKey(provider,
1569
ErrorCode error =
UnsafeNativeMethods
.NCryptImportKey(provider,
1597
ErrorCode error =
UnsafeNativeMethods
.NCryptOpenKey(provider, out key, name, 0, options);
1617
ErrorCode error =
UnsafeNativeMethods
.NCryptOpenStorageProvider(out providerHandle,
1695
ErrorCode error =
UnsafeNativeMethods
.NCryptSetProperty(ncryptObject,
1755
ErrorCode error =
UnsafeNativeMethods
.NCryptSetProperty(ncryptObject,
1777
ErrorCode error =
UnsafeNativeMethods
.NCryptSignHash(key,
1794
error =
UnsafeNativeMethods
.NCryptSignHash(key,
1827
ErrorCode error =
UnsafeNativeMethods
.NCryptSignHash(key,
1840
error =
UnsafeNativeMethods
.NCryptSignHash(key,
1893
ErrorCode error =
UnsafeNativeMethods
.NCryptVerifySignature(key,