CryptReleaseContext

[DllImport("Crypt32.dll", SetLastError = true)]
public static extern bool CryptReleaseContext(
   IntPtr hProv,
   uint dwFlags
);

Microsoft documentation: Link

Last updated