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