xref: /openbmc/linux/crypto/Kconfig (revision 5ee9cd065836e5934710ca35653bce7905add20b)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds#
3685784aaSDan Williams# Generic algorithms support
4685784aaSDan Williams#
5685784aaSDan Williamsconfig XOR_BLOCKS
6685784aaSDan Williams	tristate
7685784aaSDan Williams
8685784aaSDan Williams#
99bc89cd8SDan Williams# async_tx api: hardware offloaded memory transfer/transform support
109bc89cd8SDan Williams#
119bc89cd8SDan Williamssource "crypto/async_tx/Kconfig"
129bc89cd8SDan Williams
139bc89cd8SDan Williams#
141da177e4SLinus Torvalds# Cryptographic API Configuration
151da177e4SLinus Torvalds#
162e290f43SJan Engelhardtmenuconfig CRYPTO
17c3715cb9SSebastian Siewior	tristate "Cryptographic API"
187033b937SEric Biggers	select CRYPTO_LIB_UTILS
191da177e4SLinus Torvalds	help
201da177e4SLinus Torvalds	  This option provides the core Cryptographic API.
211da177e4SLinus Torvalds
22cce9e06dSHerbert Xuif CRYPTO
23cce9e06dSHerbert Xu
24f1f142adSRobert Elliottmenu "Crypto core or helper"
25584fffc8SSebastian Siewior
26ccb778e1SNeil Hormanconfig CRYPTO_FIPS
27ccb778e1SNeil Horman	bool "FIPS 200 compliance"
28f2c89a10SHerbert Xu	depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS
291f696097SAlec Ari	depends on (MODULE_SIG || !MODULES)
30ccb778e1SNeil Horman	help
31d99324c2SGeert Uytterhoeven	  This option enables the fips boot option which is
32d99324c2SGeert Uytterhoeven	  required if you want the system to operate in a FIPS 200
33ccb778e1SNeil Horman	  certification.  You should say no unless you know what
34e84c5480SChuck Ebbert	  this is.
35ccb778e1SNeil Horman
365a44749fSVladis Dronovconfig CRYPTO_FIPS_NAME
375a44749fSVladis Dronov	string "FIPS Module Name"
385a44749fSVladis Dronov	default "Linux Kernel Cryptographic API"
395a44749fSVladis Dronov	depends on CRYPTO_FIPS
405a44749fSVladis Dronov	help
415a44749fSVladis Dronov	  This option sets the FIPS Module name reported by the Crypto API via
425a44749fSVladis Dronov	  the /proc/sys/crypto/fips_name file.
435a44749fSVladis Dronov
445a44749fSVladis Dronovconfig CRYPTO_FIPS_CUSTOM_VERSION
455a44749fSVladis Dronov	bool "Use Custom FIPS Module Version"
465a44749fSVladis Dronov	depends on CRYPTO_FIPS
475a44749fSVladis Dronov	default n
485a44749fSVladis Dronov
495a44749fSVladis Dronovconfig CRYPTO_FIPS_VERSION
505a44749fSVladis Dronov	string "FIPS Module Version"
515a44749fSVladis Dronov	default "(none)"
525a44749fSVladis Dronov	depends on CRYPTO_FIPS_CUSTOM_VERSION
535a44749fSVladis Dronov	help
545a44749fSVladis Dronov	  This option provides the ability to override the FIPS Module Version.
555a44749fSVladis Dronov	  By default the KERNELRELEASE value is used.
565a44749fSVladis Dronov
57cce9e06dSHerbert Xuconfig CRYPTO_ALGAPI
58cce9e06dSHerbert Xu	tristate
596a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
60cce9e06dSHerbert Xu	help
61cce9e06dSHerbert Xu	  This option provides the API for cryptographic algorithms.
62cce9e06dSHerbert Xu
636a0fcbb4SHerbert Xuconfig CRYPTO_ALGAPI2
646a0fcbb4SHerbert Xu	tristate
656a0fcbb4SHerbert Xu
661ae97820SHerbert Xuconfig CRYPTO_AEAD
671ae97820SHerbert Xu	tristate
686a0fcbb4SHerbert Xu	select CRYPTO_AEAD2
691ae97820SHerbert Xu	select CRYPTO_ALGAPI
701ae97820SHerbert Xu
716a0fcbb4SHerbert Xuconfig CRYPTO_AEAD2
726a0fcbb4SHerbert Xu	tristate
736a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
746a0fcbb4SHerbert Xu
756cb8815fSHerbert Xuconfig CRYPTO_SIG
766cb8815fSHerbert Xu	tristate
776cb8815fSHerbert Xu	select CRYPTO_SIG2
786cb8815fSHerbert Xu	select CRYPTO_ALGAPI
796cb8815fSHerbert Xu
806cb8815fSHerbert Xuconfig CRYPTO_SIG2
816cb8815fSHerbert Xu	tristate
826cb8815fSHerbert Xu	select CRYPTO_ALGAPI2
836cb8815fSHerbert Xu
84b95bba5dSEric Biggersconfig CRYPTO_SKCIPHER
855cde0af2SHerbert Xu	tristate
86b95bba5dSEric Biggers	select CRYPTO_SKCIPHER2
875cde0af2SHerbert Xu	select CRYPTO_ALGAPI
886a0fcbb4SHerbert Xu
89b95bba5dSEric Biggersconfig CRYPTO_SKCIPHER2
906a0fcbb4SHerbert Xu	tristate
916a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
925cde0af2SHerbert Xu
93055bcee3SHerbert Xuconfig CRYPTO_HASH
94055bcee3SHerbert Xu	tristate
956a0fcbb4SHerbert Xu	select CRYPTO_HASH2
96055bcee3SHerbert Xu	select CRYPTO_ALGAPI
97055bcee3SHerbert Xu
986a0fcbb4SHerbert Xuconfig CRYPTO_HASH2
996a0fcbb4SHerbert Xu	tristate
1006a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
1016a0fcbb4SHerbert Xu
10217f0f4a4SNeil Hormanconfig CRYPTO_RNG
10317f0f4a4SNeil Horman	tristate
1046a0fcbb4SHerbert Xu	select CRYPTO_RNG2
10517f0f4a4SNeil Horman	select CRYPTO_ALGAPI
10617f0f4a4SNeil Horman
1076a0fcbb4SHerbert Xuconfig CRYPTO_RNG2
1086a0fcbb4SHerbert Xu	tristate
1096a0fcbb4SHerbert Xu	select CRYPTO_ALGAPI2
1106a0fcbb4SHerbert Xu
111401e4238SHerbert Xuconfig CRYPTO_RNG_DEFAULT
112401e4238SHerbert Xu	tristate
113401e4238SHerbert Xu	select CRYPTO_DRBG_MENU
114401e4238SHerbert Xu
1153c339ab8STadeusz Strukconfig CRYPTO_AKCIPHER2
1163c339ab8STadeusz Struk	tristate
1173c339ab8STadeusz Struk	select CRYPTO_ALGAPI2
1183c339ab8STadeusz Struk
1193c339ab8STadeusz Strukconfig CRYPTO_AKCIPHER
1203c339ab8STadeusz Struk	tristate
1213c339ab8STadeusz Struk	select CRYPTO_AKCIPHER2
1223c339ab8STadeusz Struk	select CRYPTO_ALGAPI
1233c339ab8STadeusz Struk
1244e5f2c40SSalvatore Benedettoconfig CRYPTO_KPP2
1254e5f2c40SSalvatore Benedetto	tristate
1264e5f2c40SSalvatore Benedetto	select CRYPTO_ALGAPI2
1274e5f2c40SSalvatore Benedetto
1284e5f2c40SSalvatore Benedettoconfig CRYPTO_KPP
1294e5f2c40SSalvatore Benedetto	tristate
1304e5f2c40SSalvatore Benedetto	select CRYPTO_ALGAPI
1314e5f2c40SSalvatore Benedetto	select CRYPTO_KPP2
1324e5f2c40SSalvatore Benedetto
1332ebda74fSGiovanni Cabidduconfig CRYPTO_ACOMP2
1342ebda74fSGiovanni Cabiddu	tristate
1352ebda74fSGiovanni Cabiddu	select CRYPTO_ALGAPI2
1368cd579d2SBart Van Assche	select SGL_ALLOC
1372ebda74fSGiovanni Cabiddu
1382ebda74fSGiovanni Cabidduconfig CRYPTO_ACOMP
1392ebda74fSGiovanni Cabiddu	tristate
1402ebda74fSGiovanni Cabiddu	select CRYPTO_ALGAPI
1412ebda74fSGiovanni Cabiddu	select CRYPTO_ACOMP2
1422ebda74fSGiovanni Cabiddu
1432b8c19dbSHerbert Xuconfig CRYPTO_MANAGER
1442b8c19dbSHerbert Xu	tristate "Cryptographic algorithm manager"
1456a0fcbb4SHerbert Xu	select CRYPTO_MANAGER2
1462b8c19dbSHerbert Xu	help
1472b8c19dbSHerbert Xu	  Create default cryptographic template instantiations such as
1482b8c19dbSHerbert Xu	  cbc(aes).
1492b8c19dbSHerbert Xu
1506a0fcbb4SHerbert Xuconfig CRYPTO_MANAGER2
1516a0fcbb4SHerbert Xu	def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y)
1522ebda74fSGiovanni Cabiddu	select CRYPTO_ACOMP2
153fb28fabfSHerbert Xu	select CRYPTO_AEAD2
154fb28fabfSHerbert Xu	select CRYPTO_AKCIPHER2
1556cb8815fSHerbert Xu	select CRYPTO_SIG2
156fb28fabfSHerbert Xu	select CRYPTO_HASH2
157fb28fabfSHerbert Xu	select CRYPTO_KPP2
158fb28fabfSHerbert Xu	select CRYPTO_RNG2
159fb28fabfSHerbert Xu	select CRYPTO_SKCIPHER2
1606a0fcbb4SHerbert Xu
161a38f7907SSteffen Klassertconfig CRYPTO_USER
162a38f7907SSteffen Klassert	tristate "Userspace cryptographic algorithm configuration"
1635db017aaSHerbert Xu	depends on NET
164a38f7907SSteffen Klassert	select CRYPTO_MANAGER
165a38f7907SSteffen Klassert	help
166d19978f5SValdis.Kletnieks@vt.edu	  Userspace configuration for cryptographic instantiations such as
167a38f7907SSteffen Klassert	  cbc(aes).
168a38f7907SSteffen Klassert
169326a6346SHerbert Xuconfig CRYPTO_MANAGER_DISABLE_TESTS
170326a6346SHerbert Xu	bool "Disable run-time self tests"
17100ca28a5SHerbert Xu	default y
1720b767f96SAlexander Shishkin	help
173326a6346SHerbert Xu	  Disable run-time self tests that normally take place at
174326a6346SHerbert Xu	  algorithm registration.
1750b767f96SAlexander Shishkin
1765b2706a4SEric Biggersconfig CRYPTO_MANAGER_EXTRA_TESTS
1775b2706a4SEric Biggers	bool "Enable extra run-time crypto self tests"
1786569e309SJason A. Donenfeld	depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS && CRYPTO_MANAGER
1795b2706a4SEric Biggers	help
1805b2706a4SEric Biggers	  Enable extra run-time self tests of registered crypto algorithms,
1815b2706a4SEric Biggers	  including randomized fuzz tests.
1825b2706a4SEric Biggers
1835b2706a4SEric Biggers	  This is intended for developer use only, as these tests take much
1845b2706a4SEric Biggers	  longer to run than the normal self tests.
1855b2706a4SEric Biggers
186584fffc8SSebastian Siewiorconfig CRYPTO_NULL
187584fffc8SSebastian Siewior	tristate "Null algorithms"
188149a3971SHerbert Xu	select CRYPTO_NULL2
189584fffc8SSebastian Siewior	help
190584fffc8SSebastian Siewior	  These are 'Null' algorithms, used by IPsec, which do nothing.
191584fffc8SSebastian Siewior
192149a3971SHerbert Xuconfig CRYPTO_NULL2
193dd43c4e9SHerbert Xu	tristate
194149a3971SHerbert Xu	select CRYPTO_ALGAPI2
195b95bba5dSEric Biggers	select CRYPTO_SKCIPHER2
196149a3971SHerbert Xu	select CRYPTO_HASH2
197149a3971SHerbert Xu
1985068c7a8SSteffen Klassertconfig CRYPTO_PCRYPT
1993b4afaf2SKees Cook	tristate "Parallel crypto engine"
2003b4afaf2SKees Cook	depends on SMP
2015068c7a8SSteffen Klassert	select PADATA
2025068c7a8SSteffen Klassert	select CRYPTO_MANAGER
2035068c7a8SSteffen Klassert	select CRYPTO_AEAD
2045068c7a8SSteffen Klassert	help
2055068c7a8SSteffen Klassert	  This converts an arbitrary crypto algorithm into a parallel
2065068c7a8SSteffen Klassert	  algorithm that executes in kernel threads.
2075068c7a8SSteffen Klassert
208584fffc8SSebastian Siewiorconfig CRYPTO_CRYPTD
209584fffc8SSebastian Siewior	tristate "Software async crypto daemon"
210b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
211b8a28251SLoc Ho	select CRYPTO_HASH
212584fffc8SSebastian Siewior	select CRYPTO_MANAGER
213584fffc8SSebastian Siewior	help
214584fffc8SSebastian Siewior	  This is a generic software asynchronous crypto daemon that
215584fffc8SSebastian Siewior	  converts an arbitrary synchronous software crypto algorithm
216584fffc8SSebastian Siewior	  into an asynchronous algorithm that executes in a kernel thread.
217584fffc8SSebastian Siewior
218584fffc8SSebastian Siewiorconfig CRYPTO_AUTHENC
219584fffc8SSebastian Siewior	tristate "Authenc support"
220584fffc8SSebastian Siewior	select CRYPTO_AEAD
221b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
222584fffc8SSebastian Siewior	select CRYPTO_MANAGER
223584fffc8SSebastian Siewior	select CRYPTO_HASH
224e94c6a7aSHerbert Xu	select CRYPTO_NULL
225584fffc8SSebastian Siewior	help
226584fffc8SSebastian Siewior	  Authenc: Combined mode wrapper for IPsec.
227cf514b2aSRobert Elliott
228cf514b2aSRobert Elliott	  This is required for IPSec ESP (XFRM_ESP).
229584fffc8SSebastian Siewior
230584fffc8SSebastian Siewiorconfig CRYPTO_TEST
231584fffc8SSebastian Siewior	tristate "Testing module"
23200ea27f1SArd Biesheuvel	depends on m || EXPERT
233da7f033dSHerbert Xu	select CRYPTO_MANAGER
234584fffc8SSebastian Siewior	help
235584fffc8SSebastian Siewior	  Quick & dirty crypto test module.
236584fffc8SSebastian Siewior
237266d0516SHerbert Xuconfig CRYPTO_SIMD
238266d0516SHerbert Xu	tristate
239266d0516SHerbert Xu	select CRYPTO_CRYPTD
240266d0516SHerbert Xu
241735d37b5SBaolin Wangconfig CRYPTO_ENGINE
242735d37b5SBaolin Wang	tristate
243735d37b5SBaolin Wang
244f1f142adSRobert Elliottendmenu
245f1f142adSRobert Elliott
246f1f142adSRobert Elliottmenu "Public-key cryptography"
2473d6228a5SVitaly Chikunov
2483d6228a5SVitaly Chikunovconfig CRYPTO_RSA
24905b37465SRobert Elliott	tristate "RSA (Rivest-Shamir-Adleman)"
2503d6228a5SVitaly Chikunov	select CRYPTO_AKCIPHER
2513d6228a5SVitaly Chikunov	select CRYPTO_MANAGER
2523d6228a5SVitaly Chikunov	select MPILIB
2533d6228a5SVitaly Chikunov	select ASN1
2543d6228a5SVitaly Chikunov	help
25505b37465SRobert Elliott	  RSA (Rivest-Shamir-Adleman) public key algorithm (RFC8017)
2563d6228a5SVitaly Chikunov
2573d6228a5SVitaly Chikunovconfig CRYPTO_DH
25805b37465SRobert Elliott	tristate "DH (Diffie-Hellman)"
2593d6228a5SVitaly Chikunov	select CRYPTO_KPP
2603d6228a5SVitaly Chikunov	select MPILIB
2613d6228a5SVitaly Chikunov	help
26205b37465SRobert Elliott	  DH (Diffie-Hellman) key exchange algorithm
2633d6228a5SVitaly Chikunov
2647dce5981SNicolai Stangeconfig CRYPTO_DH_RFC7919_GROUPS
26505b37465SRobert Elliott	bool "RFC 7919 FFDHE groups"
2667dce5981SNicolai Stange	depends on CRYPTO_DH
2671e207964SNicolai Stange	select CRYPTO_RNG_DEFAULT
2687dce5981SNicolai Stange	help
26905b37465SRobert Elliott	  FFDHE (Finite-Field-based Diffie-Hellman Ephemeral) groups
27005b37465SRobert Elliott	  defined in RFC7919.
27105b37465SRobert Elliott
27205b37465SRobert Elliott	  Support these finite-field groups in DH key exchanges:
27305b37465SRobert Elliott	  - ffdhe2048, ffdhe3072, ffdhe4096, ffdhe6144, ffdhe8192
27405b37465SRobert Elliott
27505b37465SRobert Elliott	  If unsure, say N.
2767dce5981SNicolai Stange
2774a2289daSVitaly Chikunovconfig CRYPTO_ECC
2784a2289daSVitaly Chikunov	tristate
27938aa192aSArnd Bergmann	select CRYPTO_RNG_DEFAULT
2804a2289daSVitaly Chikunov
2813d6228a5SVitaly Chikunovconfig CRYPTO_ECDH
28205b37465SRobert Elliott	tristate "ECDH (Elliptic Curve Diffie-Hellman)"
2834a2289daSVitaly Chikunov	select CRYPTO_ECC
2843d6228a5SVitaly Chikunov	select CRYPTO_KPP
2853d6228a5SVitaly Chikunov	help
28605b37465SRobert Elliott	  ECDH (Elliptic Curve Diffie-Hellman) key exchange algorithm
28705b37465SRobert Elliott	  using curves P-192, P-256, and P-384 (FIPS 186)
2883d6228a5SVitaly Chikunov
2894e660291SStefan Bergerconfig CRYPTO_ECDSA
29005b37465SRobert Elliott	tristate "ECDSA (Elliptic Curve Digital Signature Algorithm)"
2914e660291SStefan Berger	select CRYPTO_ECC
2924e660291SStefan Berger	select CRYPTO_AKCIPHER
2934e660291SStefan Berger	select ASN1
2944e660291SStefan Berger	help
29505b37465SRobert Elliott	  ECDSA (Elliptic Curve Digital Signature Algorithm) (FIPS 186,
29605b37465SRobert Elliott	  ISO/IEC 14888-3)
29705b37465SRobert Elliott	  using curves P-192, P-256, and P-384
29805b37465SRobert Elliott
29905b37465SRobert Elliott	  Only signature verification is implemented.
3004e660291SStefan Berger
3010d7a7864SVitaly Chikunovconfig CRYPTO_ECRDSA
30205b37465SRobert Elliott	tristate "EC-RDSA (Elliptic Curve Russian Digital Signature Algorithm)"
3030d7a7864SVitaly Chikunov	select CRYPTO_ECC
3040d7a7864SVitaly Chikunov	select CRYPTO_AKCIPHER
3050d7a7864SVitaly Chikunov	select CRYPTO_STREEBOG
3061036633eSVitaly Chikunov	select OID_REGISTRY
3071036633eSVitaly Chikunov	select ASN1
3080d7a7864SVitaly Chikunov	help
3090d7a7864SVitaly Chikunov	  Elliptic Curve Russian Digital Signature Algorithm (GOST R 34.10-2012,
31005b37465SRobert Elliott	  RFC 7091, ISO/IEC 14888-3)
31105b37465SRobert Elliott
31205b37465SRobert Elliott	  One of the Russian cryptographic standard algorithms (called GOST
31305b37465SRobert Elliott	  algorithms). Only signature verification is implemented.
3140d7a7864SVitaly Chikunov
315ea7ecb66STianjia Zhangconfig CRYPTO_SM2
31605b37465SRobert Elliott	tristate "SM2 (ShangMi 2)"
317d2825fa9SJason A. Donenfeld	select CRYPTO_SM3
318ea7ecb66STianjia Zhang	select CRYPTO_AKCIPHER
319ea7ecb66STianjia Zhang	select CRYPTO_MANAGER
320ea7ecb66STianjia Zhang	select MPILIB
321ea7ecb66STianjia Zhang	select ASN1
322ea7ecb66STianjia Zhang	help
32305b37465SRobert Elliott	  SM2 (ShangMi 2) public key algorithm
32405b37465SRobert Elliott
32505b37465SRobert Elliott	  Published by State Encryption Management Bureau, China,
326ea7ecb66STianjia Zhang	  as specified by OSCCA GM/T 0003.1-2012 -- 0003.5-2012.
327ea7ecb66STianjia Zhang
328ea7ecb66STianjia Zhang	  References:
32905b37465SRobert Elliott	  https://datatracker.ietf.org/doc/draft-shen-sm2-ecdsa/
330ea7ecb66STianjia Zhang	  http://www.oscca.gov.cn/sca/xxgk/2010-12/17/content_1002386.shtml
331ea7ecb66STianjia Zhang	  http://www.gmbz.org.cn/main/bzlb.html
332ea7ecb66STianjia Zhang
333ee772cb6SArd Biesheuvelconfig CRYPTO_CURVE25519
33405b37465SRobert Elliott	tristate "Curve25519"
335ee772cb6SArd Biesheuvel	select CRYPTO_KPP
336ee772cb6SArd Biesheuvel	select CRYPTO_LIB_CURVE25519_GENERIC
33705b37465SRobert Elliott	help
33805b37465SRobert Elliott	  Curve25519 elliptic curve (RFC7748)
339ee772cb6SArd Biesheuvel
340f1f142adSRobert Elliottendmenu
341584fffc8SSebastian Siewior
342f1f142adSRobert Elliottmenu "Block ciphers"
3431da177e4SLinus Torvalds
3441da177e4SLinus Torvaldsconfig CRYPTO_AES
345cf514b2aSRobert Elliott	tristate "AES (Advanced Encryption Standard)"
346cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
3475bb12d78SArd Biesheuvel	select CRYPTO_LIB_AES
3481da177e4SLinus Torvalds	help
349cf514b2aSRobert Elliott	  AES cipher algorithms (Rijndael)(FIPS-197, ISO/IEC 18033-3)
3501da177e4SLinus Torvalds
3511da177e4SLinus Torvalds	  Rijndael appears to be consistently a very good performer in
3521da177e4SLinus Torvalds	  both hardware and software across a wide range of computing
3531da177e4SLinus Torvalds	  environments regardless of its use in feedback or non-feedback
3541da177e4SLinus Torvalds	  modes. Its key setup time is excellent, and its key agility is
3551da177e4SLinus Torvalds	  good. Rijndael's very low memory requirements make it very well
3561da177e4SLinus Torvalds	  suited for restricted-space environments, in which it also
3571da177e4SLinus Torvalds	  demonstrates excellent performance. Rijndael's operations are
3581da177e4SLinus Torvalds	  among the easiest to defend against power and timing attacks.
3591da177e4SLinus Torvalds
3601da177e4SLinus Torvalds	  The AES specifies three key sizes: 128, 192 and 256 bits
3611da177e4SLinus Torvalds
362b5e0b032SArd Biesheuvelconfig CRYPTO_AES_TI
363cf514b2aSRobert Elliott	tristate "AES (Advanced Encryption Standard) (fixed time)"
364b5e0b032SArd Biesheuvel	select CRYPTO_ALGAPI
365e59c1c98SArd Biesheuvel	select CRYPTO_LIB_AES
366b5e0b032SArd Biesheuvel	help
367cf514b2aSRobert Elliott	  AES cipher algorithms (Rijndael)(FIPS-197, ISO/IEC 18033-3)
368cf514b2aSRobert Elliott
369b5e0b032SArd Biesheuvel	  This is a generic implementation of AES that attempts to eliminate
370b5e0b032SArd Biesheuvel	  data dependent latencies as much as possible without affecting
371b5e0b032SArd Biesheuvel	  performance too much. It is intended for use by the generic CCM
372b5e0b032SArd Biesheuvel	  and GCM drivers, and other CTR or CMAC/XCBC based modes that rely
373b5e0b032SArd Biesheuvel	  solely on encryption (although decryption is supported as well, but
374b5e0b032SArd Biesheuvel	  with a more dramatic performance hit)
375b5e0b032SArd Biesheuvel
376b5e0b032SArd Biesheuvel	  Instead of using 16 lookup tables of 1 KB each, (8 for encryption and
377b5e0b032SArd Biesheuvel	  8 for decryption), this implementation only uses just two S-boxes of
378b5e0b032SArd Biesheuvel	  256 bytes each, and attempts to eliminate data dependent latencies by
379b5e0b032SArd Biesheuvel	  prefetching the entire table into the cache at the start of each
3800a6a40c2SEric Biggers	  block. Interrupts are also disabled to avoid races where cachelines
3810a6a40c2SEric Biggers	  are evicted when the CPU is interrupted to do something else.
382b5e0b032SArd Biesheuvel
3831da177e4SLinus Torvaldsconfig CRYPTO_ANUBIS
384cf514b2aSRobert Elliott	tristate "Anubis"
3851674aea5SArd Biesheuvel	depends on CRYPTO_USER_API_ENABLE_OBSOLETE
386cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
3871da177e4SLinus Torvalds	help
388cf514b2aSRobert Elliott	  Anubis cipher algorithm
3891da177e4SLinus Torvalds
3901da177e4SLinus Torvalds	  Anubis is a variable key length cipher which can use keys from
3911da177e4SLinus Torvalds	  128 bits to 320 bits in length.  It was evaluated as a entrant
3921da177e4SLinus Torvalds	  in the NESSIE competition.
3931da177e4SLinus Torvalds
394cf514b2aSRobert Elliott	  See https://web.archive.org/web/20160606112246/http://www.larc.usp.br/~pbarreto/AnubisPage.html
395cf514b2aSRobert Elliott	  for further information.
3961da177e4SLinus Torvalds
397f1f142adSRobert Elliottconfig CRYPTO_ARIA
398cf514b2aSRobert Elliott	tristate "ARIA"
399f1f142adSRobert Elliott	select CRYPTO_ALGAPI
400e2ee95b8SHye-Shik Chang	help
401cf514b2aSRobert Elliott	  ARIA cipher algorithm (RFC5794)
402e2ee95b8SHye-Shik Chang
403f1f142adSRobert Elliott	  ARIA is a standard encryption algorithm of the Republic of Korea.
404f1f142adSRobert Elliott	  The ARIA specifies three key sizes and rounds.
405f1f142adSRobert Elliott	  128-bit: 12 rounds.
406f1f142adSRobert Elliott	  192-bit: 14 rounds.
407f1f142adSRobert Elliott	  256-bit: 16 rounds.
408f1f142adSRobert Elliott
409cf514b2aSRobert Elliott	  See:
410cf514b2aSRobert Elliott	  https://seed.kisa.or.kr/kisa/algorithm/EgovAriaInfo.do
411584fffc8SSebastian Siewior
412584fffc8SSebastian Siewiorconfig CRYPTO_BLOWFISH
413cf514b2aSRobert Elliott	tristate "Blowfish"
414584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
41552ba867cSJussi Kivilinna	select CRYPTO_BLOWFISH_COMMON
416584fffc8SSebastian Siewior	help
417cf514b2aSRobert Elliott	  Blowfish cipher algorithm, by Bruce Schneier
418584fffc8SSebastian Siewior
419584fffc8SSebastian Siewior	  This is a variable key length cipher which can use keys from 32
420584fffc8SSebastian Siewior	  bits to 448 bits in length.  It's fast, simple and specifically
421584fffc8SSebastian Siewior	  designed for use on "large microprocessors".
422e2ee95b8SHye-Shik Chang
423cf514b2aSRobert Elliott	  See https://www.schneier.com/blowfish.html for further information.
424584fffc8SSebastian Siewior
42552ba867cSJussi Kivilinnaconfig CRYPTO_BLOWFISH_COMMON
42652ba867cSJussi Kivilinna	tristate
42752ba867cSJussi Kivilinna	help
42852ba867cSJussi Kivilinna	  Common parts of the Blowfish cipher algorithm shared by the
42952ba867cSJussi Kivilinna	  generic c and the assembler implementations.
43052ba867cSJussi Kivilinna
431584fffc8SSebastian Siewiorconfig CRYPTO_CAMELLIA
432cf514b2aSRobert Elliott	tristate "Camellia"
433584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
434584fffc8SSebastian Siewior	help
435cf514b2aSRobert Elliott	  Camellia cipher algorithms (ISO/IEC 18033-3)
436584fffc8SSebastian Siewior
437584fffc8SSebastian Siewior	  Camellia is a symmetric key block cipher developed jointly
438584fffc8SSebastian Siewior	  at NTT and Mitsubishi Electric Corporation.
439584fffc8SSebastian Siewior
440584fffc8SSebastian Siewior	  The Camellia specifies three key sizes: 128, 192 and 256 bits.
441584fffc8SSebastian Siewior
442cf514b2aSRobert Elliott	  See https://info.isl.ntt.co.jp/crypt/eng/camellia/ for further information.
443584fffc8SSebastian Siewior
444044ab525SJussi Kivilinnaconfig CRYPTO_CAST_COMMON
445044ab525SJussi Kivilinna	tristate
446044ab525SJussi Kivilinna	help
447044ab525SJussi Kivilinna	  Common parts of the CAST cipher algorithms shared by the
448044ab525SJussi Kivilinna	  generic c and the assembler implementations.
449044ab525SJussi Kivilinna
450584fffc8SSebastian Siewiorconfig CRYPTO_CAST5
451cf514b2aSRobert Elliott	tristate "CAST5 (CAST-128)"
452584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
453044ab525SJussi Kivilinna	select CRYPTO_CAST_COMMON
454584fffc8SSebastian Siewior	help
455cf514b2aSRobert Elliott	  CAST5 (CAST-128) cipher algorithm (RFC2144, ISO/IEC 18033-3)
456584fffc8SSebastian Siewior
457584fffc8SSebastian Siewiorconfig CRYPTO_CAST6
458cf514b2aSRobert Elliott	tristate "CAST6 (CAST-256)"
459584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
460044ab525SJussi Kivilinna	select CRYPTO_CAST_COMMON
461584fffc8SSebastian Siewior	help
462cf514b2aSRobert Elliott	  CAST6 (CAST-256) encryption algorithm (RFC2612)
463584fffc8SSebastian Siewior
464584fffc8SSebastian Siewiorconfig CRYPTO_DES
465cf514b2aSRobert Elliott	tristate "DES and Triple DES EDE"
466584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
46704007b0eSArd Biesheuvel	select CRYPTO_LIB_DES
468584fffc8SSebastian Siewior	help
469cf514b2aSRobert Elliott	  DES (Data Encryption Standard)(FIPS 46-2, ISO/IEC 18033-3) and
470cf514b2aSRobert Elliott	  Triple DES EDE (Encrypt/Decrypt/Encrypt) (FIPS 46-3, ISO/IEC 18033-3)
471cf514b2aSRobert Elliott	  cipher algorithms
472584fffc8SSebastian Siewior
473584fffc8SSebastian Siewiorconfig CRYPTO_FCRYPT
474cf514b2aSRobert Elliott	tristate "FCrypt"
475584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
476b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
477584fffc8SSebastian Siewior	help
478cf514b2aSRobert Elliott	  FCrypt algorithm used by RxRPC
479cf514b2aSRobert Elliott
480cf514b2aSRobert Elliott	  See https://ota.polyonymo.us/fcrypt-paper.txt
481584fffc8SSebastian Siewior
482584fffc8SSebastian Siewiorconfig CRYPTO_KHAZAD
483cf514b2aSRobert Elliott	tristate "Khazad"
4841674aea5SArd Biesheuvel	depends on CRYPTO_USER_API_ENABLE_OBSOLETE
485584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
486584fffc8SSebastian Siewior	help
487cf514b2aSRobert Elliott	  Khazad cipher algorithm
488584fffc8SSebastian Siewior
489584fffc8SSebastian Siewior	  Khazad was a finalist in the initial NESSIE competition.  It is
490584fffc8SSebastian Siewior	  an algorithm optimized for 64-bit processors with good performance
491584fffc8SSebastian Siewior	  on 32-bit processors.  Khazad uses an 128 bit key size.
492584fffc8SSebastian Siewior
493cf514b2aSRobert Elliott	  See https://web.archive.org/web/20171011071731/http://www.larc.usp.br/~pbarreto/KhazadPage.html
494cf514b2aSRobert Elliott	  for further information.
495e2ee95b8SHye-Shik Chang
496584fffc8SSebastian Siewiorconfig CRYPTO_SEED
497cf514b2aSRobert Elliott	tristate "SEED"
4981674aea5SArd Biesheuvel	depends on CRYPTO_USER_API_ENABLE_OBSOLETE
499584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
500584fffc8SSebastian Siewior	help
501cf514b2aSRobert Elliott	  SEED cipher algorithm (RFC4269, ISO/IEC 18033-3)
502584fffc8SSebastian Siewior
503584fffc8SSebastian Siewior	  SEED is a 128-bit symmetric key block cipher that has been
504584fffc8SSebastian Siewior	  developed by KISA (Korea Information Security Agency) as a
505584fffc8SSebastian Siewior	  national standard encryption algorithm of the Republic of Korea.
506584fffc8SSebastian Siewior	  It is a 16 round block cipher with the key size of 128 bit.
507584fffc8SSebastian Siewior
508cf514b2aSRobert Elliott	  See https://seed.kisa.or.kr/kisa/algorithm/EgovSeedInfo.do
509cf514b2aSRobert Elliott	  for further information.
510584fffc8SSebastian Siewior
511584fffc8SSebastian Siewiorconfig CRYPTO_SERPENT
512cf514b2aSRobert Elliott	tristate "Serpent"
513584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
514584fffc8SSebastian Siewior	help
515cf514b2aSRobert Elliott	  Serpent cipher algorithm, by Anderson, Biham & Knudsen
516584fffc8SSebastian Siewior
517584fffc8SSebastian Siewior	  Keys are allowed to be from 0 to 256 bits in length, in steps
518784506a1SArd Biesheuvel	  of 8 bits.
519584fffc8SSebastian Siewior
520cf514b2aSRobert Elliott	  See https://www.cl.cam.ac.uk/~rja14/serpent.html for further information.
521584fffc8SSebastian Siewior
522747c8ce4SGilad Ben-Yossefconfig CRYPTO_SM4
523d2825fa9SJason A. Donenfeld	tristate
524d2825fa9SJason A. Donenfeld
525d2825fa9SJason A. Donenfeldconfig CRYPTO_SM4_GENERIC
526cf514b2aSRobert Elliott	tristate "SM4 (ShangMi 4)"
527747c8ce4SGilad Ben-Yossef	select CRYPTO_ALGAPI
528d2825fa9SJason A. Donenfeld	select CRYPTO_SM4
529747c8ce4SGilad Ben-Yossef	help
530cf514b2aSRobert Elliott	  SM4 cipher algorithms (OSCCA GB/T 32907-2016,
531cf514b2aSRobert Elliott	  ISO/IEC 18033-3:2010/Amd 1:2021)
532747c8ce4SGilad Ben-Yossef
533747c8ce4SGilad Ben-Yossef	  SM4 (GBT.32907-2016) is a cryptographic standard issued by the
534747c8ce4SGilad Ben-Yossef	  Organization of State Commercial Administration of China (OSCCA)
535747c8ce4SGilad Ben-Yossef	  as an authorized cryptographic algorithms for the use within China.
536747c8ce4SGilad Ben-Yossef
537747c8ce4SGilad Ben-Yossef	  SMS4 was originally created for use in protecting wireless
538747c8ce4SGilad Ben-Yossef	  networks, and is mandated in the Chinese National Standard for
539747c8ce4SGilad Ben-Yossef	  Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure)
540747c8ce4SGilad Ben-Yossef	  (GB.15629.11-2003).
541747c8ce4SGilad Ben-Yossef
542747c8ce4SGilad Ben-Yossef	  The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and
543747c8ce4SGilad Ben-Yossef	  standardized through TC 260 of the Standardization Administration
544747c8ce4SGilad Ben-Yossef	  of the People's Republic of China (SAC).
545747c8ce4SGilad Ben-Yossef
546747c8ce4SGilad Ben-Yossef	  The input, output, and key of SMS4 are each 128 bits.
547747c8ce4SGilad Ben-Yossef
548cf514b2aSRobert Elliott	  See https://eprint.iacr.org/2008/329.pdf for further information.
549747c8ce4SGilad Ben-Yossef
550747c8ce4SGilad Ben-Yossef	  If unsure, say N.
551747c8ce4SGilad Ben-Yossef
552584fffc8SSebastian Siewiorconfig CRYPTO_TEA
553cf514b2aSRobert Elliott	tristate "TEA, XTEA and XETA"
5541674aea5SArd Biesheuvel	depends on CRYPTO_USER_API_ENABLE_OBSOLETE
555584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
556584fffc8SSebastian Siewior	help
557cf514b2aSRobert Elliott	  TEA (Tiny Encryption Algorithm) cipher algorithms
558584fffc8SSebastian Siewior
559584fffc8SSebastian Siewior	  Tiny Encryption Algorithm is a simple cipher that uses
560584fffc8SSebastian Siewior	  many rounds for security.  It is very fast and uses
561584fffc8SSebastian Siewior	  little memory.
562584fffc8SSebastian Siewior
563584fffc8SSebastian Siewior	  Xtendend Tiny Encryption Algorithm is a modification to
564584fffc8SSebastian Siewior	  the TEA algorithm to address a potential key weakness
565584fffc8SSebastian Siewior	  in the TEA algorithm.
566584fffc8SSebastian Siewior
567584fffc8SSebastian Siewior	  Xtendend Encryption Tiny Algorithm is a mis-implementation
568584fffc8SSebastian Siewior	  of the XTEA algorithm for compatibility purposes.
569584fffc8SSebastian Siewior
570584fffc8SSebastian Siewiorconfig CRYPTO_TWOFISH
571cf514b2aSRobert Elliott	tristate "Twofish"
572584fffc8SSebastian Siewior	select CRYPTO_ALGAPI
573584fffc8SSebastian Siewior	select CRYPTO_TWOFISH_COMMON
574584fffc8SSebastian Siewior	help
575cf514b2aSRobert Elliott	  Twofish cipher algorithm
576584fffc8SSebastian Siewior
577584fffc8SSebastian Siewior	  Twofish was submitted as an AES (Advanced Encryption Standard)
578584fffc8SSebastian Siewior	  candidate cipher by researchers at CounterPane Systems.  It is a
579584fffc8SSebastian Siewior	  16 round block cipher supporting key sizes of 128, 192, and 256
580584fffc8SSebastian Siewior	  bits.
581584fffc8SSebastian Siewior
582cf514b2aSRobert Elliott	  See https://www.schneier.com/twofish.html for further information.
583584fffc8SSebastian Siewior
584584fffc8SSebastian Siewiorconfig CRYPTO_TWOFISH_COMMON
585584fffc8SSebastian Siewior	tristate
586584fffc8SSebastian Siewior	help
587584fffc8SSebastian Siewior	  Common parts of the Twofish cipher algorithm shared by the
588584fffc8SSebastian Siewior	  generic c and the assembler implementations.
589584fffc8SSebastian Siewior
590f1f142adSRobert Elliottendmenu
591f1f142adSRobert Elliott
592f1f142adSRobert Elliottmenu "Length-preserving ciphers and modes"
593f1f142adSRobert Elliott
594f1f142adSRobert Elliottconfig CRYPTO_ADIANTUM
595cf514b2aSRobert Elliott	tristate "Adiantum"
596f1f142adSRobert Elliott	select CRYPTO_CHACHA20
597f1f142adSRobert Elliott	select CRYPTO_LIB_POLY1305_GENERIC
598f1f142adSRobert Elliott	select CRYPTO_NHPOLY1305
599f1f142adSRobert Elliott	select CRYPTO_MANAGER
600f1f142adSRobert Elliott	help
601cf514b2aSRobert Elliott	  Adiantum tweakable, length-preserving encryption mode
602cf514b2aSRobert Elliott
603cf514b2aSRobert Elliott	  Designed for fast and secure disk encryption, especially on
604f1f142adSRobert Elliott	  CPUs without dedicated crypto instructions.  It encrypts
605f1f142adSRobert Elliott	  each sector using the XChaCha12 stream cipher, two passes of
606f1f142adSRobert Elliott	  an ε-almost-∆-universal hash function, and an invocation of
607f1f142adSRobert Elliott	  the AES-256 block cipher on a single 16-byte block.  On CPUs
608f1f142adSRobert Elliott	  without AES instructions, Adiantum is much faster than
609f1f142adSRobert Elliott	  AES-XTS.
610f1f142adSRobert Elliott
611f1f142adSRobert Elliott	  Adiantum's security is provably reducible to that of its
612f1f142adSRobert Elliott	  underlying stream and block ciphers, subject to a security
613f1f142adSRobert Elliott	  bound.  Unlike XTS, Adiantum is a true wide-block encryption
614f1f142adSRobert Elliott	  mode, so it actually provides an even stronger notion of
615f1f142adSRobert Elliott	  security than XTS, subject to the security bound.
616f1f142adSRobert Elliott
617f1f142adSRobert Elliott	  If unsure, say N.
618f1f142adSRobert Elliott
619f1f142adSRobert Elliottconfig CRYPTO_ARC4
620cf514b2aSRobert Elliott	tristate "ARC4 (Alleged Rivest Cipher 4)"
621f1f142adSRobert Elliott	depends on CRYPTO_USER_API_ENABLE_OBSOLETE
622f1f142adSRobert Elliott	select CRYPTO_SKCIPHER
623f1f142adSRobert Elliott	select CRYPTO_LIB_ARC4
624f1f142adSRobert Elliott	help
625cf514b2aSRobert Elliott	  ARC4 cipher algorithm
626f1f142adSRobert Elliott
627f1f142adSRobert Elliott	  ARC4 is a stream cipher using keys ranging from 8 bits to 2048
628f1f142adSRobert Elliott	  bits in length.  This algorithm is required for driver-based
629f1f142adSRobert Elliott	  WEP, but it should not be for other purposes because of the
630f1f142adSRobert Elliott	  weakness of the algorithm.
631f1f142adSRobert Elliott
632f1f142adSRobert Elliottconfig CRYPTO_CHACHA20
633cf514b2aSRobert Elliott	tristate "ChaCha"
634f1f142adSRobert Elliott	select CRYPTO_LIB_CHACHA_GENERIC
635f1f142adSRobert Elliott	select CRYPTO_SKCIPHER
636f1f142adSRobert Elliott	help
637cf514b2aSRobert Elliott	  The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms
638f1f142adSRobert Elliott
639f1f142adSRobert Elliott	  ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J.
640f1f142adSRobert Elliott	  Bernstein and further specified in RFC7539 for use in IETF protocols.
641cf514b2aSRobert Elliott	  This is the portable C implementation of ChaCha20.  See
642cf514b2aSRobert Elliott	  https://cr.yp.to/chacha/chacha-20080128.pdf for further information.
643f1f142adSRobert Elliott
644f1f142adSRobert Elliott	  XChaCha20 is the application of the XSalsa20 construction to ChaCha20
645f1f142adSRobert Elliott	  rather than to Salsa20.  XChaCha20 extends ChaCha20's nonce length
646f1f142adSRobert Elliott	  from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits,
647cf514b2aSRobert Elliott	  while provably retaining ChaCha20's security.  See
648cf514b2aSRobert Elliott	  https://cr.yp.to/snuffle/xsalsa-20081128.pdf for further information.
649f1f142adSRobert Elliott
650f1f142adSRobert Elliott	  XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly
651f1f142adSRobert Elliott	  reduced security margin but increased performance.  It can be needed
652f1f142adSRobert Elliott	  in some performance-sensitive scenarios.
653f1f142adSRobert Elliott
654f1f142adSRobert Elliottconfig CRYPTO_CBC
655cf514b2aSRobert Elliott	tristate "CBC (Cipher Block Chaining)"
656f1f142adSRobert Elliott	select CRYPTO_SKCIPHER
657f1f142adSRobert Elliott	select CRYPTO_MANAGER
658f1f142adSRobert Elliott	help
659cf514b2aSRobert Elliott	  CBC (Cipher Block Chaining) mode (NIST SP800-38A)
660cf514b2aSRobert Elliott
661cf514b2aSRobert Elliott	  This block cipher mode is required for IPSec ESP (XFRM_ESP).
662f1f142adSRobert Elliott
663f1f142adSRobert Elliottconfig CRYPTO_CFB
664cf514b2aSRobert Elliott	tristate "CFB (Cipher Feedback)"
665f1f142adSRobert Elliott	select CRYPTO_SKCIPHER
666f1f142adSRobert Elliott	select CRYPTO_MANAGER
667f1f142adSRobert Elliott	help
668cf514b2aSRobert Elliott	  CFB (Cipher Feedback) mode (NIST SP800-38A)
669cf514b2aSRobert Elliott
670cf514b2aSRobert Elliott	  This block cipher mode is required for TPM2 Cryptography.
671f1f142adSRobert Elliott
672f1f142adSRobert Elliottconfig CRYPTO_CTR
673cf514b2aSRobert Elliott	tristate "CTR (Counter)"
674f1f142adSRobert Elliott	select CRYPTO_SKCIPHER
675f1f142adSRobert Elliott	select CRYPTO_MANAGER
676f1f142adSRobert Elliott	help
677cf514b2aSRobert Elliott	  CTR (Counter) mode (NIST SP800-38A)
678f1f142adSRobert Elliott
679f1f142adSRobert Elliottconfig CRYPTO_CTS
680cf514b2aSRobert Elliott	tristate "CTS (Cipher Text Stealing)"
681f1f142adSRobert Elliott	select CRYPTO_SKCIPHER
682f1f142adSRobert Elliott	select CRYPTO_MANAGER
683f1f142adSRobert Elliott	help
684cf514b2aSRobert Elliott	  CBC-CS3 variant of CTS (Cipher Text Stealing) (NIST
685cf514b2aSRobert Elliott	  Addendum to SP800-38A (October 2010))
686cf514b2aSRobert Elliott
687f1f142adSRobert Elliott	  This mode is required for Kerberos gss mechanism support
688f1f142adSRobert Elliott	  for AES encryption.
689f1f142adSRobert Elliott
690f1f142adSRobert Elliottconfig CRYPTO_ECB
691cf514b2aSRobert Elliott	tristate "ECB (Electronic Codebook)"
692f1f142adSRobert Elliott	select CRYPTO_SKCIPHER
693f1f142adSRobert Elliott	select CRYPTO_MANAGER
694f1f142adSRobert Elliott	help
695cf514b2aSRobert Elliott	  ECB (Electronic Codebook) mode (NIST SP800-38A)
696f1f142adSRobert Elliott
697f1f142adSRobert Elliottconfig CRYPTO_HCTR2
698cf514b2aSRobert Elliott	tristate "HCTR2"
699f1f142adSRobert Elliott	select CRYPTO_XCTR
700f1f142adSRobert Elliott	select CRYPTO_POLYVAL
701f1f142adSRobert Elliott	select CRYPTO_MANAGER
702f1f142adSRobert Elliott	help
703cf514b2aSRobert Elliott	  HCTR2 length-preserving encryption mode
704cf514b2aSRobert Elliott
705cf514b2aSRobert Elliott	  A mode for storage encryption that is efficient on processors with
706cf514b2aSRobert Elliott	  instructions to accelerate AES and carryless multiplication, e.g.
707cf514b2aSRobert Elliott	  x86 processors with AES-NI and CLMUL, and ARM processors with the
708cf514b2aSRobert Elliott	  ARMv8 crypto extensions.
709cf514b2aSRobert Elliott
710cf514b2aSRobert Elliott	  See https://eprint.iacr.org/2021/1441
711f1f142adSRobert Elliott
712f1f142adSRobert Elliottconfig CRYPTO_KEYWRAP
713cf514b2aSRobert Elliott	tristate "KW (AES Key Wrap)"
714f1f142adSRobert Elliott	select CRYPTO_SKCIPHER
715f1f142adSRobert Elliott	select CRYPTO_MANAGER
716f1f142adSRobert Elliott	help
717cf514b2aSRobert Elliott	  KW (AES Key Wrap) authenticated encryption mode (NIST SP800-38F
718cf514b2aSRobert Elliott	  and RFC3394) without padding.
719f1f142adSRobert Elliott
720f1f142adSRobert Elliottconfig CRYPTO_LRW
721cf514b2aSRobert Elliott	tristate "LRW (Liskov Rivest Wagner)"
72261c581a4SArd Biesheuvel	select CRYPTO_LIB_GF128MUL
723f1f142adSRobert Elliott	select CRYPTO_SKCIPHER
724f1f142adSRobert Elliott	select CRYPTO_MANAGER
725f1f142adSRobert Elliott	select CRYPTO_ECB
726f1f142adSRobert Elliott	help
727cf514b2aSRobert Elliott	  LRW (Liskov Rivest Wagner) mode
728cf514b2aSRobert Elliott
729cf514b2aSRobert Elliott	  A tweakable, non malleable, non movable
730f1f142adSRobert Elliott	  narrow block cipher mode for dm-crypt.  Use it with cipher
731f1f142adSRobert Elliott	  specification string aes-lrw-benbi, the key must be 256, 320 or 384.
732f1f142adSRobert Elliott	  The first 128, 192 or 256 bits in the key are used for AES and the
733f1f142adSRobert Elliott	  rest is used to tie each cipher block to its logical position.
734f1f142adSRobert Elliott
735cf514b2aSRobert Elliott	  See https://people.csail.mit.edu/rivest/pubs/LRW02.pdf
736cf514b2aSRobert Elliott
737f1f142adSRobert Elliottconfig CRYPTO_OFB
738cf514b2aSRobert Elliott	tristate "OFB (Output Feedback)"
739f1f142adSRobert Elliott	select CRYPTO_SKCIPHER
740f1f142adSRobert Elliott	select CRYPTO_MANAGER
741f1f142adSRobert Elliott	help
742cf514b2aSRobert Elliott	  OFB (Output Feedback) mode (NIST SP800-38A)
743cf514b2aSRobert Elliott
744cf514b2aSRobert Elliott	  This mode makes a block cipher into a synchronous
745f1f142adSRobert Elliott	  stream cipher. It generates keystream blocks, which are then XORed
746f1f142adSRobert Elliott	  with the plaintext blocks to get the ciphertext. Flipping a bit in the
747f1f142adSRobert Elliott	  ciphertext produces a flipped bit in the plaintext at the same
748f1f142adSRobert Elliott	  location. This property allows many error correcting codes to function
749f1f142adSRobert Elliott	  normally even when applied before encryption.
750f1f142adSRobert Elliott
751f1f142adSRobert Elliottconfig CRYPTO_PCBC
752cf514b2aSRobert Elliott	tristate "PCBC (Propagating Cipher Block Chaining)"
753f1f142adSRobert Elliott	select CRYPTO_SKCIPHER
754f1f142adSRobert Elliott	select CRYPTO_MANAGER
755f1f142adSRobert Elliott	help
756cf514b2aSRobert Elliott	  PCBC (Propagating Cipher Block Chaining) mode
757cf514b2aSRobert Elliott
758cf514b2aSRobert Elliott	  This block cipher mode is required for RxRPC.
759f1f142adSRobert Elliott
760f1f142adSRobert Elliottconfig CRYPTO_XCTR
761f1f142adSRobert Elliott	tristate
762f1f142adSRobert Elliott	select CRYPTO_SKCIPHER
763f1f142adSRobert Elliott	select CRYPTO_MANAGER
764f1f142adSRobert Elliott	help
765cf514b2aSRobert Elliott	  XCTR (XOR Counter) mode for HCTR2
766cf514b2aSRobert Elliott
767cf514b2aSRobert Elliott	  This blockcipher mode is a variant of CTR mode using XORs and little-endian
768cf514b2aSRobert Elliott	  addition rather than big-endian arithmetic.
769cf514b2aSRobert Elliott
770f1f142adSRobert Elliott	  XCTR mode is used to implement HCTR2.
771f1f142adSRobert Elliott
772f1f142adSRobert Elliottconfig CRYPTO_XTS
773cf514b2aSRobert Elliott	tristate "XTS (XOR Encrypt XOR with ciphertext stealing)"
774f1f142adSRobert Elliott	select CRYPTO_SKCIPHER
775f1f142adSRobert Elliott	select CRYPTO_MANAGER
776f1f142adSRobert Elliott	select CRYPTO_ECB
777f1f142adSRobert Elliott	help
778cf514b2aSRobert Elliott	  XTS (XOR Encrypt XOR with ciphertext stealing) mode (NIST SP800-38E
779cf514b2aSRobert Elliott	  and IEEE 1619)
780cf514b2aSRobert Elliott
781cf514b2aSRobert Elliott	  Use with aes-xts-plain, key size 256, 384 or 512 bits. This
782cf514b2aSRobert Elliott	  implementation currently can't handle a sectorsize which is not a
783cf514b2aSRobert Elliott	  multiple of 16 bytes.
784f1f142adSRobert Elliott
785f1f142adSRobert Elliottconfig CRYPTO_NHPOLY1305
786f1f142adSRobert Elliott	tristate
787f1f142adSRobert Elliott	select CRYPTO_HASH
788f1f142adSRobert Elliott	select CRYPTO_LIB_POLY1305_GENERIC
789f1f142adSRobert Elliott
790f1f142adSRobert Elliottendmenu
791f1f142adSRobert Elliott
792f1f142adSRobert Elliottmenu "AEAD (authenticated encryption with associated data) ciphers"
793f1f142adSRobert Elliott
794f1f142adSRobert Elliottconfig CRYPTO_AEGIS128
795e3d2eaddSRobert Elliott	tristate "AEGIS-128"
796f1f142adSRobert Elliott	select CRYPTO_AEAD
797f1f142adSRobert Elliott	select CRYPTO_AES  # for AES S-box tables
798f1f142adSRobert Elliott	help
799e3d2eaddSRobert Elliott	  AEGIS-128 AEAD algorithm
800f1f142adSRobert Elliott
801f1f142adSRobert Elliottconfig CRYPTO_AEGIS128_SIMD
802e3d2eaddSRobert Elliott	bool "AEGIS-128 (arm NEON, arm64 NEON)"
803f1f142adSRobert Elliott	depends on CRYPTO_AEGIS128 && ((ARM || ARM64) && KERNEL_MODE_NEON)
804f1f142adSRobert Elliott	default y
805e3d2eaddSRobert Elliott	help
806e3d2eaddSRobert Elliott	  AEGIS-128 AEAD algorithm
807e3d2eaddSRobert Elliott
808e3d2eaddSRobert Elliott	  Architecture: arm or arm64 using:
809e3d2eaddSRobert Elliott	  - NEON (Advanced SIMD) extension
810f1f142adSRobert Elliott
811f1f142adSRobert Elliottconfig CRYPTO_CHACHA20POLY1305
812e3d2eaddSRobert Elliott	tristate "ChaCha20-Poly1305"
813f1f142adSRobert Elliott	select CRYPTO_CHACHA20
814f1f142adSRobert Elliott	select CRYPTO_POLY1305
815f1f142adSRobert Elliott	select CRYPTO_AEAD
816f1f142adSRobert Elliott	select CRYPTO_MANAGER
817f1f142adSRobert Elliott	help
818e3d2eaddSRobert Elliott	  ChaCha20 stream cipher and Poly1305 authenticator combined
819e3d2eaddSRobert Elliott	  mode (RFC8439)
820f1f142adSRobert Elliott
821f1f142adSRobert Elliottconfig CRYPTO_CCM
822cf514b2aSRobert Elliott	tristate "CCM (Counter with Cipher Block Chaining-MAC)"
823f1f142adSRobert Elliott	select CRYPTO_CTR
824f1f142adSRobert Elliott	select CRYPTO_HASH
825f1f142adSRobert Elliott	select CRYPTO_AEAD
826f1f142adSRobert Elliott	select CRYPTO_MANAGER
827f1f142adSRobert Elliott	help
828e3d2eaddSRobert Elliott	  CCM (Counter with Cipher Block Chaining-Message Authentication Code)
829e3d2eaddSRobert Elliott	  authenticated encryption mode (NIST SP800-38C)
830f1f142adSRobert Elliott
831f1f142adSRobert Elliottconfig CRYPTO_GCM
832cf514b2aSRobert Elliott	tristate "GCM (Galois/Counter Mode) and GMAC (GCM MAC)"
833f1f142adSRobert Elliott	select CRYPTO_CTR
834f1f142adSRobert Elliott	select CRYPTO_AEAD
835f1f142adSRobert Elliott	select CRYPTO_GHASH
836f1f142adSRobert Elliott	select CRYPTO_NULL
837f1f142adSRobert Elliott	select CRYPTO_MANAGER
838f1f142adSRobert Elliott	help
839e3d2eaddSRobert Elliott	  GCM (Galois/Counter Mode) authenticated encryption mode and GMAC
840e3d2eaddSRobert Elliott	  (GCM Message Authentication Code) (NIST SP800-38D)
841e3d2eaddSRobert Elliott
842e3d2eaddSRobert Elliott	  This is required for IPSec ESP (XFRM_ESP).
843f1f142adSRobert Elliott
844ba51738fSHerbert Xuconfig CRYPTO_GENIV
845ba51738fSHerbert Xu	tristate
846ba51738fSHerbert Xu	select CRYPTO_AEAD
847ba51738fSHerbert Xu	select CRYPTO_NULL
848ba51738fSHerbert Xu	select CRYPTO_MANAGER
849ba51738fSHerbert Xu	select CRYPTO_RNG_DEFAULT
850ba51738fSHerbert Xu
851f1f142adSRobert Elliottconfig CRYPTO_SEQIV
852f1f142adSRobert Elliott	tristate "Sequence Number IV Generator"
853ba51738fSHerbert Xu	select CRYPTO_GENIV
854f1f142adSRobert Elliott	help
855e3d2eaddSRobert Elliott	  Sequence Number IV generator
856e3d2eaddSRobert Elliott
857f1f142adSRobert Elliott	  This IV generator generates an IV based on a sequence number by
858e3d2eaddSRobert Elliott	  xoring it with a salt.  This algorithm is mainly useful for CTR.
859e3d2eaddSRobert Elliott
860e3d2eaddSRobert Elliott	  This is required for IPsec ESP (XFRM_ESP).
861f1f142adSRobert Elliott
862f1f142adSRobert Elliottconfig CRYPTO_ECHAINIV
863f1f142adSRobert Elliott	tristate "Encrypted Chain IV Generator"
864ba51738fSHerbert Xu	select CRYPTO_GENIV
865f1f142adSRobert Elliott	help
866e3d2eaddSRobert Elliott	  Encrypted Chain IV generator
867e3d2eaddSRobert Elliott
868f1f142adSRobert Elliott	  This IV generator generates an IV based on the encryption of
869f1f142adSRobert Elliott	  a sequence number xored with a salt.  This is the default
870f1f142adSRobert Elliott	  algorithm for CBC.
871f1f142adSRobert Elliott
872f1f142adSRobert Elliottconfig CRYPTO_ESSIV
873e3d2eaddSRobert Elliott	tristate "Encrypted Salt-Sector IV Generator"
874f1f142adSRobert Elliott	select CRYPTO_AUTHENC
875f1f142adSRobert Elliott	help
876e3d2eaddSRobert Elliott	  Encrypted Salt-Sector IV generator
877e3d2eaddSRobert Elliott
878e3d2eaddSRobert Elliott	  This IV generator is used in some cases by fscrypt and/or
879f1f142adSRobert Elliott	  dm-crypt. It uses the hash of the block encryption key as the
880f1f142adSRobert Elliott	  symmetric key for a block encryption pass applied to the input
881f1f142adSRobert Elliott	  IV, making low entropy IV sources more suitable for block
882f1f142adSRobert Elliott	  encryption.
883f1f142adSRobert Elliott
884f1f142adSRobert Elliott	  This driver implements a crypto API template that can be
885f1f142adSRobert Elliott	  instantiated either as an skcipher or as an AEAD (depending on the
886f1f142adSRobert Elliott	  type of the first template argument), and which defers encryption
887f1f142adSRobert Elliott	  and decryption requests to the encapsulated cipher after applying
888f1f142adSRobert Elliott	  ESSIV to the input IV. Note that in the AEAD case, it is assumed
889f1f142adSRobert Elliott	  that the keys are presented in the same format used by the authenc
890f1f142adSRobert Elliott	  template, and that the IV appears at the end of the authenticated
891f1f142adSRobert Elliott	  associated data (AAD) region (which is how dm-crypt uses it.)
892f1f142adSRobert Elliott
893f1f142adSRobert Elliott	  Note that the use of ESSIV is not recommended for new deployments,
894f1f142adSRobert Elliott	  and so this only needs to be enabled when interoperability with
895f1f142adSRobert Elliott	  existing encrypted volumes of filesystems is required, or when
896f1f142adSRobert Elliott	  building for a particular system that requires it (e.g., when
897f1f142adSRobert Elliott	  the SoC in question has accelerated CBC but not XTS, making CBC
898f1f142adSRobert Elliott	  combined with ESSIV the only feasible mode for h/w accelerated
899f1f142adSRobert Elliott	  block encryption)
900f1f142adSRobert Elliott
901f1f142adSRobert Elliottendmenu
902f1f142adSRobert Elliott
903f1f142adSRobert Elliottmenu "Hashes, digests, and MACs"
904f1f142adSRobert Elliott
905f1f142adSRobert Elliottconfig CRYPTO_BLAKE2B
9063f342a23SRobert Elliott	tristate "BLAKE2b"
907f1f142adSRobert Elliott	select CRYPTO_HASH
908f1f142adSRobert Elliott	help
9093f342a23SRobert Elliott	  BLAKE2b cryptographic hash function (RFC 7693)
9103f342a23SRobert Elliott
9113f342a23SRobert Elliott	  BLAKE2b is optimized for 64-bit platforms and can produce digests
9123f342a23SRobert Elliott	  of any size between 1 and 64 bytes. The keyed hash is also implemented.
913f1f142adSRobert Elliott
914f1f142adSRobert Elliott	  This module provides the following algorithms:
915f1f142adSRobert Elliott	  - blake2b-160
916f1f142adSRobert Elliott	  - blake2b-256
917f1f142adSRobert Elliott	  - blake2b-384
918f1f142adSRobert Elliott	  - blake2b-512
919f1f142adSRobert Elliott
9203f342a23SRobert Elliott	  Used by the btrfs filesystem.
9213f342a23SRobert Elliott
9223f342a23SRobert Elliott	  See https://blake2.net for further information.
9233f342a23SRobert Elliott
924f1f142adSRobert Elliottconfig CRYPTO_CMAC
9253f342a23SRobert Elliott	tristate "CMAC (Cipher-based MAC)"
926f1f142adSRobert Elliott	select CRYPTO_HASH
927f1f142adSRobert Elliott	select CRYPTO_MANAGER
928f1f142adSRobert Elliott	help
9293f342a23SRobert Elliott	  CMAC (Cipher-based Message Authentication Code) authentication
9303f342a23SRobert Elliott	  mode (NIST SP800-38B and IETF RFC4493)
931f1f142adSRobert Elliott
932f1f142adSRobert Elliottconfig CRYPTO_GHASH
9333f342a23SRobert Elliott	tristate "GHASH"
934f1f142adSRobert Elliott	select CRYPTO_HASH
93561c581a4SArd Biesheuvel	select CRYPTO_LIB_GF128MUL
936f1f142adSRobert Elliott	help
9373f342a23SRobert Elliott	  GCM GHASH function (NIST SP800-38D)
938f1f142adSRobert Elliott
939f1f142adSRobert Elliottconfig CRYPTO_HMAC
9403f342a23SRobert Elliott	tristate "HMAC (Keyed-Hash MAC)"
941f1f142adSRobert Elliott	select CRYPTO_HASH
942f1f142adSRobert Elliott	select CRYPTO_MANAGER
943f1f142adSRobert Elliott	help
9443f342a23SRobert Elliott	  HMAC (Keyed-Hash Message Authentication Code) (FIPS 198 and
9453f342a23SRobert Elliott	  RFC2104)
9463f342a23SRobert Elliott
9473f342a23SRobert Elliott	  This is required for IPsec AH (XFRM_AH) and IPsec ESP (XFRM_ESP).
948f1f142adSRobert Elliott
949f1f142adSRobert Elliottconfig CRYPTO_MD4
9503f342a23SRobert Elliott	tristate "MD4"
951f1f142adSRobert Elliott	select CRYPTO_HASH
952f1f142adSRobert Elliott	help
9533f342a23SRobert Elliott	  MD4 message digest algorithm (RFC1320)
954f1f142adSRobert Elliott
955f1f142adSRobert Elliottconfig CRYPTO_MD5
9563f342a23SRobert Elliott	tristate "MD5"
957f1f142adSRobert Elliott	select CRYPTO_HASH
958f1f142adSRobert Elliott	help
9593f342a23SRobert Elliott	  MD5 message digest algorithm (RFC1321)
960f1f142adSRobert Elliott
961f1f142adSRobert Elliottconfig CRYPTO_MICHAEL_MIC
9623f342a23SRobert Elliott	tristate "Michael MIC"
963f1f142adSRobert Elliott	select CRYPTO_HASH
964f1f142adSRobert Elliott	help
9653f342a23SRobert Elliott	  Michael MIC (Message Integrity Code) (IEEE 802.11i)
9663f342a23SRobert Elliott
9673f342a23SRobert Elliott	  Defined by the IEEE 802.11i TKIP (Temporal Key Integrity Protocol),
9683f342a23SRobert Elliott	  known as WPA (Wif-Fi Protected Access).
9693f342a23SRobert Elliott
9703f342a23SRobert Elliott	  This algorithm is required for TKIP, but it should not be used for
9713f342a23SRobert Elliott	  other purposes because of the weakness of the algorithm.
972f1f142adSRobert Elliott
973f1f142adSRobert Elliottconfig CRYPTO_POLYVAL
974f1f142adSRobert Elliott	tristate
975f1f142adSRobert Elliott	select CRYPTO_HASH
97661c581a4SArd Biesheuvel	select CRYPTO_LIB_GF128MUL
977f1f142adSRobert Elliott	help
9783f342a23SRobert Elliott	  POLYVAL hash function for HCTR2
9793f342a23SRobert Elliott
9803f342a23SRobert Elliott	  This is used in HCTR2.  It is not a general-purpose
981f1f142adSRobert Elliott	  cryptographic hash function.
982f1f142adSRobert Elliott
983f1f142adSRobert Elliottconfig CRYPTO_POLY1305
9843f342a23SRobert Elliott	tristate "Poly1305"
985f1f142adSRobert Elliott	select CRYPTO_HASH
986f1f142adSRobert Elliott	select CRYPTO_LIB_POLY1305_GENERIC
987f1f142adSRobert Elliott	help
9883f342a23SRobert Elliott	  Poly1305 authenticator algorithm (RFC7539)
989f1f142adSRobert Elliott
990f1f142adSRobert Elliott	  Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein.
991f1f142adSRobert Elliott	  It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use
992f1f142adSRobert Elliott	  in IETF protocols. This is the portable C implementation of Poly1305.
993f1f142adSRobert Elliott
994f1f142adSRobert Elliottconfig CRYPTO_RMD160
9953f342a23SRobert Elliott	tristate "RIPEMD-160"
996f1f142adSRobert Elliott	select CRYPTO_HASH
997f1f142adSRobert Elliott	help
9983f342a23SRobert Elliott	  RIPEMD-160 hash function (ISO/IEC 10118-3)
999f1f142adSRobert Elliott
1000f1f142adSRobert Elliott	  RIPEMD-160 is a 160-bit cryptographic hash function. It is intended
1001f1f142adSRobert Elliott	  to be used as a secure replacement for the 128-bit hash functions
1002f1f142adSRobert Elliott	  MD4, MD5 and its predecessor RIPEMD
1003f1f142adSRobert Elliott	  (not to be confused with RIPEMD-128).
1004f1f142adSRobert Elliott
10053f342a23SRobert Elliott	  Its speed is comparable to SHA-1 and there are no known attacks
1006f1f142adSRobert Elliott	  against RIPEMD-160.
1007f1f142adSRobert Elliott
1008f1f142adSRobert Elliott	  Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel.
10093f342a23SRobert Elliott	  See https://homes.esat.kuleuven.be/~bosselae/ripemd160.html
10103f342a23SRobert Elliott	  for further information.
1011f1f142adSRobert Elliott
1012f1f142adSRobert Elliottconfig CRYPTO_SHA1
10133f342a23SRobert Elliott	tristate "SHA-1"
1014f1f142adSRobert Elliott	select CRYPTO_HASH
1015f1f142adSRobert Elliott	select CRYPTO_LIB_SHA1
1016f1f142adSRobert Elliott	help
10173f342a23SRobert Elliott	  SHA-1 secure hash algorithm (FIPS 180, ISO/IEC 10118-3)
1018f1f142adSRobert Elliott
1019f1f142adSRobert Elliottconfig CRYPTO_SHA256
10203f342a23SRobert Elliott	tristate "SHA-224 and SHA-256"
1021f1f142adSRobert Elliott	select CRYPTO_HASH
1022f1f142adSRobert Elliott	select CRYPTO_LIB_SHA256
1023f1f142adSRobert Elliott	help
10243f342a23SRobert Elliott	  SHA-224 and SHA-256 secure hash algorithms (FIPS 180, ISO/IEC 10118-3)
1025f1f142adSRobert Elliott
10263f342a23SRobert Elliott	  This is required for IPsec AH (XFRM_AH) and IPsec ESP (XFRM_ESP).
10273f342a23SRobert Elliott	  Used by the btrfs filesystem, Ceph, NFS, and SMB.
1028f1f142adSRobert Elliott
1029f1f142adSRobert Elliottconfig CRYPTO_SHA512
10303f342a23SRobert Elliott	tristate "SHA-384 and SHA-512"
1031f1f142adSRobert Elliott	select CRYPTO_HASH
1032f1f142adSRobert Elliott	help
10333f342a23SRobert Elliott	  SHA-384 and SHA-512 secure hash algorithms (FIPS 180, ISO/IEC 10118-3)
1034f1f142adSRobert Elliott
1035f1f142adSRobert Elliottconfig CRYPTO_SHA3
10363f342a23SRobert Elliott	tristate "SHA-3"
1037f1f142adSRobert Elliott	select CRYPTO_HASH
1038f1f142adSRobert Elliott	help
10393f342a23SRobert Elliott	  SHA-3 secure hash algorithms (FIPS 202, ISO/IEC 10118-3)
1040f1f142adSRobert Elliott
1041f1f142adSRobert Elliottconfig CRYPTO_SM3
1042f1f142adSRobert Elliott	tristate
1043f1f142adSRobert Elliott
1044f1f142adSRobert Elliottconfig CRYPTO_SM3_GENERIC
10453f342a23SRobert Elliott	tristate "SM3 (ShangMi 3)"
1046f1f142adSRobert Elliott	select CRYPTO_HASH
1047f1f142adSRobert Elliott	select CRYPTO_SM3
1048f1f142adSRobert Elliott	help
10493f342a23SRobert Elliott	  SM3 (ShangMi 3) secure hash function (OSCCA GM/T 0004-2012, ISO/IEC 10118-3)
10503f342a23SRobert Elliott
10513f342a23SRobert Elliott	  This is part of the Chinese Commercial Cryptography suite.
1052f1f142adSRobert Elliott
1053f1f142adSRobert Elliott	  References:
1054f1f142adSRobert Elliott	  http://www.oscca.gov.cn/UpFile/20101222141857786.pdf
1055f1f142adSRobert Elliott	  https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash
1056f1f142adSRobert Elliott
1057f1f142adSRobert Elliottconfig CRYPTO_STREEBOG
10583f342a23SRobert Elliott	tristate "Streebog"
1059f1f142adSRobert Elliott	select CRYPTO_HASH
1060f1f142adSRobert Elliott	help
10613f342a23SRobert Elliott	  Streebog Hash Function (GOST R 34.11-2012, RFC 6986, ISO/IEC 10118-3)
10623f342a23SRobert Elliott
10633f342a23SRobert Elliott	  This is one of the Russian cryptographic standard algorithms (called
10643f342a23SRobert Elliott	  GOST algorithms). This setting enables two hash algorithms with
10653f342a23SRobert Elliott	  256 and 512 bits output.
1066f1f142adSRobert Elliott
1067f1f142adSRobert Elliott	  References:
1068f1f142adSRobert Elliott	  https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf
1069f1f142adSRobert Elliott	  https://tools.ietf.org/html/rfc6986
1070f1f142adSRobert Elliott
1071f1f142adSRobert Elliottconfig CRYPTO_VMAC
10723f342a23SRobert Elliott	tristate "VMAC"
1073f1f142adSRobert Elliott	select CRYPTO_HASH
1074f1f142adSRobert Elliott	select CRYPTO_MANAGER
1075f1f142adSRobert Elliott	help
1076f1f142adSRobert Elliott	  VMAC is a message authentication algorithm designed for
1077f1f142adSRobert Elliott	  very high speed on 64-bit architectures.
1078f1f142adSRobert Elliott
10793f342a23SRobert Elliott	  See https://fastcrypto.org/vmac for further information.
1080f1f142adSRobert Elliott
1081f1f142adSRobert Elliottconfig CRYPTO_WP512
10823f342a23SRobert Elliott	tristate "Whirlpool"
1083f1f142adSRobert Elliott	select CRYPTO_HASH
1084f1f142adSRobert Elliott	help
10853f342a23SRobert Elliott	  Whirlpool hash function (ISO/IEC 10118-3)
10863f342a23SRobert Elliott
10873f342a23SRobert Elliott	  512, 384 and 256-bit hashes.
1088f1f142adSRobert Elliott
1089f1f142adSRobert Elliott	  Whirlpool-512 is part of the NESSIE cryptographic primitives.
1090f1f142adSRobert Elliott
10913f342a23SRobert Elliott	  See https://web.archive.org/web/20171129084214/http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html
10923f342a23SRobert Elliott	  for further information.
1093f1f142adSRobert Elliott
1094f1f142adSRobert Elliottconfig CRYPTO_XCBC
10953f342a23SRobert Elliott	tristate "XCBC-MAC (Extended Cipher Block Chaining MAC)"
1096f1f142adSRobert Elliott	select CRYPTO_HASH
1097f1f142adSRobert Elliott	select CRYPTO_MANAGER
1098f1f142adSRobert Elliott	help
10993f342a23SRobert Elliott	  XCBC-MAC (Extended Cipher Block Chaining Message Authentication
11003f342a23SRobert Elliott	  Code) (RFC3566)
1101f1f142adSRobert Elliott
1102f1f142adSRobert Elliottconfig CRYPTO_XXHASH
11033f342a23SRobert Elliott	tristate "xxHash"
1104f1f142adSRobert Elliott	select CRYPTO_HASH
1105f1f142adSRobert Elliott	select XXHASH
1106f1f142adSRobert Elliott	help
11073f342a23SRobert Elliott	  xxHash non-cryptographic hash algorithm
11083f342a23SRobert Elliott
11093f342a23SRobert Elliott	  Extremely fast, working at speeds close to RAM limits.
11103f342a23SRobert Elliott
11113f342a23SRobert Elliott	  Used by the btrfs filesystem.
1112f1f142adSRobert Elliott
1113f1f142adSRobert Elliottendmenu
1114f1f142adSRobert Elliott
1115f1f142adSRobert Elliottmenu "CRCs (cyclic redundancy checks)"
1116f1f142adSRobert Elliott
1117f1f142adSRobert Elliottconfig CRYPTO_CRC32C
1118ec84348dSRobert Elliott	tristate "CRC32c"
1119f1f142adSRobert Elliott	select CRYPTO_HASH
1120f1f142adSRobert Elliott	select CRC32
1121f1f142adSRobert Elliott	help
1122ec84348dSRobert Elliott	  CRC32c CRC algorithm with the iSCSI polynomial (RFC 3385 and RFC 3720)
1123ec84348dSRobert Elliott
1124ec84348dSRobert Elliott	  A 32-bit CRC (cyclic redundancy check) with a polynomial defined
1125ec84348dSRobert Elliott	  by G. Castagnoli, S. Braeuer and M. Herrman in "Optimization of Cyclic
1126ec84348dSRobert Elliott	  Redundancy-Check Codes with 24 and 32 Parity Bits", IEEE Transactions
1127ec84348dSRobert Elliott	  on Communications, Vol. 41, No. 6, June 1993, selected for use with
1128ec84348dSRobert Elliott	  iSCSI.
1129ec84348dSRobert Elliott
1130ec84348dSRobert Elliott	  Used by btrfs, ext4, jbd2, NVMeoF/TCP, and iSCSI.
1131f1f142adSRobert Elliott
1132f1f142adSRobert Elliottconfig CRYPTO_CRC32
1133ec84348dSRobert Elliott	tristate "CRC32"
1134f1f142adSRobert Elliott	select CRYPTO_HASH
1135f1f142adSRobert Elliott	select CRC32
1136f1f142adSRobert Elliott	help
1137ec84348dSRobert Elliott	  CRC32 CRC algorithm (IEEE 802.3)
1138ec84348dSRobert Elliott
1139ec84348dSRobert Elliott	  Used by RoCEv2 and f2fs.
1140f1f142adSRobert Elliott
1141f1f142adSRobert Elliottconfig CRYPTO_CRCT10DIF
1142ec84348dSRobert Elliott	tristate "CRCT10DIF"
1143f1f142adSRobert Elliott	select CRYPTO_HASH
1144f1f142adSRobert Elliott	help
1145ec84348dSRobert Elliott	  CRC16 CRC algorithm used for the T10 (SCSI) Data Integrity Field (DIF)
1146ec84348dSRobert Elliott
1147ec84348dSRobert Elliott	  CRC algorithm used by the SCSI Block Commands standard.
1148f1f142adSRobert Elliott
1149f1f142adSRobert Elliottconfig CRYPTO_CRC64_ROCKSOFT
1150ec84348dSRobert Elliott	tristate "CRC64 based on Rocksoft Model algorithm"
1151f1f142adSRobert Elliott	depends on CRC64
1152f1f142adSRobert Elliott	select CRYPTO_HASH
1153ec84348dSRobert Elliott	help
1154ec84348dSRobert Elliott	  CRC64 CRC algorithm based on the Rocksoft Model CRC Algorithm
1155ec84348dSRobert Elliott
1156ec84348dSRobert Elliott	  Used by the NVMe implementation of T10 DIF (BLK_DEV_INTEGRITY)
1157ec84348dSRobert Elliott
1158ec84348dSRobert Elliott	  See https://zlib.net/crc_v3.txt
1159f1f142adSRobert Elliott
1160f1f142adSRobert Elliottendmenu
1161f1f142adSRobert Elliott
1162f1f142adSRobert Elliottmenu "Compression"
1163584fffc8SSebastian Siewior
11641da177e4SLinus Torvaldsconfig CRYPTO_DEFLATE
1165a9a98d49SRobert Elliott	tristate "Deflate"
1166cce9e06dSHerbert Xu	select CRYPTO_ALGAPI
1167f6ded09dSGiovanni Cabiddu	select CRYPTO_ACOMP2
11681da177e4SLinus Torvalds	select ZLIB_INFLATE
11691da177e4SLinus Torvalds	select ZLIB_DEFLATE
11701da177e4SLinus Torvalds	help
1171a9a98d49SRobert Elliott	  Deflate compression algorithm (RFC1951)
11721da177e4SLinus Torvalds
1173a9a98d49SRobert Elliott	  Used by IPSec with the IPCOMP protocol (RFC3173, RFC2394)
11741da177e4SLinus Torvalds
11750b77abb3SZoltan Sogorconfig CRYPTO_LZO
1176a9a98d49SRobert Elliott	tristate "LZO"
11770b77abb3SZoltan Sogor	select CRYPTO_ALGAPI
1178ac9d2c4bSGiovanni Cabiddu	select CRYPTO_ACOMP2
11790b77abb3SZoltan Sogor	select LZO_COMPRESS
11800b77abb3SZoltan Sogor	select LZO_DECOMPRESS
11810b77abb3SZoltan Sogor	help
1182a9a98d49SRobert Elliott	  LZO compression algorithm
1183a9a98d49SRobert Elliott
1184a9a98d49SRobert Elliott	  See https://www.oberhumer.com/opensource/lzo/ for further information.
11850b77abb3SZoltan Sogor
118635a1fc18SSeth Jenningsconfig CRYPTO_842
1187a9a98d49SRobert Elliott	tristate "842"
11882062c5b6SDan Streetman	select CRYPTO_ALGAPI
11896a8de3aeSGiovanni Cabiddu	select CRYPTO_ACOMP2
11902062c5b6SDan Streetman	select 842_COMPRESS
11912062c5b6SDan Streetman	select 842_DECOMPRESS
119235a1fc18SSeth Jennings	help
1193a9a98d49SRobert Elliott	  842 compression algorithm by IBM
1194a9a98d49SRobert Elliott
1195a9a98d49SRobert Elliott	  See https://github.com/plauth/lib842 for further information.
119635a1fc18SSeth Jennings
11970ea8530dSChanho Minconfig CRYPTO_LZ4
1198a9a98d49SRobert Elliott	tristate "LZ4"
11990ea8530dSChanho Min	select CRYPTO_ALGAPI
12008cd9330eSGiovanni Cabiddu	select CRYPTO_ACOMP2
12010ea8530dSChanho Min	select LZ4_COMPRESS
12020ea8530dSChanho Min	select LZ4_DECOMPRESS
12030ea8530dSChanho Min	help
1204a9a98d49SRobert Elliott	  LZ4 compression algorithm
1205a9a98d49SRobert Elliott
1206a9a98d49SRobert Elliott	  See https://github.com/lz4/lz4 for further information.
12070ea8530dSChanho Min
12080ea8530dSChanho Minconfig CRYPTO_LZ4HC
1209a9a98d49SRobert Elliott	tristate "LZ4HC"
12100ea8530dSChanho Min	select CRYPTO_ALGAPI
121191d53d96SGiovanni Cabiddu	select CRYPTO_ACOMP2
12120ea8530dSChanho Min	select LZ4HC_COMPRESS
12130ea8530dSChanho Min	select LZ4_DECOMPRESS
12140ea8530dSChanho Min	help
1215a9a98d49SRobert Elliott	  LZ4 high compression mode algorithm
1216a9a98d49SRobert Elliott
1217a9a98d49SRobert Elliott	  See https://github.com/lz4/lz4 for further information.
12180ea8530dSChanho Min
1219d28fc3dbSNick Terrellconfig CRYPTO_ZSTD
1220a9a98d49SRobert Elliott	tristate "Zstd"
1221d28fc3dbSNick Terrell	select CRYPTO_ALGAPI
1222d28fc3dbSNick Terrell	select CRYPTO_ACOMP2
1223d28fc3dbSNick Terrell	select ZSTD_COMPRESS
1224d28fc3dbSNick Terrell	select ZSTD_DECOMPRESS
1225d28fc3dbSNick Terrell	help
1226a9a98d49SRobert Elliott	  zstd compression algorithm
1227a9a98d49SRobert Elliott
1228a9a98d49SRobert Elliott	  See https://github.com/facebook/zstd for further information.
1229d28fc3dbSNick Terrell
1230f1f142adSRobert Elliottendmenu
1231f1f142adSRobert Elliott
1232f1f142adSRobert Elliottmenu "Random number generation"
123317f0f4a4SNeil Horman
123417f0f4a4SNeil Hormanconfig CRYPTO_ANSI_CPRNG
1235a9a98d49SRobert Elliott	tristate "ANSI PRNG (Pseudo Random Number Generator)"
123617f0f4a4SNeil Horman	select CRYPTO_AES
123717f0f4a4SNeil Horman	select CRYPTO_RNG
123817f0f4a4SNeil Horman	help
1239a9a98d49SRobert Elliott	  Pseudo RNG (random number generator) (ANSI X9.31 Appendix A.2.4)
1240a9a98d49SRobert Elliott
1241a9a98d49SRobert Elliott	  This uses the AES cipher algorithm.
1242a9a98d49SRobert Elliott
1243a9a98d49SRobert Elliott	  Note that this option must be enabled if CRYPTO_FIPS is selected
124417f0f4a4SNeil Horman
1245f2c89a10SHerbert Xumenuconfig CRYPTO_DRBG_MENU
1246a9a98d49SRobert Elliott	tristate "NIST SP800-90A DRBG (Deterministic Random Bit Generator)"
1247419090c6SStephan Mueller	help
1248a9a98d49SRobert Elliott	  DRBG (Deterministic Random Bit Generator) (NIST SP800-90A)
1249a9a98d49SRobert Elliott
1250a9a98d49SRobert Elliott	  In the following submenu, one or more of the DRBG types must be selected.
1251419090c6SStephan Mueller
1252f2c89a10SHerbert Xuif CRYPTO_DRBG_MENU
1253419090c6SStephan Mueller
1254419090c6SStephan Muellerconfig CRYPTO_DRBG_HMAC
1255401e4238SHerbert Xu	bool
1256419090c6SStephan Mueller	default y
1257419090c6SStephan Mueller	select CRYPTO_HMAC
12585261cdf4SStephan Mueller	select CRYPTO_SHA512
1259419090c6SStephan Mueller
1260419090c6SStephan Muellerconfig CRYPTO_DRBG_HASH
1261a9a98d49SRobert Elliott	bool "Hash_DRBG"
1262826775bbSHerbert Xu	select CRYPTO_SHA256
1263419090c6SStephan Mueller	help
1264a9a98d49SRobert Elliott	  Hash_DRBG variant as defined in NIST SP800-90A.
1265a9a98d49SRobert Elliott
1266a9a98d49SRobert Elliott	  This uses the SHA-1, SHA-256, SHA-384, or SHA-512 hash algorithms.
1267419090c6SStephan Mueller
1268419090c6SStephan Muellerconfig CRYPTO_DRBG_CTR
1269a9a98d49SRobert Elliott	bool "CTR_DRBG"
1270419090c6SStephan Mueller	select CRYPTO_AES
1271d6fc1a45SCorentin Labbe	select CRYPTO_CTR
1272419090c6SStephan Mueller	help
1273a9a98d49SRobert Elliott	  CTR_DRBG variant as defined in NIST SP800-90A.
1274a9a98d49SRobert Elliott
1275a9a98d49SRobert Elliott	  This uses the AES cipher algorithm with the counter block mode.
1276419090c6SStephan Mueller
1277f2c89a10SHerbert Xuconfig CRYPTO_DRBG
1278f2c89a10SHerbert Xu	tristate
1279401e4238SHerbert Xu	default CRYPTO_DRBG_MENU
1280f2c89a10SHerbert Xu	select CRYPTO_RNG
1281bb5530e4SStephan Mueller	select CRYPTO_JITTERENTROPY
1282f2c89a10SHerbert Xu
1283f2c89a10SHerbert Xuendif	# if CRYPTO_DRBG_MENU
1284419090c6SStephan Mueller
1285bb5530e4SStephan Muellerconfig CRYPTO_JITTERENTROPY
1286a9a98d49SRobert Elliott	tristate "CPU Jitter Non-Deterministic RNG (Random Number Generator)"
12872f313e02SArnd Bergmann	select CRYPTO_RNG
1288bb897c55SStephan Müller	select CRYPTO_SHA3
1289bb5530e4SStephan Mueller	help
1290a9a98d49SRobert Elliott	  CPU Jitter RNG (Random Number Generator) from the Jitterentropy library
1291a9a98d49SRobert Elliott
1292a9a98d49SRobert Elliott	  A non-physical non-deterministic ("true") RNG (e.g., an entropy source
1293a9a98d49SRobert Elliott	  compliant with NIST SP800-90B) intended to provide a seed to a
1294*f104e562SRandy Dunlap	  deterministic RNG (e.g., per NIST SP800-90C).
1295a9a98d49SRobert Elliott	  This RNG does not perform any cryptographic whitening of the generated
1296*f104e562SRandy Dunlap	  random numbers.
1297a9a98d49SRobert Elliott
1298*f104e562SRandy Dunlap	  See https://www.chronox.de/jent/
1299bb5530e4SStephan Mueller
130069f1c387SStephan Müllerconfig CRYPTO_JITTERENTROPY_TESTINTERFACE
130169f1c387SStephan Müller	bool "CPU Jitter RNG Test Interface"
130269f1c387SStephan Müller	depends on CRYPTO_JITTERENTROPY
130369f1c387SStephan Müller	help
130469f1c387SStephan Müller	  The test interface allows a privileged process to capture
130569f1c387SStephan Müller	  the raw unconditioned high resolution time stamp noise that
130669f1c387SStephan Müller	  is collected by the Jitter RNG for statistical analysis. As
130769f1c387SStephan Müller	  this data is used at the same time to generate random bits,
130869f1c387SStephan Müller	  the Jitter RNG operates in an insecure mode as long as the
130969f1c387SStephan Müller	  recording is enabled. This interface therefore is only
131069f1c387SStephan Müller	  intended for testing purposes and is not suitable for
131169f1c387SStephan Müller	  production systems.
131269f1c387SStephan Müller
131369f1c387SStephan Müller	  The raw noise data can be obtained using the jent_raw_hires
131469f1c387SStephan Müller	  debugfs file. Using the option
131569f1c387SStephan Müller	  jitterentropy_testing.boot_raw_hires_test=1 the raw noise of
131669f1c387SStephan Müller	  the first 1000 entropy events since boot can be sampled.
131769f1c387SStephan Müller
131869f1c387SStephan Müller	  If unsure, select N.
131969f1c387SStephan Müller
1320026a733eSStephan Müllerconfig CRYPTO_KDF800108_CTR
1321026a733eSStephan Müller	tristate
1322a88592ccSHerbert Xu	select CRYPTO_HMAC
1323304b4aceSStephan Müller	select CRYPTO_SHA256
1324026a733eSStephan Müller
1325f1f142adSRobert Elliottendmenu
13269bc51715SRobert Elliottmenu "Userspace interface"
1327f1f142adSRobert Elliott
132803c8efc1SHerbert Xuconfig CRYPTO_USER_API
132903c8efc1SHerbert Xu	tristate
133003c8efc1SHerbert Xu
1331fe869cdbSHerbert Xuconfig CRYPTO_USER_API_HASH
13329bc51715SRobert Elliott	tristate "Hash algorithms"
13337451708fSHerbert Xu	depends on NET
1334fe869cdbSHerbert Xu	select CRYPTO_HASH
1335fe869cdbSHerbert Xu	select CRYPTO_USER_API
1336fe869cdbSHerbert Xu	help
13379bc51715SRobert Elliott	  Enable the userspace interface for hash algorithms.
13389bc51715SRobert Elliott
13399bc51715SRobert Elliott	  See Documentation/crypto/userspace-if.rst and
13409bc51715SRobert Elliott	  https://www.chronox.de/libkcapi/html/index.html
1341fe869cdbSHerbert Xu
13428ff59090SHerbert Xuconfig CRYPTO_USER_API_SKCIPHER
13439bc51715SRobert Elliott	tristate "Symmetric key cipher algorithms"
13447451708fSHerbert Xu	depends on NET
1345b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
13468ff59090SHerbert Xu	select CRYPTO_USER_API
13478ff59090SHerbert Xu	help
13489bc51715SRobert Elliott	  Enable the userspace interface for symmetric key cipher algorithms.
13499bc51715SRobert Elliott
13509bc51715SRobert Elliott	  See Documentation/crypto/userspace-if.rst and
13519bc51715SRobert Elliott	  https://www.chronox.de/libkcapi/html/index.html
13528ff59090SHerbert Xu
13532f375538SStephan Muellerconfig CRYPTO_USER_API_RNG
13549bc51715SRobert Elliott	tristate "RNG (random number generator) algorithms"
13552f375538SStephan Mueller	depends on NET
13562f375538SStephan Mueller	select CRYPTO_RNG
13572f375538SStephan Mueller	select CRYPTO_USER_API
13582f375538SStephan Mueller	help
13599bc51715SRobert Elliott	  Enable the userspace interface for RNG (random number generator)
13609bc51715SRobert Elliott	  algorithms.
13619bc51715SRobert Elliott
13629bc51715SRobert Elliott	  See Documentation/crypto/userspace-if.rst and
13639bc51715SRobert Elliott	  https://www.chronox.de/libkcapi/html/index.html
13642f375538SStephan Mueller
136577ebdabeSElena Petrovaconfig CRYPTO_USER_API_RNG_CAVP
136677ebdabeSElena Petrova	bool "Enable CAVP testing of DRBG"
136777ebdabeSElena Petrova	depends on CRYPTO_USER_API_RNG && CRYPTO_DRBG
136877ebdabeSElena Petrova	help
13699bc51715SRobert Elliott	  Enable extra APIs in the userspace interface for NIST CAVP
13709bc51715SRobert Elliott	  (Cryptographic Algorithm Validation Program) testing:
13719bc51715SRobert Elliott	  - resetting DRBG entropy
13729bc51715SRobert Elliott	  - providing Additional Data
13739bc51715SRobert Elliott
137477ebdabeSElena Petrova	  This should only be enabled for CAVP testing. You should say
137577ebdabeSElena Petrova	  no unless you know what this is.
137677ebdabeSElena Petrova
1377b64a2d95SHerbert Xuconfig CRYPTO_USER_API_AEAD
13789bc51715SRobert Elliott	tristate "AEAD cipher algorithms"
1379b64a2d95SHerbert Xu	depends on NET
1380b64a2d95SHerbert Xu	select CRYPTO_AEAD
1381b95bba5dSEric Biggers	select CRYPTO_SKCIPHER
138272548b09SStephan Mueller	select CRYPTO_NULL
1383b64a2d95SHerbert Xu	select CRYPTO_USER_API
1384b64a2d95SHerbert Xu	help
13859bc51715SRobert Elliott	  Enable the userspace interface for AEAD cipher algorithms.
13869bc51715SRobert Elliott
13879bc51715SRobert Elliott	  See Documentation/crypto/userspace-if.rst and
13889bc51715SRobert Elliott	  https://www.chronox.de/libkcapi/html/index.html
1389b64a2d95SHerbert Xu
13909ace6771SArd Biesheuvelconfig CRYPTO_USER_API_ENABLE_OBSOLETE
13919bc51715SRobert Elliott	bool "Obsolete cryptographic algorithms"
13929ace6771SArd Biesheuvel	depends on CRYPTO_USER_API
13939ace6771SArd Biesheuvel	default y
13949ace6771SArd Biesheuvel	help
13959ace6771SArd Biesheuvel	  Allow obsolete cryptographic algorithms to be selected that have
13969ace6771SArd Biesheuvel	  already been phased out from internal use by the kernel, and are
13979ace6771SArd Biesheuvel	  only useful for userspace clients that still rely on them.
13989ace6771SArd Biesheuvel
1399cac5818cSCorentin Labbeconfig CRYPTO_STATS
14009bc51715SRobert Elliott	bool "Crypto usage statistics"
1401a6a31385SCorentin Labbe	depends on CRYPTO_USER
1402cac5818cSCorentin Labbe	help
14039bc51715SRobert Elliott	  Enable the gathering of crypto stats.
14049bc51715SRobert Elliott
140566dd59b7SEric Biggers	  Enabling this option reduces the performance of the crypto API.  It
140666dd59b7SEric Biggers	  should only be enabled when there is actually a use case for it.
140766dd59b7SEric Biggers
14089bc51715SRobert Elliott	  This collects data sizes, numbers of requests, and numbers
14099bc51715SRobert Elliott	  of errors processed by:
14109bc51715SRobert Elliott	  - AEAD ciphers (encrypt, decrypt)
14119bc51715SRobert Elliott	  - asymmetric key ciphers (encrypt, decrypt, verify, sign)
14129bc51715SRobert Elliott	  - symmetric key ciphers (encrypt, decrypt)
14139bc51715SRobert Elliott	  - compression algorithms (compress, decompress)
14149bc51715SRobert Elliott	  - hash algorithms (hash)
14159bc51715SRobert Elliott	  - key-agreement protocol primitives (setsecret, generate
14169bc51715SRobert Elliott	    public key, compute shared secret)
14179bc51715SRobert Elliott	  - RNG (generate, seed)
1418cac5818cSCorentin Labbe
1419f1f142adSRobert Elliottendmenu
1420f1f142adSRobert Elliott
1421ee08997fSDmitry Kasatkinconfig CRYPTO_HASH_INFO
1422ee08997fSDmitry Kasatkin	bool
1423ee08997fSDmitry Kasatkin
142427bc50fcSLinus Torvaldsif !KMSAN # avoid false positives from assembly
14254a329fecSRobert Elliottif ARM
14264a329fecSRobert Elliottsource "arch/arm/crypto/Kconfig"
14274a329fecSRobert Elliottendif
14284a329fecSRobert Elliottif ARM64
14294a329fecSRobert Elliottsource "arch/arm64/crypto/Kconfig"
14304a329fecSRobert Elliottendif
14312f164822SMin Zhouif LOONGARCH
14322f164822SMin Zhousource "arch/loongarch/crypto/Kconfig"
14332f164822SMin Zhouendif
1434e45f710bSRobert Elliottif MIPS
1435e45f710bSRobert Elliottsource "arch/mips/crypto/Kconfig"
1436e45f710bSRobert Elliottendif
14376a490a4eSRobert Elliottif PPC
14386a490a4eSRobert Elliottsource "arch/powerpc/crypto/Kconfig"
14396a490a4eSRobert Elliottendif
1440c9d24c97SRobert Elliottif S390
1441c9d24c97SRobert Elliottsource "arch/s390/crypto/Kconfig"
1442c9d24c97SRobert Elliottendif
14430e9f9ea6SRobert Elliottif SPARC
14440e9f9ea6SRobert Elliottsource "arch/sparc/crypto/Kconfig"
14450e9f9ea6SRobert Elliottendif
144628a936efSRobert Elliottif X86
144728a936efSRobert Elliottsource "arch/x86/crypto/Kconfig"
144828a936efSRobert Elliottendif
144927bc50fcSLinus Torvaldsendif
1450e45f710bSRobert Elliott
14511da177e4SLinus Torvaldssource "drivers/crypto/Kconfig"
14528636a1f9SMasahiro Yamadasource "crypto/asymmetric_keys/Kconfig"
14538636a1f9SMasahiro Yamadasource "certs/Kconfig"
14541da177e4SLinus Torvalds
1455cce9e06dSHerbert Xuendif	# if CRYPTO
1456