2004-09-21 13:38:28

by Jean-Luc Cooke

[permalink] [raw]
Subject: [PATCH] Whirlpool-256 and -384

Attached is a patch for the 2.6.9-rc2 tree.

Whirlpool is a 512bit hash function. This patch truncates the output to 256
and 384 bits for "whirlpool-256" and "whirlpool-384" respectivly.

Truncating of hash is standard pracatice in seen in 2nd generation of SHA
functions as one example.

There was minor flaw in whirlpool.c's update function where
WHIRLPOOL_DIGEST_SIZE was used inplace of WHIRLPOOL_BLOCK_SIZE. This isn't a
big deal since they are identical values for DIGESTSIZE=512bits. I have fix
this in the following patch.

tcrypt.c and tcrypt.h have been updated as well.

JLC


Attachments:
(No filename) (589.00 B)
whirlpool_256-384.patch (5.47 kB)
Download all attachments