The NetBSD Project

CVS log for src/sys/opencrypto/ocryptodev.h

[BACK] Up to [cvs.NetBSD.org] / src / sys / opencrypto

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.4.36.1: download - view: text, markup, annotated - select for diffs
Wed Nov 4 23:28:01 2026 UTC (11 days, 9 hours ago) by perseant
Branches: perseant-exfatfs
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +32 -29 lines
Sync with HEAD

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jul 5 15:33:44 2026 UTC (4 months, 1 week ago) by riastradh
Branches: MAIN
CVS tags: perseant-exfatfs-base-20261102, HEAD
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +13 -10 lines
opencrypto(9): Sort includes and nix trailing whitespace.

No functional change intended.

Revision 1.4.30.1: download - view: text, markup, annotated - select for diffs
Thu May 7 14:43:25 2026 UTC (6 months, 1 week ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-2-RELEASE
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +20 -20 lines
Pull up following revision(s) (requested by christos in ticket #1262):

	sys/opencrypto/crypto.c: revision 1.132
	sys/opencrypto/crypto.c: revision 1.133
	sys/opencrypto/cryptosoft.h: revision 1.8
	sys/opencrypto/xform.c: revision 1.32
	sys/opencrypto/deflate.h: revision 1.10
	sys/opencrypto/cryptodev.h: revision 1.52
	sys/opencrypto/cryptosoft.c: revision 1.66
	sys/opencrypto/cryptodev.h: revision 1.53
	sys/opencrypto/ocryptodev.c: revision 1.18
	sys/opencrypto/cryptodev_internal.h: revision 1.4
	sys/opencrypto/aesxcbcmac.c: revision 1.4
	sys/opencrypto/cryptodev.c: revision 1.127
	sys/opencrypto/aesxcbcmac.h: revision 1.3
	sys/opencrypto/cryptodev.c: revision 1.128
	sys/opencrypto/cryptosoft_xform.c: revision 1.31
	sys/opencrypto/deflate.c: revision 1.24
	sys/opencrypto/deflate.c: revision 1.25
	sys/opencrypto/xform.h: revision 1.22
	sys/opencrypto/ocryptodev.h: revision 1.5
	sys/opencrypto/ocryptodev.h: revision 1.6

u_intXX_t -> uintXX_t

Fix:
An integer wraparound bug that could cause a NULL pointer exception.
Data sharing issues that could cause data corruption.
Locking issues that could cause double freeing or using free memory.

Issues discovered by nasm and coordinated by VulnCheck
Thank you!

Revision 1.4.38.1: download - view: text, markup, annotated - select for diffs
Thu May 7 14:40:13 2026 UTC (6 months, 1 week ago) by martin
Branches: netbsd-11
CVS tags: netbsd-11-1-RELEASE, netbsd-11-0-RELEASE, netbsd-11-0-RC7, netbsd-11-0-RC6, netbsd-11-0-RC5, netbsd-11-0-RC4
Diff to: previous 1.4: preferred, colored; next MAIN 1.5: preferred, colored
Changes since revision 1.4: +20 -20 lines
Pull up following revision(s) (requested by christos in ticket #262):

	sys/opencrypto/crypto.c: revision 1.132
	sys/opencrypto/crypto.c: revision 1.133
	sys/opencrypto/cryptosoft.h: revision 1.8
	sys/opencrypto/xform.c: revision 1.32
	sys/opencrypto/deflate.h: revision 1.10
	sys/opencrypto/cryptodev.h: revision 1.52
	sys/opencrypto/cryptosoft.c: revision 1.66
	sys/opencrypto/cryptodev.h: revision 1.53
	sys/opencrypto/ocryptodev.c: revision 1.18
	sys/opencrypto/cryptodev_internal.h: revision 1.4
	sys/opencrypto/aesxcbcmac.c: revision 1.4
	sys/opencrypto/cryptodev.c: revision 1.127
	sys/opencrypto/aesxcbcmac.h: revision 1.3
	sys/opencrypto/cryptodev.c: revision 1.128
	sys/opencrypto/cryptosoft_xform.c: revision 1.31
	sys/opencrypto/deflate.c: revision 1.24
	sys/opencrypto/deflate.c: revision 1.25
	sys/opencrypto/xform.h: revision 1.22
	sys/opencrypto/ocryptodev.h: revision 1.5
	sys/opencrypto/ocryptodev.h: revision 1.6

u_intXX_t -> uintXX_t

Fix:
An integer wraparound bug that could cause a NULL pointer exception.
Data sharing issues that could cause data corruption.
Locking issues that could cause double freeing or using free memory.

Issues discovered by nasm and coordinated by VulnCheck
Thank you!

Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Apr 29 14:51:58 2026 UTC (6 months, 2 weeks ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +20 -20 lines
u_intXX_t -> uintXX_t

Revision 1.5: download - view: text, markup, annotated - select for diffs
Wed Apr 29 14:49:51 2026 UTC (6 months, 2 weeks ago) by christos
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +3 -3 lines
Fix:

An integer wraparound bug that could cause a NULL pointer exception.
Data sharing issues that could cause data corruption.
Locking issues that could cause double freeing or using free memory.

Issues discovered by nasm and coordinated by VulnCheck

Thank you!

Revision 1.3.18.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:49 2019 UTC (7 years, 5 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +7 -1 lines
Sync with HEAD

Revision 1.4: download - view: text, markup, annotated - select for diffs
Sun Jan 27 02:08:48 2019 UTC (7 years, 9 months ago) by pgoyette
Branches: MAIN
CVS tags: thorpej-ifq-base, thorpej-ifq, thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-futex, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, thorpej-altq-separation-base, thorpej-altq-separation, phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, perseant-exfatfs-base-20250801, perseant-exfatfs-base-20240630, perseant-exfatfs-base, netbsd-9-base, netbsd-9-5-RELEASE, netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, netbsd-11-base, netbsd-11-0-RC3, netbsd-11-0-RC2, netbsd-11-0-RC1, netbsd-10-base, netbsd-10-1-RELEASE, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, isaki-audio2-base, isaki-audio2, is-mlppp-base, is-mlppp, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, bouyer-sunxi-drm-base, bouyer-sunxi-drm, ad-namecache-base3, ad-namecache-base2, ad-namecache-base1, ad-namecache-base, ad-namecache
Branch point for: perseant-exfatfs, netbsd-11, netbsd-10
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +7 -1 lines
Merge the [pgoyette-compat] branch

Revision 1.3.16.5: download - view: text, markup, annotated - select for diffs
Sun Sep 23 04:31:17 2018 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.3.16.4: preferred, colored; branchpoint 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3.16.4: +1 -4 lines
No need to declare the crypto_50 init/fini routines.  The compat_50
module no longer needs them, and they're declared static in  the
ocryptodev.c code

Revision 1.3.16.4: download - view: text, markup, annotated - select for diffs
Sun Sep 23 03:44:04 2018 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.3.16.3: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.16.3: +2 -6 lines
Fix some thinkos/pastos/typos

Revision 1.3.16.3: download - view: text, markup, annotated - select for diffs
Sat Sep 22 10:42:00 2018 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.3.16.2: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.16.2: +7 -1 lines
Forward-declare some structs so we can use pointers to them in
function declarations.

Revision 1.3.16.2: download - view: text, markup, annotated - select for diffs
Sat Sep 22 10:33:50 2018 UTC (8 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.3.16.1: preferred, colored; branchpoint 1.3: preferred, colored
Changes since revision 1.3.16.1: +6 -4 lines
When the compat code needs to callback to the original code, we cannot
call directly via the routines' global symbols, since the original code
might not be built-in.  So, the original code that calls compat code
needs to pass in the addresses of the callbacks.  This allows for the
compat code to be built whether or not the original (calling) code is
included.

XXX Done for cryptodev, will need to do the same thing for ccd(4) and
XXX vnd(4)

Revision 1.3.16.1: download - view: text, markup, annotated - select for diffs
Fri Mar 23 09:41:10 2018 UTC (8 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +6 -1 lines
Handle the compat_50 stuff for opencrypto/cryptodev

Revision 1.2.16.1: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:06 2017 UTC (8 years, 11 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +3 -1 lines
update from HEAD

Revision 1.2.34.1: download - view: text, markup, annotated - select for diffs
Tue Sep 22 12:06:12 2015 UTC (11 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2: +3 -1 lines
Sync with HEAD

Revision 1.3: download - view: text, markup, annotated - select for diffs
Sun Sep 6 06:01:02 2015 UTC (11 years, 2 months ago) by dholland
Branches: MAIN
CVS tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, pgoyette-localcount, pgoyette-compat-base, pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, nick-nhusb-base-20160907, nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, netbsd-8-base, netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, localcount-20160914, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: phil-wifi, pgoyette-compat
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -1 lines
More on PR 41200: headers that declare ioctls should include sys/ioccom.h.
This covers (I think) all the MI headers outside of external/ (and dist/).

Revision 1.1.14.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:10:04 2011 UTC (15 years, 5 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +1 -10 lines
Sync with HEAD.

Revision 1.2.2.2: download - view: text, markup, annotated - select for diffs
Fri May 20 08:11:33 2011 UTC (15 years, 6 months ago) by matt
Branches: matt-nb5-mips64
Diff to: previous 1.2.2.1: preferred, colored; branchpoint 1.2: preferred, colored; next MAIN 1.3: preferred, colored
Changes since revision 1.2.2.1: +182 -0 lines
bring matt-nb5-mips64 up to date with netbsd-5-1-RELEASE (except compat).

Revision 1.1.12.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:56:05 2011 UTC (15 years, 8 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +1 -10 lines
sync with head

Revision 1.1.16.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 15:10:48 2011 UTC (15 years, 8 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1: +1 -10 lines
Sync with HEAD

Revision 1.2.2.1
Sat Feb 19 16:26:34 2011 UTC (15 years, 8 months ago) by matt
Branches: matt-nb5-mips64
FILE REMOVED
Changes since revision 1.2: +0 -173 lines
file ocryptodev.h was added on branch matt-nb5-mips64 on 2011-05-20 08:11:33 +0000

Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Feb 19 16:26:34 2011 UTC (15 years, 8 months ago) by drochner
Branches: MAIN
CVS tags: yamt-pagecache-tag8, yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-pagecache, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, khorben-n900, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, agc-symver-base, agc-symver
Branch point for: tls-maxphys, nick-nhusb, matt-nb5-mips64
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -10 lines
make the compatibility code conditional on COMPAT_50

Revision 1.1.8.2: download - view: text, markup, annotated - select for diffs
Wed May 13 17:22:56 2009 UTC (17 years, 6 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.1.8.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.8.1: +182 -0 lines
Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.1.6.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:24 2009 UTC (17 years, 6 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.1.6.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.6.1: +182 -0 lines
sync with head.

Revision 1.1.4.2: download - view: text, markup, annotated - select for diffs
Sun May 3 17:24:45 2009 UTC (17 years, 6 months ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Diff to: previous 1.1.4.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.4.1: +182 -0 lines
Pull up following revision(s) (requested by tls in ticket #611):
	sys/lib/libkern/Makefile: patch
	sys/lib/libkern/crc32.c: revision 1.1
	sys/lib/libkern/crc32.h: revision 1.1
	sys/lib/libkern/libkern.h: revision 1.89
	sys/lib/libkern/arch/i386/Makefile.inc: revision 1.28
	sys/net/zlib.h: revision 1.14 via patch
	sys/opencrypto/crypto.c: revision 1.33
	sys/opencrypto/cryptodev.c: revision 1.46
	sys/opencrypto/cryptodev.h: revision 1.16
	sys/opencrypto/cryptosoft.c: revision 1.24
	sys/opencrypto/cryptosoft.h: revision 1.6
	sys/opencrypto/deflate.h: revision 1.6
	sys/opencrypto/cryptosoft_xform.c: revision 1.12
	sys/opencrypto/deflate.c: revision 1.13
	sys/opencrypto/files.opencrypto: revision 1.20
	sys/opencrypto/ocryptodev.c: revision 1.1
	sys/opencrypto/ocryptodev.h: revision 1.1
	sys/opencrypto/xform.c: revision 1.18
	sys/opencrypto/xform.h: revision 1.10
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.

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:50 2009 UTC (17 years, 6 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.1.2.1: preferred, colored; branchpoint 1.1: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.1: +182 -0 lines
Sync with HEAD.

Revision 1.1.8.1
Wed Mar 25 01:26:13 2009 UTC (17 years, 7 months ago) by jym
Branches: jym-xensuspend
FILE REMOVED
Changes since revision 1.1: +0 -182 lines
file ocryptodev.h was added on branch jym-xensuspend on 2009-05-13 17:22:56 +0000

Revision 1.1.6.1
Wed Mar 25 01:26:13 2009 UTC (17 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
FILE REMOVED
Changes since revision 1.1: +0 -182 lines
file ocryptodev.h was added on branch yamt-nfs-mp on 2009-05-04 08:14:24 +0000

Revision 1.1.4.1
Wed Mar 25 01:26:13 2009 UTC (17 years, 7 months ago) by snj
Branches: netbsd-5
FILE REMOVED
Changes since revision 1.1: +0 -182 lines
file ocryptodev.h was added on branch netbsd-5 on 2009-05-03 17:24:45 +0000

Revision 1.1.2.1
Wed Mar 25 01:26:13 2009 UTC (17 years, 7 months ago) by skrll
Branches: nick-hppapmap
FILE REMOVED
Changes since revision 1.1: +0 -182 lines
file ocryptodev.h was added on branch nick-hppapmap on 2009-04-28 07:37:50 +0000

Revision 1.1: download - view: text, markup, annotated - select for diffs
Wed Mar 25 01:26:13 2009 UTC (17 years, 7 months ago) by darran
Branches: MAIN
CVS tags: yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, matt-premerge-20091211, matt-mips64-premerge-20101231, jymxensuspend-base, jym-xensuspend-nbase, jym-xensuspend-base, jruoho-x86intr-base, bouyer-quota2-base
Branch point for: yamt-nfs-mp, rmind-uvmplock, nick-hppapmap, netbsd-5, jym-xensuspend, jruoho-x86intr, bouyer-quota2
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.

Diff request

This form allows you to request diffs between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.

Log view options

CVSweb <webmaster@jp.NetBSD.org>