From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4ee5ec97eefd3551 X-Google-Attributes: gidfee84,public From: sam@iii1.iii.net (Sam Weiner) Subject: Re: cksum(1) on DEC OSF/1 Date: 1995/06/18 Message-ID: <3s1ktv$ptl@iii1.iii.net>#1/1 X-Deja-AN: 104597916 references: <3rmsjb$cml@eccdb1.pms.ford.com> organization: What me? newsgroups: comp.unix.osf.osf1 In article schellen@kafka.mpr.ca (Neil Schellenberger) writes: : :>>>>> "MC" == Mark Charette writes: : :MC> Neil Schellenberger (schellen@kafka.mpr.ca) wrote: :MC> : Does anybody know what algorithm is used by /bin/cksum to compute CRCs? :MC> : I've tried it out on both 2.1 and 3.0 machines both of which give the same :MC> : results. These results differ from both a) the NetBSD cksum and b) what I :MC> : would expect based on the Posix 1003.2 algorithm. Can anyone shed some :MC> : light? Am I just doing something wrong? :MC> :MC> Did you try man cksum ? It gives the polynomial used (along with other :MC> interesting info) on OSF/1 3.0 and 3.2. : :Actually that's where I started this sad and rather painful journey. :I've implemented the algorithm exactly as it is described. My code :generates CRCs which are the same as those generated by NetBSD's :cksum(1). (I grabbed the [publicly available] NetBSD cksum(1) source :from an FTP site somewhere.) The OSF/1 cksum(1) in /bin steadfastly :generates something different. : [sad story deleted -smw] At the bottom of the man cksum page is a reference to sum. The man page for sum talks about providing both BSD and SVID2 style checksums. Perhaps thia would help (not knowing NetBSD's algorithm?) As you said, love those standards. Sam