NetBSD/sys/lib/libkern
darran 36ea3668b9 Fixes PR kern/41069 and PR kern/41070.
Extends the Opencrypto API to allow the destination buffer size to be
specified when its not the same size as the input buffer (i.e. for
operations like compress and decompress).
The crypto_op and crypt_n_op structures gain a u_int dst_len field.
The session_op structure gains a comp_alg field to specify a compression
algorithm.
Moved four ioctls to new ids; CIOCGSESSION, CIOCNGSESSION,  CIOCCRYPT,
and CIOCNCRYPTM.
Added four backward compatible ioctls; OCIOCGSESSION, OCIOCNGSESSION,
OCIOCCRYPT, and OCIOCNCRYPTM.

Backward compatibility is maintained in ocryptodev.h and ocryptodev.c which
implement the original ioctls and set dst_len and comp_alg to 0.

Adds user-space access to compression features.

Adds software gzip support (CRYPTO_GZIP_COMP).

Adds the fast version of crc32 from zlib to libkern. This should be generally
useful and provide a place to start normalizing the various crc32 routines
in the kernel.  The crc32 routine is used in this patch to support GZIP.

With input and support from tls@NetBSD.org.
2009-03-25 01:26:12 +00:00
..
arch Fixes PR kern/41069 and PR kern/41070. 2009-03-25 01:26:12 +00:00
__assert.c
__main.c ansify function definitions 2009-03-15 21:33:51 +00:00
arc4random.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
bcd.c
crc32.c Fixes PR kern/41069 and PR kern/41070. 2009-03-25 01:26:12 +00:00
crc32.h Fixes PR kern/41069 and PR kern/41070. 2009-03-25 01:26:12 +00:00
imax.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
imin.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
intoa.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
libkern.h Fixes PR kern/41069 and PR kern/41070. 2009-03-25 01:26:12 +00:00
lmax.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
lmin.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
Makefile Change the use of formally undocumented features, which have now been 2009-01-18 20:42:11 +00:00
Makefile.inc
Makefile.libkern Fixes PR kern/41069 and PR kern/41070. 2009-03-25 01:26:12 +00:00
max.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
mertwist.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
milieu.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
min.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
pmatch.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
scanc.c
skpc.c Change about 4500 of the K&R function definitions to ANSI ones. 2009-03-14 15:35:58 +00:00
softfloat-macros.h
softfloat-specialize.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
softfloat.c
softfloat.h Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
ulmax.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
ulmin.c ANSIfy another 1261 function definitions. 2009-03-14 21:04:01 +00:00
xlat_mbr_fstype.c Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00