On Wed, 13 Feb 2008 05:55:25 +0100 Roland Mainz wrote:
> Joseph Kowalski wrote:
> > Roland Mainz wrote:
> > The short answer is "No". This isn't the way OpenSolaris integration works.
> You did see the comment that I said "... yes, we will do it..." ?
> > We could probably accept a modified proposal that eliminated all "sum"
> > references.
> Groan... sounds we have to use the crowbar to get libsum to use
> Solaris's libmd... ;-(
did my message about this drop on the floor?
no tools required
a 5 line iffe script and a 300 line c wrapper for ast sum(3) <=> -lmd
are already coded and tested
the ast cksum -x { md5 sha1 sha-256 sha-384 sha-512 } regression tests pass
with -lmd
roland: its up on ksh93.logical-approach.com:
src/lib/libsum/@(sumlib.c|sum-lmd.c|Makefile)
src/lib/libcmd/Makefile
are the solaris descriptions/attributions below ok?
(they will only show up on solaris systems with -lmd)
-- Glenn Fowler -- AT&T Research, Florham Park NJ --
(sol11.sun4) type cksum
cksum is a shell builtin version of /home/gsf/arch/sol11.sun4/bin/cksum
(sol11.sun4) cksum --?method
Usage: cksum [ options ] [ file ... ]
OPTIONS
-x, --method|algorithm=method
Specifies the checksum method to apply. Parenthesized method
options are readonly implementation
details.
att|sys5|s5|default
The system 5 release 4 checksum. This is the default
for sum when getconf UNIVERSE is att.
This is the only true sum; all of the other methods
are order dependent.
ast4|32x4|tw
The ast 128 bit PRNG hash generated by catenating 4
separate 32 bit PNRG hashes. The block
count is not printed.
bsd|ucb
The BSD checksum.
crc 32 bit CRC (cyclic redundancy check).
polynomial=mask
The 32 bit crc polynomial bitmask with
implicit bit 32. The default value is
0xedb88320.
done[=number]
XOR the final crc value with number.
0xffffffff is used if number is omitted. The
option value may be omitted. The default
value is 0.
init[=number]
The initial crc value. 0xffffffff is used if
number is omitted. The option value may
be omitted. The default value is 0.
rotate
XOR each input character with the high order
crc byte (instead of the low order).
size[=number]
Include the total number of bytes in the crc.
number, if specified, is first XOR'd
into the size. The option value may be
omitted. The default value is 0.
prng 32 bit PRNG (pseudo random number generator) hash.
mpy=number
The 32 bit PRNG multiplier. The default value
is 0x01000193.
add=number
The 32 bit PRNG addend. The default value is
0.
init[=number]
The PRNG initial value. 0xffffffff is used if
number is omitted. The option value may
be omitted. The default value is 0x811c9dc5.
md4|MD4
RFC1320 MD4 message digest. Cryptographically weak.
The block count is not printed.
(version)
md4 (solaris -lmd) 2005-07-26
md5|MD5
RFC1321 MD5 message digest. Cryptographically weak.
The block count is not printed.
(version)
md5 (solaris -lmd) 2005-07-26
sha1|SHA1|sha-1|SHA-1
RFC3174 / FIPS 180-1 SHA-1 secure hash algorithm 1.
Cryptographically weak. The block count
is not printed.
(version)
sha1 (solaris -lmd) 2005-07-26
sha256|sha-256|SHA256|SHA-256
FIPS 180-2 SHA256 secure hash algorithm. The block
count is not printed.
(version)
sha256 (solaris -lmd) 2005-07-26
sha384|sha-384|SHA384|SHA-384
FIPS 180-2 SHA384 secure hash algorithm. The block
count is not printed.
(version)
sha384 (solaris -lmd) 2005-07-26
sha512|sha-512|SHA512|SHA-512
FIPS 180-2 SHA512 secure hash algorithm. The block
count is not printed.
(version)
sha512 (solaris -lmd) 2005-07-26
posix|cksum|std|standard
The posix 1003.2-1992 32 bit crc checksum. This is
the default cksum(1) method. Shorthand for
crc-0x04c11db7-rotate-done-size.
zip The zip(1) crc. Shorthand for
crc-0xedb88320-init-done.
fddi The FDDI crc. Shorthand for
crc-0xedb88320-size=0xcc55cc55.
fnv|fnv1
The Fowler-Noll-Vo 32 bit PRNG hash with non-zero
initializer (FNV-1). Shorthand for
prng-0x01000193-init=0x811c9dc5.
ast|strsum
The ast strsum(3) PRNG hash. Shorthand for
prng-0x63c63cd9-add=0x9c39c33d.