[PATCH 1/3] whirlpool: do bitcount calculation in finalization part

Jussi Kivilinna jussi.kivilinna at iki.fi
Fri Sep 20 15:44:13 CEST 2013

On 20.09.2013 16:21, Werner Koch wrote:
> On Thu, 19 Sep 2013 20:16, jussi.kivilinna at iki.fi said:
>> With 256-bit counter, overflow happens after ~1.3e67 gigabytes. With 64-bit
>> block counter, overflow happens just after ~1.1e12 gigabytes.
> You better check with the NSA that this is okay for their data centers
> ;-)

Oh, someone might actually want hash for over 1 zettabyte of data (in distant future).

If this is really needed, the nblocks overflow assert in whirlpool_white can be turned in to carry handling.

- Jussi

> Shalom-Salam,
>    Werner

More information about the Gcrypt-devel mailing list