I need to calculate a SHA-256 hash of a large file (or portion of it). My implementation works fine, but its much slower than the C++\'s CryptoPP calculation (25 Min. vs. 10
Perhaps the first thing today is work out where you are spending the most time? Can you run it through a profiler and see where the most time is being spent.
Possible improvements: