From: Peter Dimov (pdimov_at_[hidden])
Date: 2024-12-08 20:51:56


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.