19 references to Advapi32
System.Security.Cryptography.Pkcs (19)
_generated\0\LibraryImports.g.cs (6)
113
public static partial bool CryptSetProvParam(global::System.Runtime.InteropServices.SafeHandle safeProvHandle, global::Interop.
Advapi32
.CryptProvParam dwParam, nint pbData, int dwFlags)
146
static extern unsafe int __PInvoke(nint __safeProvHandle_native, global::Interop.
Advapi32
.CryptProvParam __dwParam_native, nint __pbData_native, int __dwFlags_native);
156
public static partial bool CryptSetProvParam(global::System.Security.Cryptography.SafeProvHandle hProv, global::Interop.
Advapi32
.CryptProvParam dwParam, ref nint pbData, int dwFlags)
191
static extern unsafe int __PInvoke(nint __hProv_native, global::Interop.
Advapi32
.CryptProvParam __dwParam_native, nint* __pbData_native, int __dwFlags_native);
201
public static partial bool CryptGetProvParam(global::System.Runtime.InteropServices.SafeHandle safeProvHandle, global::Interop.
Advapi32
.CryptProvParam dwParam, nint pbData, ref int dwDataLen, int dwFlags)
236
static extern unsafe int __PInvoke(nint __safeProvHandle_native, global::Interop.
Advapi32
.CryptProvParam __dwParam_native, nint __pbData_native, int* __dwDataLen_native, int __dwFlags_native);
Internal\Cryptography\Pal\Windows\HelpersWindows.cs (5)
15
using CryptProvParam = Interop.
Advapi32
.CryptProvParam;
377
if (!Interop.
Advapi32
.CryptGetProvParam(handle, CryptProvParam.PP_PROVTYPE, stackSpan, ref size))
391
if (!Interop.
Advapi32
.CryptGetProvParam(handle, CryptProvParam.PP_KEYSET_TYPE, stackSpan, ref size))
440
if (!Interop.
Advapi32
.CryptGetProvParam(handle, dwParam, buf, ref len))
458
if (!Interop.
Advapi32
.CryptGetProvParam(handle, dwParam, buf, ref len))
Microsoft\Win32\SafeHandles\SafeProvOrNCryptKeyHandleUwp.cs (1)
53
bool success = Interop.
Advapi32
.CryptReleaseContext(handle, 0);
src\runtime\src\libraries\Common\src\Interop\Windows\Advapi32\SafeHashHandle.cs (1)
53
bool successfullyFreed = Interop.
Advapi32
.CryptDestroyHash(handle);
src\runtime\src\libraries\Common\src\Interop\Windows\Advapi32\SafeKeyHandle.cs (1)
88
bool successfullyFreed = Interop.
Advapi32
.CryptDestroyKey(handle);
src\runtime\src\libraries\Common\src\Interop\Windows\Advapi32\SafeProvHandle.cs (5)
106
if (!_fPersistKeyInCsp && 0 == (_flags & (uint)Interop.
Advapi32
.CryptAcquireContextFlags.CRYPT_VERIFYCONTEXT))
110
uint flags = (_flags & (uint)Interop.
Advapi32
.CryptAcquireContextFlags.CRYPT_MACHINE_KEYSET) | (uint)Interop.
Advapi32
.CryptAcquireContextFlags.CRYPT_DELETEKEYSET;
112
_ = Interop.
Advapi32
.CryptAcquireContext(out hIgnoredProv, _containerName, _providerName, _type, flags);
118
bool successfullyFreed = Interop.
Advapi32
.CryptReleaseContext(handle, 0);