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