On Feb 16, 2010, at 10:52 PM, Neels J Hofmeyr wrote: > Greg Stein wrote: >> On Tue, Feb 16, 2010 at 16:22, Johan Corveleyn <jcor...@gmail.com> wrote: >>> OTOH, I guess a 0 bytes pristine has to be handled specially anyway >>> (what's the checksum of 0 bytes), no? > > SHA1: da39a3ee5e6b4b0d3255bfef95601890afd80709 > MD5: d41d8cd98f00b204e9800998ecf8427e > > ;)
And we even special case these values in libsvn_subr: static const unsigned char svn_sha1__empty_string_digest_array[] = { 0xda, 0x39, 0xa3, 0xee, 0x5e, 0x6b, 0x4b, 0x0d, 0x32, 0x55, 0xbf, 0xef, 0x95, 0x60, 0x18, 0x90, 0xaf, 0xd8, 0x07, 0x09 }; static const unsigned char svn_md5__empty_string_digest_array[] = { 212, 29, 140, 217, 143, 0, 178, 4, 233, 128, 9, 152, 236, 248, 66, 126 }; -Hyrum