Generated hash value algorithm

Storing produces a hash value.
The output hash value algorithm seems to differ depending on the extension, but do you know what the specification is?

For example, SHA256 is not output for dll files, but SHA256 is output for lib files.