7 references to NCryptExportKey
System.Security.Cryptography (7)
src\runtime\src\libraries\Common\src\System\Security\Cryptography\CngHelpers.cs (2)
152ErrorCode errorCode = Interop.NCrypt.NCryptExportKey(handle, IntPtr.Zero, blobType, IntPtr.Zero, null, 0, out numBytesNeeded, 0); 162errorCode = Interop.NCrypt.NCryptExportKey(handle, IntPtr.Zero, blobType, IntPtr.Zero, buffer, buffer.Length, out numBytesNeeded, 0);
src\runtime\src\libraries\Common\src\System\Security\Cryptography\MLKemCng.Windows.cs (2)
247ErrorCode errorCode = Interop.NCrypt.NCryptExportKey( 267errorCode = Interop.NCrypt.NCryptExportKey(
System\Security\Cryptography\CngKey.Export.cs (2)
23ErrorCode errorCode = Interop.NCrypt.NCryptExportKey(_keyHandle, IntPtr.Zero, format.Format, IntPtr.Zero, null, 0, out numBytesNeeded, 0); 28errorCode = Interop.NCrypt.NCryptExportKey(_keyHandle, IntPtr.Zero, format.Format, IntPtr.Zero, buffer, buffer.Length, out numBytesNeeded, 0);
System\Security\Cryptography\X25519DiffieHellmanCng.Windows.cs (1)
166ErrorCode errorCode = Interop.NCrypt.NCryptExportKey(