
8 Dec
2024
8 Dec
'24
8:51 p.m.
Andrey Semashev wrote:
All that leads me to the thought that I've got get_integral_result wrong; it should take the hash algorithm directly, not its result, and should invoke result() as many times as needed to obtain the necessary number of bits.
This would be incompatible with algorithms that don't support multiple calls to finalize().
That is why multiple calls to result() (there's no finalize) are required to be supported.