Skip to content

Cryptodev-linux is a Linux-kernel device that allows user-space access to hardware cryptographic accelerators.

License

Notifications You must be signed in to change notification settings

kestrel1974/cryptodev-linux

This branch is 15 commits behind cryptodev-linux/cryptodev-linux:master.

Folders and files

NameName
Last commit message
Last commit date
Jan 5, 2022
Oct 31, 2018
Jan 8, 2016
May 23, 2019
Feb 28, 2012
Sep 16, 2010
Jul 27, 2010
Aug 6, 2014
Mar 9, 2021
Feb 9, 2021
Nov 11, 2021
Jul 28, 2020
Feb 9, 2017
Jul 9, 2021
Oct 31, 2018
Jul 9, 2021
Jan 5, 2022
Apr 20, 2018
Jan 6, 2012
Jan 6, 2012
Aug 16, 2020
Oct 4, 2017

Repository files navigation

cryptodev-linux

This is a /dev/crypto device driver, equivalent to those in OpenBSD or FreeBSD. The main idea is to access existing ciphers in kernel space from userspace, thus enabling the re-use of a hardware implementation of a cipher.

For questions and suggestions, please use the homepage at https://github.com. Cryptodev-linux is hosted at https://github.com/cryptodev-linux/cryptodev-linux.

Older releases are also available at http://cryptodev-linux.org.

How to combine with cryptographic libraries

GnuTLS

GnuTLS needs to be compiled with --enable-cryptodev in order to take advantage of /dev/crypto. GnuTLS 3.0.14 or later is recommended.

OpenSSL

OpenSSL needs -DHAVE_CRYPTODEV and -DUSE_CRYPTODEV_DIGESTS flags during compilation. Note that the latter flag (digests) may induce a performance penalty in some systems.

Modifying and viewing verbosity at runtime

The verbosity of the driver often needs to be adjusted for debugging. The sysctl tool can be used for that.

# sysctl ioctl.cryptodev_verbosity
ioctl.cryptodev_verbosity = 0

# sysctl ioctl.cryptodev_verbosity=3
ioctl.cryptodev_verbosity = 3

About

Cryptodev-linux is a Linux-kernel device that allows user-space access to hardware cryptographic accelerators.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 98.5%
  • Makefile 1.5%