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