17 references to NCrypt
System.Security.Cryptography.Pkcs (17)
_generated\0\LibraryImports.g.cs (7)
1312
internal static unsafe partial global::Interop.
NCrypt
.ErrorCode NCryptGetProperty(global::Microsoft.Win32.SafeHandles.SafeNCryptHandle hObject, string pszProperty, void* pbOutput, int cbOutput, out int pcbResult, global::System.Security.Cryptography.CngPropertyOptions dwFlags)
1316
global::Interop.
NCrypt
.ErrorCode __retVal = default;
1341
static extern unsafe global::Interop.
NCrypt
.ErrorCode __PInvoke(nint __hObject_native, ushort* __pszProperty_native, void* __pbOutput_native, int __cbOutput_native, int* __pcbResult_native, global::System.Security.Cryptography.CngPropertyOptions __dwFlags_native);
1351
internal static unsafe partial global::Interop.
NCrypt
.ErrorCode NCryptSetProperty(global::Microsoft.Win32.SafeHandles.SafeNCryptHandle hObject, string pszProperty, void* pbInput, int cbInput, global::System.Security.Cryptography.CngPropertyOptions dwFlags)
1354
global::Interop.
NCrypt
.ErrorCode __retVal = default;
1378
static extern unsafe global::Interop.
NCrypt
.ErrorCode __PInvoke(nint __hObject_native, ushort* __pszProperty_native, void* __pbInput_native, int __cbInput_native, global::System.Security.Cryptography.CngPropertyOptions __dwFlags_native);
1387
internal static extern partial global::Interop.
NCrypt
.ErrorCode NCryptFreeObject(nint hObject);
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (3)
138
Interop.
NCrypt
.ErrorCode errorCode = Interop.
NCrypt
.NCryptGetByteProperty(keyHandle, "CLR IsEphemeral", ref clrIsEphemeral, CngPropertyOptions.CustomProperty);
140
if (errorCode == Interop.
NCrypt
.ErrorCode.ERROR_SUCCESS && clrIsEphemeral == 1)
Microsoft\Win32\SafeHandles\SafeProvOrNCryptKeyHandleUwp.cs (2)
8
using ErrorCode = Interop.
NCrypt
.ErrorCode;
48
ErrorCode errorCode = Interop.
NCrypt
.NCryptFreeObject(handle);
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.ErrorCode.cs (3)
27
internal static bool IsBufferTooSmall(this
NCrypt
.ErrorCode errorCode)
29
return errorCode is
NCrypt
.ErrorCode.NTE_BUFFER_TOO_SMALL or
NCrypt
.ErrorCode.TPM_E_PCP_BUFFER_TOO_SMALL;
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.Properties.cs (2)
37
ErrorCode errorCode = Interop.
NCrypt
.NCryptGetProperty(
60
ErrorCode errorCode = Interop.
NCrypt
.NCryptGetProperty(