a header-file only library that allows a user to retrieve multiple types of hashes from data, files, and files in nested directories--all through a simple, lightweight interface!
The hashing of files works (at least for SHA256 that I need right now). However it's not efficient because it reads in memory the whole binary file, then copy this buffer into another one. For every block of cipher (ex: 32 bytes for SHA256), it's re-copied (without the ciphered block), thus copying the "big buffer" lots of times.
To hash a 2GB file, it will copy several millions of times the whole buffer which is very inefficient.
I will provide a series of fixes that should solve this behavior by reworking the hashing algorithm. It will read the file block by block (1MB) and it should be compatible for all the hashing algorithms.