summaryrefslogtreecommitdiff
path: root/sys/opencrypto/cryptodev.c
AgeCommit message (Collapse)Author
2003-11-19Wrap noisy pointless message about denied userspace requests withjonathan
`#ifdef CRYPTO_DEBUG', per Jason Thorpe's suggestion.
2003-11-19Clean up userlevel access to software kernel transforms, in preparationjonathan
for using /dev/crypto for OpenSSL: 1. Add comments explaining crypto_devallowsoft, explaining the OpenBSD-style three-way logic actully implemented in crypto_newsession(). 2. Pass crypto_devallowsoft as the final argument to crypto_newsession(), instead of a constant 0 value. 3. Set the default value of crypto_devallowsoft to 1, to allow /dev/crypto access only for hardware-supported transforms. Items 1-3 may be revised to match the FreeBSD two-way logic, if the consensus is that there's no point to forcing software transforms. But as a first step, let the description match what the code actually does. GC unused variables usercrypto, userasmcrypto, cryptodevallowsoft from cryptodev.c, in favour of variables crypto_usercrypto, crypto_userasmcrypto, crypto_devallowsoft, which are used as well as defined in crypto.c.
2003-11-16Remove '#ifdef notdef' around userspace ioctl() requests forjonathan
pure (non-HMAC) MD5 and SHA1.
2003-08-26Remove a bunch of unnecessary includes.thorpej
2003-08-25It's bad form to use the <opencrypto/rmd160.h> header file whilethorpej
using the crypto/ripemd160/rmd160.c implementation. Remove the opencrypto-local copies of these files entirely.
2003-08-22on netbsd, major # for /dev/crypto depends on architojun
2003-08-21Pull up `done' flag for crypto operations from FreeBSD. FreeBSD deltas:jonathan
cryptodev.c: 1.4.2.3 -> 1.4.2.4 cryptodev.h: 1.4.2.4 -> 1.4.2.5
2003-07-30Garbage-collect references to OpenBSD-only <dev/rndvar.h>.jonathan
2003-07-28Remove vestiges of OpenBSD <sys/md5k.h> header.jonathan
2003-07-25Commit initial NetBSD port of the OpenCrypto Framework (OCF). Thisjonathan
code is derived from Sam Leffler's FreeBSD port of OCF, which is in turn a port of Angelos Keromytis's OpenBSD work. Credit to Sam and Angelos, any blame for the NetBSD port to me.