From mboxrd@z Thu Jan 1 00:00:00 1970 From: wkt@minnie.tuhs.org (Warren Toomey) Date: Sat, 21 Sep 2002 10:17:34 +1000 (EST) Subject: [pups] Re: v7 crypt(3) In-Reply-To: <200209201731.g8KHVh176034@pop2.nwbl.wi.voyager.net> from "A. P. Garcia" at "Sep 20, 2002 05:39:51 pm" Message-ID: <200209210017.g8L0HYu27548@minnie.tuhs.org> In article by A. P. Garcia: > Warren, > > I've been looking at the Henry_Spencer_v7 tar, and something > is puzzling me. lines 49-54 of /usr/src/libc/gen/crypt.c are > the following: > > static char PC1_D[] { > 63,55,47,39,31,23,15, > 7,62,54,46,38,30,22, > 14, 6,61,53,45,37,29, > 21,13, 5,28,20,12, 4, > }; > > That wasn't legal syntax, was it? There should be an '=' > between [] and {, as in the rest of the file, no? I just tried to compile the code with the V7 compiler and it complained. Maybe it was legal in V6 and they used the .o file from there and didn't recompile it. I think Dennis is on the list, maybe he can answer the intruiging question! > Btw, it's neat to look at this code alongside the DES standard: > http://csrc.nist.gov/publications/fips/fips46-3/fips46-3.pdf > Phil Garcia Yes, it certainly is. Thanks Phil. Warren