git: cryptodev: remove /dev/crypto pseudo-device
Michael Neumann
mneumann at crater.dragonflybsd.org
Wed Dec 3 22:37:21 PST 2025
commit c1ba3281906f59764337eb93e58c0507795c9752
Author: Michael Neumann <mneumann at ntecs.de>
Date: Sun Nov 9 16:04:04 2025 +0100
cryptodev: remove /dev/crypto pseudo-device
Remove the /dev/crypto pseudo-device. OpenBSD, which invented this API,
did this step back in release 5.7 (2015).
Note that this commit only removes the userland-facing /dev/crypto
device while still keeping the in-kernel crypto(9) API as-is. The plan
is to finally remove crypto(9) in a future commit.
The only applications within DragonFly that ever made use of /dev/crypto
were tcplay(8), cryptsetup(8) and cryptdisks(8) via libtcplay. But this
dependency on /dev/crypto was dropped in commit
ede102cd94449fe52fa9da25631d9f15af6d62ef as of April 21, 2025 in favor
of doing the crypto operations directly in userland without any help
from the kernel via /dev/crypto.
Userland libraries or applications like OpenSSH and OpenSSL do not use
/dev/crypto, mainly for performance reasons (and portability).
Summary of changes:
Makefile_upgrade.inc | 3 +
UPDATING | 18 +
lib/libtcplay/crypto-dev.c | 165 ------
share/man/man4/Makefile | 2 -
share/man/man4/aesni.4 | 3 +-
share/man/man4/crypto.4 | 131 -----
share/man/man4/rndtest.4 | 1 -
share/man/man9/crypto.9 | 7 +-
sys/conf/files | 5 +-
sys/config/LINT64 | 3 +-
sys/config/X86_64_GENERIC | 2 +-
sys/crypto/Makefile | 1 -
sys/dev/crypto/Makefile | 2 +-
sys/dev/crypto/cryptodev/Makefile | 7 -
sys/opencrypto/cryptodev.c | 930 ---------------------------------
sys/sys/param.h | 3 +-
test/crypto/cryptoapi/Makefile | 6 +-
test/crypto/cryptoapi/crypto-dev.c | 124 -----
test/crypto/cryptoapi/cryptoapi_test.c | 3 -
19 files changed, 34 insertions(+), 1382 deletions(-)
delete mode 100644 lib/libtcplay/crypto-dev.c
delete mode 100644 share/man/man4/crypto.4
delete mode 100644 sys/dev/crypto/cryptodev/Makefile
delete mode 100644 sys/opencrypto/cryptodev.c
delete mode 100644 test/crypto/cryptoapi/crypto-dev.c
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/c1ba3281906f59764337eb93e58c0507795c9752
--
DragonFly BSD source repository
More information about the Commits
mailing list