A hash utility, est. 2002, FLOSS. 489 hash functions, HMAC support, cross platform, feature-rich, multi threaded. CLI and API. Recursive hashing, predefined and customizable formats, verify data integrity and find ok/failed/missing/new files, find files by their hashes, find the hash function to a hash. GUI provided by HashGarten.
Describe the bug
First of all, the whirlpool calculation is correct.
However, the whirlpool implementations have been registered with a wrong bitwidth.
whirlpool ist not listed in the list of 512 bit hashes:
which is wrong, because whirlpool have a hash bit width of 512 bits.
To Reproduce
Since the other two Whirlpool implementations (Whirlpool-0 and Whirlpool-2) are derived from the GNU Crypto Whirlpool-1 (aka Whirlpool-T), the bug is in all three implementations.
The bug is in GNU-Crypto's original Whirlpool.java (even in GNU-Crypto 2.1.0):
This is wrong because Whirlpool's hashSize is 512 bit (64 bytes), and not 160 bit (20 bytes).
Expected behavior
jacksum -a all:512 --list
once fixed, the command above should list whirlpool0, whirlpool1, and whirlpool2 in this list
also
jacksum -a all:whirlpool --list --info
should list the hash length correctly which is 512 bits or 64 bytes
Screenshots
n/a
Environment (please complete the following information):
Jacksum 3.1.0
Describe the bug First of all, the whirlpool calculation is correct. However, the whirlpool implementations have been registered with a wrong bitwidth.
whirlpool ist not listed in the list of 512 bit hashes:
Instead it is listed at the end of the 160 bit width message digest list:
which is wrong, because whirlpool have a hash bit width of 512 bits.
To Reproduce Since the other two Whirlpool implementations (Whirlpool-0 and Whirlpool-2) are derived from the GNU Crypto Whirlpool-1 (aka Whirlpool-T), the bug is in all three implementations.
The bug is in GNU-Crypto's original Whirlpool.java (even in GNU-Crypto 2.1.0):
This is wrong because Whirlpool's hashSize is 512 bit (64 bytes), and not 160 bit (20 bytes).
Expected behavior
jacksum -a all:512 --list
once fixed, the command above should list whirlpool0, whirlpool1, and whirlpool2 in this list alsojacksum -a all:whirlpool --list --info
should list the hash length correctly which is 512 bits or 64 bytesScreenshots n/a
Environment (please complete the following information): Jacksum 3.1.0
Additional context n/a