<PackageReference Include="System.Security.Cryptography.Cng" Version="5.0.0-preview.8.20407.11" />

Microsoft.Win32.SafeHandles.SafeNCryptHandle

public abstract class SafeNCryptHandle : SafeHandleZeroOrMinusOneIsInvalid
Provides a safe handle that can be used by Cryptography Next Generation (CNG) objects.
protected SafeNCryptHandle()

Initializes a new instance of the SafeNCryptHandle class.

protected SafeNCryptHandle(IntPtr handle, SafeHandle parentHandle)

Instantiates a new instance of the SafeNCryptHandle class.

protected abstract bool ReleaseNativeHandle()

Releases a native handle used by a Cryptography Next Generation (CNG) object.