Re: message digest of large files
From: Mike Amling (nospam_at_nospam.com)
Date: Thu, 18 Aug 2005 18:39:40 GMT
> Mike Amling wrote:
>> Both SHA1 and MD5 are defined for inputs of up to (2**64)-1 bits.
> Right for SHA-1, but MD5 takes input of arbitrary length.
> The algorithm takes as input a message of arbitrary length
> and produces [...] [RFC 1321, Section 1]
> In the unlikely event that b is greater than 2^64, then only
> the low-order 64 bits of b are used. [RFC 1321, Section 3.2,
> Step 2]
> Hmmm, that should probably read, 'greather than *or equal to*'.
> Oh well, it's broken anyway.
Thanks for clarifying that.