Re: SHA-1 variables

From: Bryan Olson (fakeaddress_at_nowhere.org)
Date: 04/25/03


Date: Fri, 25 Apr 2003 14:13:54 GMT

Last Man Standing wrote:
> The SHA-1 algorithm uses five variables which are initialized by the
> following numbers (in hexadecimal format): 0x67452301, 0xefcdab89,
> 0x98badcfe, 0x01325476, 0xc3d2e1f0. Is there anything special about
> these numbers?

Well, the first four are the ones Rivest chose for MD4 and MD5.
The bytes are in reverse order, but MD4 and MD5 are little-
endian, while SHA-1 is big-endian, so really they're the same.

I believe they were chosen arbitrarily.

-- 
--Bryan


Relevant Pages

  • Re: This Weeks Finds in Mathematical Physics (Week 226)
    ... Schneier credits Rivest as the designer of MD4, saying Bert den Boer and Antoon Bosselaears successfully crpytanalysed the last of the algorithms three rounds, while Ralph Merkle successfully attacked the first two rounds. ... Schneier credits Rivest as strengthening MD4 with the result being MD5. ...
    (sci.physics.research)
  • Re: OT: MD4 encryption
    ... what is MD4 used for? ... and just replaced by MD5 and is no longer used? ... Shortly after MD4 was published a number of attacks were demonstrated against parts of it. ... SHA1 isn't without problems either and discussion rages on about what is the best cryptographic hash algorithm out there. ...
    (comp.sys.mac.system)
  • Re: compare-by-hash (was Re: sharing /etc/passwd)
    ... No, md4 and md5 are broken, in the sense that it's known how to ... das@VARK:~> hexdump md4c_1 ... The md5 data comes from the page ...
    (FreeBSD-Security)
  • Re: Slow but secure has function for small data
    ... Of course they don't contradict each other. ... The assumption that MD4 or MD5 behave like a PRF is not true. ...
    (sci.crypt)
  • Re: Crypto Mini-FAQ
    ... Here's one thing Hans Dobbertin wrote about MD5: ... "would be unwise to assume that the attack could not be ... It is instructive to read the history of MD4. ...
    (sci.crypt)