Windows has a tool called MakeCat which generates a catalog file that contains SHA256 hashes of files on the operating system.
Let's say we take Optane.dll as an example file.
Using the Makecat tool to create a catalog file results in an SHA256 hash of 230EB11F89F6B7B4E6C8E069D6A2A68820E7002625D2DF2F30B80043906433F1.

However, putting the same file through any online or local file SHA256 calculator results in a different hash - 4C5E4407A6056B60089F8406CA75F230988A2528FA84F7965C5BF6ED883FB79A

Any ideas how MakeCat is calculating the hash? I believe internally it calls CryptCATAdminCalcHashFromFileHandle Windows API.
My aim: Calculate this Makecat style hash for some files in a Linux environment and store it in a CDF file so I can use it later.