17 references to NCrypt
System.Security.Cryptography.Pkcs (17)
_generated\0\LibraryImports.g.cs (7)
1312internal 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) 1316global::Interop.NCrypt.ErrorCode __retVal = default; 1341static 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); 1351internal 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) 1354global::Interop.NCrypt.ErrorCode __retVal = default; 1378static 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); 1387internal static extern partial global::Interop.NCrypt.ErrorCode NCryptFreeObject(nint hObject);
Internal\Cryptography\Pal\Windows\PkcsPalWindows.cs (3)
138Interop.NCrypt.ErrorCode errorCode = Interop.NCrypt.NCryptGetByteProperty(keyHandle, "CLR IsEphemeral", ref clrIsEphemeral, CngPropertyOptions.CustomProperty); 140if (errorCode == Interop.NCrypt.ErrorCode.ERROR_SUCCESS && clrIsEphemeral == 1)
Microsoft\Win32\SafeHandles\SafeProvOrNCryptKeyHandleUwp.cs (2)
8using ErrorCode = Interop.NCrypt.ErrorCode; 48ErrorCode errorCode = Interop.NCrypt.NCryptFreeObject(handle);
src\runtime\src\libraries\Common\src\Interop\Windows\NCrypt\Interop.ErrorCode.cs (3)
27internal static bool IsBufferTooSmall(this NCrypt.ErrorCode errorCode) 29return 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)
37ErrorCode errorCode = Interop.NCrypt.NCryptGetProperty( 60ErrorCode errorCode = Interop.NCrypt.NCryptGetProperty(