16 references to UnsafeNativeMethods
System.Core (16)
System\Security\Cryptography\BCryptHashAlgorithm.cs (3)
138BCryptNative.ErrorCode error = BCryptNative.UnsafeNativeMethods.BCryptCreateHash(m_algorithmHandle, 197error = BCryptNative.UnsafeNativeMethods.BCryptHashData(m_hashHandle, 220BCryptNative.ErrorCode error = BCryptNative.UnsafeNativeMethods.BCryptFinishHash(m_hashHandle,
System\Security\Cryptography\BCryptNative.cs (10)
499getter = new BCryptPropertyGetter<SafeBCryptAlgorithmHandle>(UnsafeNativeMethods.BCryptGetAlgorithmProperty) 503getter = new BCryptPropertyGetter<SafeBCryptHashHandle>(UnsafeNativeMethods.BCryptGetHashProperty) 586ErrorCode error = UnsafeNativeMethods.BCryptOpenAlgorithmProvider(out algorithmHandle, 601int error = UnsafeNativeMethods.CryptImportPublicKeyInfoEx2( 618ErrorCode error = UnsafeNativeMethods.BCryptExportKey(hKey, IntPtr.Zero, blobType, null, 0, out length, 0); 626error = UnsafeNativeMethods.BCryptExportKey(hKey, IntPtr.Zero, blobType, keyBlob, length, out length, 0); 652ErrorCode error = UnsafeNativeMethods.BCryptImportKey( 699ErrorCode error = UnsafeNativeMethods.BCryptEncrypt( 749ErrorCode error = UnsafeNativeMethods.BCryptDecrypt( 775ErrorCode error = UnsafeNativeMethods.BCryptSetProperty(
System\Security\Cryptography\X509Certificates\ECDsaCertificateExtensions.cs (3)
316BCryptNative.ErrorCode errorCode = BCryptNative.UnsafeNativeMethods.BCryptGetProperty(cryptHandle, propertyName, null, 0, out numBytesNeeded, 0); 321errorCode = BCryptNative.UnsafeNativeMethods.BCryptGetProperty(cryptHandle, propertyName, propertyValue, propertyValue.Length, out numBytesNeeded, 0); 337BCryptNative.ErrorCode errorCode = BCryptNative.UnsafeNativeMethods.BCryptGetProperty(cryptHandle, propertyName, null, 0, out numBytesNeeded, 0);