The juce::SHA256 interface is incredibly inconvenient if you want to pass small blocks of data at a time instead of having the class do everything for you. In my case, I need to support thread interruption, so I planned on feeding the small blocks of a FileInputStream wrapped in a BufferedInputStream.
But there's no way to do that! SHA256 insists on constructing with the hash already computed. One constructor takes a "maxBytesToRead" but that's no good, because I need to keep going with the rest of the data in between periodically checking for a thread interruption.
Am I missing something here?