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