9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* Re: [9fans] Réf. : [9fans] october 14 package patch
@ 2000-11-29 18:58 Russ Cox
  0 siblings, 0 replies; 3+ messages in thread
From: Russ Cox @ 2000-11-29 18:58 UTC (permalink / raw)
  To: 9fans

    exactly what i smashed into my Makefile when i wrote md5:
        http://www.planete.net/~boyd/code/md5.bundle
    use the whole checksum.  all those bits are there for a _reason_.

I do use the whole checksum in wrap (I just don't 
believe in putting the whole things on web
pages for poor humans to stare at).  The problem
was that I moved some code around in wrap/create and
in one case the sum wasn't getting computed at all,
so you got whatever was on the stack, hence the
regularity.  The MD5 code was from a library that
has been correct for a good long time.

Russ


^ permalink raw reply	[flat|nested] 3+ messages in thread

* [9fans] Réf. : [9fans] october 14 package patch
@ 2000-11-29 13:27 boyd.roberts
  0 siblings, 0 replies; 3+ messages in thread
From: boyd.roberts @ 2000-11-29 13:27 UTC (permalink / raw)
  To: 9fans



oh dear, time to 'do a boyd' [thanks rob].

i don't know what the problem was with the md5 checksums, but
RFC1321 says:

    A.5 Test suite

       The MD5 test suite (driver option "-x") should print the following
       results:

    MD5 test suite:
    MD5 ("") = d41d8cd98f00b204e9800998ecf8427e
    MD5 ("a") = 0cc175b9c0f1b6a831c399e269772661
    MD5 ("abc") = 900150983cd24fb0d6963f7d28e17f72
    MD5 ("message digest") = f96b697d7cb7938d525a2f31aaf161d0
    MD5 ("abcdefghijklmnopqrstuvwxyz") = c3fcd3d76192e4007dfb496cca67e13b
    MD5 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") =
    d174ab98d277d9f5a5611c2c9f419d9f
    MD5 ("123456789012345678901234567890123456789012345678901234567890123456
    78901234567890") = 57edf4a22be3c955ac49da2e2107b67a

exactly what i smashed into my Makefile when i wrote md5:

    http://www.planete.net/~boyd/code/md5.bundle

use the whole checksum.  all those bits are there for a _reason_.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [9fans] Réf. : [9fans] october 14 package patch
@ 2000-11-29 11:17 boyd.roberts
  0 siblings, 0 replies; 3+ messages in thread
From: boyd.roberts @ 2000-11-29 11:17 UTC (permalink / raw)
  To: 9fans



  /29000/include/u.h 2f0000004503000000000000868b0100
  /29000/include/ureg.h 2f0000001903000000000000868b0100
  /29000/mkfile 2f0000002e000000000000003e8b0100
  /386/9load 2f000000e0370200000000003c8b0100
  ...

that's scarey.  look at the high bits and the low bits the of checksums.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-11-29 18:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-11-29 18:58 [9fans] Réf. : [9fans] october 14 package patch Russ Cox
  -- strict thread matches above, loose matches on Subject: below --
2000-11-29 13:27 boyd.roberts
2000-11-29 11:17 boyd.roberts

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).