World Library  
Flag as Inappropriate
Email this Article

Crypto API (Linux)

Article Id: WHEBN0002555833
Reproduction Date:

Title: Crypto API (Linux)  
Author: World Heritage Encyclopedia
Language: English
Subject: Device mapper, AES instruction set, Cryptoloop, Dm-crypt, Zswap
Collection: Application Programming Interfaces, Cryptographic Software, Linux Kernel Features, Linux Security Software
Publisher: World Heritage Encyclopedia
Publication
Date:
 

Crypto API (Linux)

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 OpenSSL or GnuTLS, to take advantage of such acceleration, they must interface with the kernel.

AF_ALG
A netlink-based interface that adds an AF_ALG interface family;[2] it was merged into version 2.6.38 of the Linux kernel mainline.[3][4] There is a plugin to OpenSSL to support AF_ALG,[5] which has been submitted for merging.[6]
cryptodev
The OpenBSD Cryptographic Framework /dev/crypto interface of OpenBSD was ported to Linux,[7][8][9] but never merged.

See also

References

  1. ^ "Kernel development".  
  2. ^ Edge, Jake (October 20, 2010). "A netlink-based user-space crypto API".  
  3. ^ Linux_2_6_38 changes
  4. ^ 03c8efc fe869cd 8ff5909
  5. ^ "OpenSSL - AF_ALG". 2011-10-22. Retrieved 29 December 2011. 
  6. ^ "#2554: Patch: AF_ALG dynamic engine for linux >= 2.6.38".  
  7. ^ Ludvig, Michal. "CryptoDev for Linux". Retrieved 29 December 2011. 
  8. ^ Mavrogiannopoulos, Nikos. "cryptodev-linux". Retrieved 12 January 2012. 
  9. ^ Edge, Jake (August 25, 2010). "An API for user-space access to kernel cryptography".  


This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and USA.gov, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for USA.gov and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
 
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
 
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.
 


Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.