<PackageReference Include="Microsoft.Bcl.Cryptography" Version="10.0.12" />

System.Security.Cryptography.CngHelpers

static class CngHelpers
namespace System.Security.Cryptography { internal static class CngHelpers { internal delegate void ExportKeyBlobCallback (ReadOnlySpan<byte> blob); public unsafe static byte[] SignHash(this SafeNCryptKeyHandle keyHandle, ReadOnlySpan<byte> hash, global::Interop.NCrypt.AsymmetricPaddingMode paddingMode, void* pPaddingInfo, int estimatedSize); public unsafe static void SignHash(this SafeNCryptKeyHandle keyHandle, ReadOnlySpan<byte> hash, Span<byte> destination, global::Interop.NCrypt.AsymmetricPaddingMode paddingMode, void* pPaddingInfo); public unsafe static bool TrySignHash(this SafeNCryptKeyHandle keyHandle, ReadOnlySpan<byte> hash, Span<byte> signature, global::Interop.NCrypt.AsymmetricPaddingMode paddingMode, void* pPaddingInfo, out int bytesWritten); public unsafe static bool VerifyHash(this SafeNCryptKeyHandle keyHandle, ReadOnlySpan<byte> hash, ReadOnlySpan<byte> signature, global::Interop.NCrypt.AsymmetricPaddingMode paddingMode, void* pPaddingInfo); } }