Crypto API (Linux)

From Wikipedia, the free encyclopedia
Jump to navigation Jump to search

Template:Short description Crypto API is a cryptography framework in the Linux kernel, for various parts of the kernel that deal with cryptography, such as IPsec and dm-crypt. It was introduced in kernel version 2.5.45[1] and has since expanded to include essentially all popular block ciphers and hash functions.

Userspace interfaces

Many platforms that provide hardware acceleration of AES encryption expose this to programs through an extension of the instruction set architecture (ISA) of the various chipsets (e.g. AES instruction set for x86). With this sort of implementation, any program (kernel-mode or user-space) may utilize these features directly.

Some platforms, such as the ARM Kirkwood SheevaPlug and AMD Geode processors, however, are not implemented as ISA extensions, and are only accessible through kernel-mode drivers. In order for user-mode applications that utilize encryption, such as wolfSSL, OpenSSL or GnuTLS, to take advantage of such acceleration, they must interface with the kernel.[2]

AF_ALG
A netlink-based interface that adds an AF_ALG address family;[3] it was merged into version 2.6.38 of the Linux kernel mainline.[4][5] There was once a plugin to OpenSSL to support AF_ALG,[6] which has been submitted for merging.[7] In version 1.1.0, OpenSSL landed another patch for AF_ALG contributed by Intel.[8] wolfSSL can make use of AF_ALG and Template:Not a typo[9]
cryptodev
The OpenBSD Cryptographic Framework /dev/crypto interface of OpenBSD was ported to Linux,[10][11][12] but never merged.

See also

Script error: No such module "Portal".

References

Template:Reflist

Template:Linux kernel


Template:Asbox Template:Asbox

  1. Script error: No such module "citation/CS1".
  2. Script error: No such module "citation/CS1".
  3. Script error: No such module "citation/CS1".
  4. Linux_2_6_38 changes
  5. 03c8efc Template:Webarchive fe869cd Template:Webarchive 8ff5909 Template:Webarchive
  6. Script error: No such module "citation/CS1".
  7. Script error: No such module "citation/CS1".
  8. Script error: No such module "citation/CS1".
  9. Script error: No such module "citation/CS1".
  10. Script error: No such module "citation/CS1".
  11. Script error: No such module "citation/CS1".
  12. Script error: No such module "citation/CS1".