28 references to Interop
System.Security.Cryptography.ProtectedData (28)
_generated\0\LibraryImports.g.cs (22)
8
internal static partial bool CryptProtectData(in global::
Interop
.Crypt32.DATA_BLOB pDataIn, string szDataDescr, ref global::
Interop
.Crypt32.DATA_BLOB pOptionalEntropy, nint pvReserved, nint pPromptStruct, global::
Interop
.Crypt32.CryptProtectDataFlags dwFlags, out global::
Interop
.Crypt32.DATA_BLOB pDataOut)
15
fixed (global::
Interop
.Crypt32.DATA_BLOB* __pDataOut_native = &pDataOut)
16
fixed (global::
Interop
.Crypt32.DATA_BLOB* __pOptionalEntropy_native = &pOptionalEntropy)
18
fixed (global::
Interop
.Crypt32.DATA_BLOB* __pDataIn_native = &pDataIn)
31
static extern unsafe int __PInvoke(global::
Interop
.Crypt32.DATA_BLOB* __pDataIn_native, ushort* __szDataDescr_native, global::
Interop
.Crypt32.DATA_BLOB* __pOptionalEntropy_native, nint __pvReserved_native, nint __pPromptStruct_native, global::
Interop
.Crypt32.CryptProtectDataFlags __dwFlags_native, global::
Interop
.Crypt32.DATA_BLOB* __pDataOut_native);
41
internal static partial bool CryptUnprotectData(in global::
Interop
.Crypt32.DATA_BLOB pDataIn, nint ppszDataDescr, ref global::
Interop
.Crypt32.DATA_BLOB pOptionalEntropy, nint pvReserved, nint pPromptStruct, global::
Interop
.Crypt32.CryptProtectDataFlags dwFlags, out global::
Interop
.Crypt32.DATA_BLOB pDataOut)
48
fixed (global::
Interop
.Crypt32.DATA_BLOB* __pDataOut_native = &pDataOut)
49
fixed (global::
Interop
.Crypt32.DATA_BLOB* __pOptionalEntropy_native = &pOptionalEntropy)
50
fixed (global::
Interop
.Crypt32.DATA_BLOB* __pDataIn_native = &pDataIn)
63
static extern unsafe int __PInvoke(global::
Interop
.Crypt32.DATA_BLOB* __pDataIn_native, nint __ppszDataDescr_native, global::
Interop
.Crypt32.DATA_BLOB* __pOptionalEntropy_native, nint __pvReserved_native, nint __pPromptStruct_native, global::
Interop
.Crypt32.CryptProtectDataFlags __dwFlags_native, global::
Interop
.Crypt32.DATA_BLOB* __pDataOut_native);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CryptoThrowHelper.Windows.cs (1)
19
string message =
Interop
.Kernel32.GetMessage(hr);
System\Security\Cryptography\ProtectedData.cs (5)
7
using CryptProtectDataFlags =
Interop
.Crypt32.CryptProtectDataFlags;
8
using DATA_BLOB =
Interop
.Crypt32.DATA_BLOB;
358
Interop
.Crypt32.CryptProtectData(in userDataBlob, null, ref optionalEntropyBlob, IntPtr.Zero, IntPtr.Zero, flags, out outputBlob) :
359
Interop
.Crypt32.CryptUnprotectData(in userDataBlob, IntPtr.Zero, ref optionalEntropyBlob, IntPtr.Zero, IntPtr.Zero, flags, out outputBlob);
418
errorCode ==
Interop
.Errors.ERROR_FILE_NOT_FOUND;