Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # |
Dan Williams | 685784a | 2007-07-09 11:56:42 -0700 | [diff] [blame] | 3 | # Generic algorithms support |
| 4 | # |
| 5 | config XOR_BLOCKS |
| 6 | tristate |
| 7 | |
| 8 | # |
Dan Williams | 9bc89cd | 2007-01-02 11:10:44 -0700 | [diff] [blame] | 9 | # async_tx api: hardware offloaded memory transfer/transform support |
| 10 | # |
| 11 | source "crypto/async_tx/Kconfig" |
| 12 | |
| 13 | # |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | # Cryptographic API Configuration |
| 15 | # |
Jan Engelhardt | 2e290f4 | 2007-05-18 15:11:01 +1000 | [diff] [blame] | 16 | menuconfig CRYPTO |
Sebastian Siewior | c3715cb9 | 2008-03-30 16:36:09 +0800 | [diff] [blame] | 17 | tristate "Cryptographic API" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | help |
| 19 | This option provides the core Cryptographic API. |
| 20 | |
Herbert Xu | cce9e06 | 2006-08-21 21:08:13 +1000 | [diff] [blame] | 21 | if CRYPTO |
| 22 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 23 | comment "Crypto core or helper" |
| 24 | |
Neil Horman | ccb778e | 2008-08-05 14:13:08 +0800 | [diff] [blame] | 25 | config CRYPTO_FIPS |
| 26 | bool "FIPS 200 compliance" |
Herbert Xu | f2c89a1 | 2014-07-04 22:15:08 +0800 | [diff] [blame] | 27 | depends on (CRYPTO_ANSI_CPRNG || CRYPTO_DRBG) && !CRYPTO_MANAGER_DISABLE_TESTS |
Alec Ari | 1f69609 | 2016-10-04 19:34:30 -0300 | [diff] [blame] | 28 | depends on (MODULE_SIG || !MODULES) |
Neil Horman | ccb778e | 2008-08-05 14:13:08 +0800 | [diff] [blame] | 29 | help |
Geert Uytterhoeven | d99324c | 2019-03-20 11:41:03 +0100 | [diff] [blame] | 30 | This option enables the fips boot option which is |
| 31 | required if you want the system to operate in a FIPS 200 |
Neil Horman | ccb778e | 2008-08-05 14:13:08 +0800 | [diff] [blame] | 32 | certification. You should say no unless you know what |
Chuck Ebbert | e84c548 | 2010-09-03 19:17:49 +0800 | [diff] [blame] | 33 | this is. |
Neil Horman | ccb778e | 2008-08-05 14:13:08 +0800 | [diff] [blame] | 34 | |
Herbert Xu | cce9e06 | 2006-08-21 21:08:13 +1000 | [diff] [blame] | 35 | config CRYPTO_ALGAPI |
| 36 | tristate |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 37 | select CRYPTO_ALGAPI2 |
Herbert Xu | cce9e06 | 2006-08-21 21:08:13 +1000 | [diff] [blame] | 38 | help |
| 39 | This option provides the API for cryptographic algorithms. |
| 40 | |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 41 | config CRYPTO_ALGAPI2 |
| 42 | tristate |
| 43 | |
Herbert Xu | 1ae9782 | 2007-08-30 15:36:14 +0800 | [diff] [blame] | 44 | config CRYPTO_AEAD |
| 45 | tristate |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 46 | select CRYPTO_AEAD2 |
Herbert Xu | 1ae9782 | 2007-08-30 15:36:14 +0800 | [diff] [blame] | 47 | select CRYPTO_ALGAPI |
| 48 | |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 49 | config CRYPTO_AEAD2 |
| 50 | tristate |
| 51 | select CRYPTO_ALGAPI2 |
Herbert Xu | 149a397 | 2015-08-13 17:28:58 +0800 | [diff] [blame] | 52 | select CRYPTO_NULL2 |
| 53 | select CRYPTO_RNG2 |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 54 | |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 55 | config CRYPTO_SKCIPHER |
Herbert Xu | 5cde0af | 2006-08-22 00:07:53 +1000 | [diff] [blame] | 56 | tristate |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 57 | select CRYPTO_SKCIPHER2 |
Herbert Xu | 5cde0af | 2006-08-22 00:07:53 +1000 | [diff] [blame] | 58 | select CRYPTO_ALGAPI |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 59 | |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 60 | config CRYPTO_SKCIPHER2 |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 61 | tristate |
| 62 | select CRYPTO_ALGAPI2 |
| 63 | select CRYPTO_RNG2 |
Herbert Xu | 5cde0af | 2006-08-22 00:07:53 +1000 | [diff] [blame] | 64 | |
Herbert Xu | 055bcee | 2006-08-19 22:24:23 +1000 | [diff] [blame] | 65 | config CRYPTO_HASH |
| 66 | tristate |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 67 | select CRYPTO_HASH2 |
Herbert Xu | 055bcee | 2006-08-19 22:24:23 +1000 | [diff] [blame] | 68 | select CRYPTO_ALGAPI |
| 69 | |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 70 | config CRYPTO_HASH2 |
| 71 | tristate |
| 72 | select CRYPTO_ALGAPI2 |
| 73 | |
Neil Horman | 17f0f4a | 2008-08-14 22:15:52 +1000 | [diff] [blame] | 74 | config CRYPTO_RNG |
| 75 | tristate |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 76 | select CRYPTO_RNG2 |
Neil Horman | 17f0f4a | 2008-08-14 22:15:52 +1000 | [diff] [blame] | 77 | select CRYPTO_ALGAPI |
| 78 | |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 79 | config CRYPTO_RNG2 |
| 80 | tristate |
| 81 | select CRYPTO_ALGAPI2 |
| 82 | |
Herbert Xu | 401e423 | 2015-06-03 14:49:31 +0800 | [diff] [blame] | 83 | config CRYPTO_RNG_DEFAULT |
| 84 | tristate |
| 85 | select CRYPTO_DRBG_MENU |
| 86 | |
Tadeusz Struk | 3c339ab | 2015-06-16 10:30:55 -0700 | [diff] [blame] | 87 | config CRYPTO_AKCIPHER2 |
| 88 | tristate |
| 89 | select CRYPTO_ALGAPI2 |
| 90 | |
| 91 | config CRYPTO_AKCIPHER |
| 92 | tristate |
| 93 | select CRYPTO_AKCIPHER2 |
| 94 | select CRYPTO_ALGAPI |
| 95 | |
Salvatore Benedetto | 4e5f2c4 | 2016-06-22 17:49:13 +0100 | [diff] [blame] | 96 | config CRYPTO_KPP2 |
| 97 | tristate |
| 98 | select CRYPTO_ALGAPI2 |
| 99 | |
| 100 | config CRYPTO_KPP |
| 101 | tristate |
| 102 | select CRYPTO_ALGAPI |
| 103 | select CRYPTO_KPP2 |
| 104 | |
Giovanni Cabiddu | 2ebda74 | 2016-10-21 13:19:47 +0100 | [diff] [blame] | 105 | config CRYPTO_ACOMP2 |
| 106 | tristate |
| 107 | select CRYPTO_ALGAPI2 |
Bart Van Assche | 8cd579d | 2018-01-05 08:26:47 -0800 | [diff] [blame] | 108 | select SGL_ALLOC |
Giovanni Cabiddu | 2ebda74 | 2016-10-21 13:19:47 +0100 | [diff] [blame] | 109 | |
| 110 | config CRYPTO_ACOMP |
| 111 | tristate |
| 112 | select CRYPTO_ALGAPI |
| 113 | select CRYPTO_ACOMP2 |
| 114 | |
Herbert Xu | 2b8c19d | 2006-09-21 11:31:44 +1000 | [diff] [blame] | 115 | config CRYPTO_MANAGER |
| 116 | tristate "Cryptographic algorithm manager" |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 117 | select CRYPTO_MANAGER2 |
Herbert Xu | 2b8c19d | 2006-09-21 11:31:44 +1000 | [diff] [blame] | 118 | help |
| 119 | Create default cryptographic template instantiations such as |
| 120 | cbc(aes). |
| 121 | |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 122 | config CRYPTO_MANAGER2 |
| 123 | def_tristate CRYPTO_MANAGER || (CRYPTO_MANAGER!=n && CRYPTO_ALGAPI=y) |
| 124 | select CRYPTO_AEAD2 |
| 125 | select CRYPTO_HASH2 |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 126 | select CRYPTO_SKCIPHER2 |
Tadeusz Struk | 946cc46 | 2015-06-16 10:31:06 -0700 | [diff] [blame] | 127 | select CRYPTO_AKCIPHER2 |
Salvatore Benedetto | 4e5f2c4 | 2016-06-22 17:49:13 +0100 | [diff] [blame] | 128 | select CRYPTO_KPP2 |
Giovanni Cabiddu | 2ebda74 | 2016-10-21 13:19:47 +0100 | [diff] [blame] | 129 | select CRYPTO_ACOMP2 |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 130 | |
Steffen Klassert | a38f790 | 2011-09-27 07:23:50 +0200 | [diff] [blame] | 131 | config CRYPTO_USER |
| 132 | tristate "Userspace cryptographic algorithm configuration" |
Herbert Xu | 5db017a | 2011-11-01 12:12:43 +1100 | [diff] [blame] | 133 | depends on NET |
Steffen Klassert | a38f790 | 2011-09-27 07:23:50 +0200 | [diff] [blame] | 134 | select CRYPTO_MANAGER |
| 135 | help |
Valdis.Kletnieks@vt.edu | d19978f | 2011-11-09 01:29:20 -0500 | [diff] [blame] | 136 | Userspace configuration for cryptographic instantiations such as |
Steffen Klassert | a38f790 | 2011-09-27 07:23:50 +0200 | [diff] [blame] | 137 | cbc(aes). |
| 138 | |
Eric Biggers | 929d34c | 2019-05-20 09:48:29 -0700 | [diff] [blame] | 139 | if CRYPTO_MANAGER2 |
| 140 | |
Herbert Xu | 326a634 | 2010-08-06 09:40:28 +0800 | [diff] [blame] | 141 | config CRYPTO_MANAGER_DISABLE_TESTS |
| 142 | bool "Disable run-time self tests" |
Herbert Xu | 00ca28a | 2010-08-06 10:34:00 +0800 | [diff] [blame] | 143 | default y |
Alexander Shishkin | 0b767f9 | 2010-06-03 20:53:43 +1000 | [diff] [blame] | 144 | help |
Herbert Xu | 326a634 | 2010-08-06 09:40:28 +0800 | [diff] [blame] | 145 | Disable run-time self tests that normally take place at |
| 146 | algorithm registration. |
Alexander Shishkin | 0b767f9 | 2010-06-03 20:53:43 +1000 | [diff] [blame] | 147 | |
Eric Biggers | 5b2706a | 2019-01-31 23:51:44 -0800 | [diff] [blame] | 148 | config CRYPTO_MANAGER_EXTRA_TESTS |
| 149 | bool "Enable extra run-time crypto self tests" |
| 150 | depends on DEBUG_KERNEL && !CRYPTO_MANAGER_DISABLE_TESTS |
| 151 | help |
| 152 | Enable extra run-time self tests of registered crypto algorithms, |
| 153 | including randomized fuzz tests. |
| 154 | |
| 155 | This is intended for developer use only, as these tests take much |
| 156 | longer to run than the normal self tests. |
| 157 | |
Eric Biggers | 929d34c | 2019-05-20 09:48:29 -0700 | [diff] [blame] | 158 | endif # if CRYPTO_MANAGER2 |
| 159 | |
Rik Snel | c494e07 | 2006-11-29 18:59:44 +1100 | [diff] [blame] | 160 | config CRYPTO_GF128MUL |
Eric Biggers | e590e13 | 2019-05-20 09:53:43 -0700 | [diff] [blame] | 161 | tristate |
Rik Snel | c494e07 | 2006-11-29 18:59:44 +1100 | [diff] [blame] | 162 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 163 | config CRYPTO_NULL |
| 164 | tristate "Null algorithms" |
Herbert Xu | 149a397 | 2015-08-13 17:28:58 +0800 | [diff] [blame] | 165 | select CRYPTO_NULL2 |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 166 | help |
| 167 | These are 'Null' algorithms, used by IPsec, which do nothing. |
| 168 | |
Herbert Xu | 149a397 | 2015-08-13 17:28:58 +0800 | [diff] [blame] | 169 | config CRYPTO_NULL2 |
Herbert Xu | dd43c4e | 2015-08-17 20:39:40 +0800 | [diff] [blame] | 170 | tristate |
Herbert Xu | 149a397 | 2015-08-13 17:28:58 +0800 | [diff] [blame] | 171 | select CRYPTO_ALGAPI2 |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 172 | select CRYPTO_SKCIPHER2 |
Herbert Xu | 149a397 | 2015-08-13 17:28:58 +0800 | [diff] [blame] | 173 | select CRYPTO_HASH2 |
| 174 | |
Steffen Klassert | 5068c7a | 2010-01-07 15:57:19 +1100 | [diff] [blame] | 175 | config CRYPTO_PCRYPT |
Kees Cook | 3b4afaf | 2012-10-02 11:16:49 -0700 | [diff] [blame] | 176 | tristate "Parallel crypto engine" |
| 177 | depends on SMP |
Steffen Klassert | 5068c7a | 2010-01-07 15:57:19 +1100 | [diff] [blame] | 178 | select PADATA |
| 179 | select CRYPTO_MANAGER |
| 180 | select CRYPTO_AEAD |
| 181 | help |
| 182 | This converts an arbitrary crypto algorithm into a parallel |
| 183 | algorithm that executes in kernel threads. |
| 184 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 185 | config CRYPTO_CRYPTD |
| 186 | tristate "Software async crypto daemon" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 187 | select CRYPTO_SKCIPHER |
Loc Ho | b8a2825 | 2008-05-14 21:23:00 +0800 | [diff] [blame] | 188 | select CRYPTO_HASH |
Herbert Xu | 4351840 | 2006-10-16 21:28:58 +1000 | [diff] [blame] | 189 | select CRYPTO_MANAGER |
Herbert Xu | db131ef | 2006-09-21 11:44:08 +1000 | [diff] [blame] | 190 | help |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 191 | This is a generic software asynchronous crypto daemon that |
| 192 | converts an arbitrary synchronous software crypto algorithm |
| 193 | into an asynchronous algorithm that executes in a kernel thread. |
| 194 | |
| 195 | config CRYPTO_AUTHENC |
| 196 | tristate "Authenc support" |
| 197 | select CRYPTO_AEAD |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 198 | select CRYPTO_SKCIPHER |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 199 | select CRYPTO_MANAGER |
| 200 | select CRYPTO_HASH |
Herbert Xu | e94c6a7 | 2015-08-04 21:23:14 +0800 | [diff] [blame] | 201 | select CRYPTO_NULL |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 202 | help |
| 203 | Authenc: Combined mode wrapper for IPsec. |
| 204 | This is required for IPSec. |
| 205 | |
| 206 | config CRYPTO_TEST |
| 207 | tristate "Testing module" |
| 208 | depends on m |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 209 | select CRYPTO_MANAGER |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 210 | help |
| 211 | Quick & dirty crypto test module. |
| 212 | |
Herbert Xu | 266d051 | 2016-11-22 20:08:25 +0800 | [diff] [blame] | 213 | config CRYPTO_SIMD |
| 214 | tristate |
| 215 | select CRYPTO_CRYPTD |
| 216 | |
Jussi Kivilinna | 596d875 | 2012-06-18 14:07:19 +0300 | [diff] [blame] | 217 | config CRYPTO_GLUE_HELPER_X86 |
| 218 | tristate |
| 219 | depends on X86 |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 220 | select CRYPTO_SKCIPHER |
Jussi Kivilinna | 596d875 | 2012-06-18 14:07:19 +0300 | [diff] [blame] | 221 | |
Baolin Wang | 735d37b | 2016-01-26 20:25:39 +0800 | [diff] [blame] | 222 | config CRYPTO_ENGINE |
| 223 | tristate |
| 224 | |
Vitaly Chikunov | 3d6228a | 2019-04-11 18:51:18 +0300 | [diff] [blame] | 225 | comment "Public-key cryptography" |
| 226 | |
| 227 | config CRYPTO_RSA |
| 228 | tristate "RSA algorithm" |
| 229 | select CRYPTO_AKCIPHER |
| 230 | select CRYPTO_MANAGER |
| 231 | select MPILIB |
| 232 | select ASN1 |
| 233 | help |
| 234 | Generic implementation of the RSA public key algorithm. |
| 235 | |
| 236 | config CRYPTO_DH |
| 237 | tristate "Diffie-Hellman algorithm" |
| 238 | select CRYPTO_KPP |
| 239 | select MPILIB |
| 240 | help |
| 241 | Generic implementation of the Diffie-Hellman algorithm. |
| 242 | |
Vitaly Chikunov | 4a2289d | 2019-04-11 18:51:19 +0300 | [diff] [blame] | 243 | config CRYPTO_ECC |
| 244 | tristate |
| 245 | |
Vitaly Chikunov | 3d6228a | 2019-04-11 18:51:18 +0300 | [diff] [blame] | 246 | config CRYPTO_ECDH |
| 247 | tristate "ECDH algorithm" |
Vitaly Chikunov | 4a2289d | 2019-04-11 18:51:19 +0300 | [diff] [blame] | 248 | select CRYPTO_ECC |
Vitaly Chikunov | 3d6228a | 2019-04-11 18:51:18 +0300 | [diff] [blame] | 249 | select CRYPTO_KPP |
| 250 | select CRYPTO_RNG_DEFAULT |
| 251 | help |
| 252 | Generic implementation of the ECDH algorithm |
| 253 | |
Vitaly Chikunov | 0d7a786 | 2019-04-11 18:51:20 +0300 | [diff] [blame] | 254 | config CRYPTO_ECRDSA |
| 255 | tristate "EC-RDSA (GOST 34.10) algorithm" |
| 256 | select CRYPTO_ECC |
| 257 | select CRYPTO_AKCIPHER |
| 258 | select CRYPTO_STREEBOG |
Vitaly Chikunov | 1036633 | 2019-04-24 04:32:40 +0300 | [diff] [blame] | 259 | select OID_REGISTRY |
| 260 | select ASN1 |
Vitaly Chikunov | 0d7a786 | 2019-04-11 18:51:20 +0300 | [diff] [blame] | 261 | help |
| 262 | Elliptic Curve Russian Digital Signature Algorithm (GOST R 34.10-2012, |
| 263 | RFC 7091, ISO/IEC 14888-3:2018) is one of the Russian cryptographic |
| 264 | standard algorithms (called GOST algorithms). Only signature verification |
| 265 | is implemented. |
| 266 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 267 | comment "Authenticated Encryption with Associated Data" |
| 268 | |
| 269 | config CRYPTO_CCM |
| 270 | tristate "CCM support" |
| 271 | select CRYPTO_CTR |
Ard Biesheuvel | f15f05b | 2017-02-03 14:49:36 +0000 | [diff] [blame] | 272 | select CRYPTO_HASH |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 273 | select CRYPTO_AEAD |
Eric Biggers | c8a3315 | 2019-05-20 09:49:46 -0700 | [diff] [blame] | 274 | select CRYPTO_MANAGER |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 275 | help |
| 276 | Support for Counter with CBC MAC. Required for IPsec. |
| 277 | |
| 278 | config CRYPTO_GCM |
| 279 | tristate "GCM/GMAC support" |
| 280 | select CRYPTO_CTR |
| 281 | select CRYPTO_AEAD |
Huang Ying | 9382d97 | 2009-08-06 15:34:26 +1000 | [diff] [blame] | 282 | select CRYPTO_GHASH |
Jussi Kivilinna | 9489667d | 2013-04-07 16:43:41 +0300 | [diff] [blame] | 283 | select CRYPTO_NULL |
Eric Biggers | c8a3315 | 2019-05-20 09:49:46 -0700 | [diff] [blame] | 284 | select CRYPTO_MANAGER |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 285 | help |
| 286 | Support for Galois/Counter Mode (GCM) and Galois Message |
| 287 | Authentication Code (GMAC). Required for IPSec. |
| 288 | |
Martin Willi | 71ebc4d | 2015-06-01 13:44:00 +0200 | [diff] [blame] | 289 | config CRYPTO_CHACHA20POLY1305 |
| 290 | tristate "ChaCha20-Poly1305 AEAD support" |
| 291 | select CRYPTO_CHACHA20 |
| 292 | select CRYPTO_POLY1305 |
| 293 | select CRYPTO_AEAD |
Eric Biggers | c8a3315 | 2019-05-20 09:49:46 -0700 | [diff] [blame] | 294 | select CRYPTO_MANAGER |
Martin Willi | 71ebc4d | 2015-06-01 13:44:00 +0200 | [diff] [blame] | 295 | help |
| 296 | ChaCha20-Poly1305 AEAD support, RFC7539. |
| 297 | |
| 298 | Support for the AEAD wrapper using the ChaCha20 stream cipher combined |
| 299 | with the Poly1305 authenticator. It is defined in RFC7539 for use in |
| 300 | IETF protocols. |
| 301 | |
Ondrej Mosnacek | f606a88 | 2018-05-11 14:12:49 +0200 | [diff] [blame] | 302 | config CRYPTO_AEGIS128 |
| 303 | tristate "AEGIS-128 AEAD algorithm" |
| 304 | select CRYPTO_AEAD |
| 305 | select CRYPTO_AES # for AES S-box tables |
| 306 | help |
| 307 | Support for the AEGIS-128 dedicated AEAD algorithm. |
| 308 | |
Ard Biesheuvel | a439763 | 2019-08-12 01:59:11 +0300 | [diff] [blame] | 309 | config CRYPTO_AEGIS128_SIMD |
| 310 | bool "Support SIMD acceleration for AEGIS-128" |
| 311 | depends on CRYPTO_AEGIS128 && ((ARM || ARM64) && KERNEL_MODE_NEON) |
Ard Biesheuvel | 8305367 | 2019-10-02 09:54:48 +0200 | [diff] [blame] | 312 | depends on !ARM || CC_IS_CLANG || GCC_VERSION >= 40800 |
Ard Biesheuvel | a439763 | 2019-08-12 01:59:11 +0300 | [diff] [blame] | 313 | default y |
| 314 | |
Ondrej Mosnacek | 1d373d4 | 2018-05-11 14:12:51 +0200 | [diff] [blame] | 315 | config CRYPTO_AEGIS128_AESNI_SSE2 |
| 316 | tristate "AEGIS-128 AEAD algorithm (x86_64 AESNI+SSE2 implementation)" |
| 317 | depends on X86 && 64BIT |
| 318 | select CRYPTO_AEAD |
Eric Biggers | de272ca | 2019-03-10 12:00:53 -0700 | [diff] [blame] | 319 | select CRYPTO_SIMD |
Ondrej Mosnacek | 1d373d4 | 2018-05-11 14:12:51 +0200 | [diff] [blame] | 320 | help |
Ondrej Mosnacek | 4e5180e | 2019-03-15 08:47:25 +0100 | [diff] [blame] | 321 | AESNI+SSE2 implementation of the AEGIS-128 dedicated AEAD algorithm. |
Ondrej Mosnacek | 1d373d4 | 2018-05-11 14:12:51 +0200 | [diff] [blame] | 322 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 323 | config CRYPTO_SEQIV |
| 324 | tristate "Sequence Number IV Generator" |
| 325 | select CRYPTO_AEAD |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 326 | select CRYPTO_SKCIPHER |
Herbert Xu | 856e3f40 | 2015-05-21 15:11:13 +0800 | [diff] [blame] | 327 | select CRYPTO_NULL |
Herbert Xu | 401e423 | 2015-06-03 14:49:31 +0800 | [diff] [blame] | 328 | select CRYPTO_RNG_DEFAULT |
Eric Biggers | c8a3315 | 2019-05-20 09:49:46 -0700 | [diff] [blame] | 329 | select CRYPTO_MANAGER |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 330 | help |
| 331 | This IV generator generates an IV based on a sequence number by |
| 332 | xoring it with a salt. This algorithm is mainly useful for CTR |
| 333 | |
Herbert Xu | a10f554 | 2015-05-21 15:11:15 +0800 | [diff] [blame] | 334 | config CRYPTO_ECHAINIV |
| 335 | tristate "Encrypted Chain IV Generator" |
| 336 | select CRYPTO_AEAD |
| 337 | select CRYPTO_NULL |
Herbert Xu | 401e423 | 2015-06-03 14:49:31 +0800 | [diff] [blame] | 338 | select CRYPTO_RNG_DEFAULT |
Eric Biggers | c8a3315 | 2019-05-20 09:49:46 -0700 | [diff] [blame] | 339 | select CRYPTO_MANAGER |
Herbert Xu | a10f554 | 2015-05-21 15:11:15 +0800 | [diff] [blame] | 340 | help |
| 341 | This IV generator generates an IV based on the encryption of |
| 342 | a sequence number xored with a salt. This is the default |
| 343 | algorithm for CBC. |
| 344 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 345 | comment "Block modes" |
Herbert Xu | db131ef | 2006-09-21 11:44:08 +1000 | [diff] [blame] | 346 | |
| 347 | config CRYPTO_CBC |
| 348 | tristate "CBC support" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 349 | select CRYPTO_SKCIPHER |
Herbert Xu | 4351840 | 2006-10-16 21:28:58 +1000 | [diff] [blame] | 350 | select CRYPTO_MANAGER |
Herbert Xu | db131ef | 2006-09-21 11:44:08 +1000 | [diff] [blame] | 351 | help |
| 352 | CBC: Cipher Block Chaining mode |
| 353 | This block cipher algorithm is required for IPSec. |
| 354 | |
James Bottomley | a7d85e0 | 2018-03-01 14:36:17 -0800 | [diff] [blame] | 355 | config CRYPTO_CFB |
| 356 | tristate "CFB support" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 357 | select CRYPTO_SKCIPHER |
James Bottomley | a7d85e0 | 2018-03-01 14:36:17 -0800 | [diff] [blame] | 358 | select CRYPTO_MANAGER |
| 359 | help |
| 360 | CFB: Cipher FeedBack mode |
| 361 | This block cipher algorithm is required for TPM2 Cryptography. |
| 362 | |
Joy Latten | 23e353c | 2007-10-23 08:50:32 +0800 | [diff] [blame] | 363 | config CRYPTO_CTR |
| 364 | tristate "CTR support" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 365 | select CRYPTO_SKCIPHER |
Herbert Xu | 0a27032 | 2007-11-30 21:38:37 +1100 | [diff] [blame] | 366 | select CRYPTO_SEQIV |
Joy Latten | 23e353c | 2007-10-23 08:50:32 +0800 | [diff] [blame] | 367 | select CRYPTO_MANAGER |
Joy Latten | 23e353c | 2007-10-23 08:50:32 +0800 | [diff] [blame] | 368 | help |
| 369 | CTR: Counter mode |
| 370 | This block cipher algorithm is required for IPSec. |
| 371 | |
Kevin Coffman | 76cb952 | 2008-03-24 21:26:16 +0800 | [diff] [blame] | 372 | config CRYPTO_CTS |
| 373 | tristate "CTS support" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 374 | select CRYPTO_SKCIPHER |
Eric Biggers | c8a3315 | 2019-05-20 09:49:46 -0700 | [diff] [blame] | 375 | select CRYPTO_MANAGER |
Kevin Coffman | 76cb952 | 2008-03-24 21:26:16 +0800 | [diff] [blame] | 376 | help |
| 377 | CTS: Cipher Text Stealing |
| 378 | This is the Cipher Text Stealing mode as described by |
Gilad Ben-Yossef | ecd6d5c | 2018-11-05 12:05:01 +0000 | [diff] [blame] | 379 | Section 8 of rfc2040 and referenced by rfc3962 |
| 380 | (rfc3962 includes errata information in its Appendix A) or |
| 381 | CBC-CS3 as defined by NIST in Sp800-38A addendum from Oct 2010. |
Kevin Coffman | 76cb952 | 2008-03-24 21:26:16 +0800 | [diff] [blame] | 382 | This mode is required for Kerberos gss mechanism support |
| 383 | for AES encryption. |
| 384 | |
Gilad Ben-Yossef | ecd6d5c | 2018-11-05 12:05:01 +0000 | [diff] [blame] | 385 | See: https://csrc.nist.gov/publications/detail/sp/800-38a/addendum/final |
| 386 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 387 | config CRYPTO_ECB |
| 388 | tristate "ECB support" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 389 | select CRYPTO_SKCIPHER |
Herbert Xu | 124b53d | 2007-04-16 20:49:20 +1000 | [diff] [blame] | 390 | select CRYPTO_MANAGER |
| 391 | help |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 392 | ECB: Electronic CodeBook mode |
| 393 | This is the simplest block cipher algorithm. It simply encrypts |
| 394 | the input block by block. |
Herbert Xu | 124b53d | 2007-04-16 20:49:20 +1000 | [diff] [blame] | 395 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 396 | config CRYPTO_LRW |
Jussi Kivilinna | 2470a2b | 2011-12-13 12:52:51 +0200 | [diff] [blame] | 397 | tristate "LRW support" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 398 | select CRYPTO_SKCIPHER |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 399 | select CRYPTO_MANAGER |
| 400 | select CRYPTO_GF128MUL |
David Howells | 9083163 | 2006-12-16 12:13:14 +1100 | [diff] [blame] | 401 | help |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 402 | LRW: Liskov Rivest Wagner, a tweakable, non malleable, non movable |
| 403 | narrow block cipher mode for dm-crypt. Use it with cipher |
| 404 | specification string aes-lrw-benbi, the key must be 256, 320 or 384. |
| 405 | The first 128, 192 or 256 bits in the key are used for AES and the |
| 406 | rest is used to tie each cipher block to its logical position. |
David Howells | 9083163 | 2006-12-16 12:13:14 +1100 | [diff] [blame] | 407 | |
Gilad Ben-Yossef | e497c51 | 2018-09-20 14:18:39 +0100 | [diff] [blame] | 408 | config CRYPTO_OFB |
| 409 | tristate "OFB support" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 410 | select CRYPTO_SKCIPHER |
Gilad Ben-Yossef | e497c51 | 2018-09-20 14:18:39 +0100 | [diff] [blame] | 411 | select CRYPTO_MANAGER |
| 412 | help |
| 413 | OFB: the Output Feedback mode makes a block cipher into a synchronous |
| 414 | stream cipher. It generates keystream blocks, which are then XORed |
| 415 | with the plaintext blocks to get the ciphertext. Flipping a bit in the |
| 416 | ciphertext produces a flipped bit in the plaintext at the same |
| 417 | location. This property allows many error correcting codes to function |
| 418 | normally even when applied before encryption. |
| 419 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 420 | config CRYPTO_PCBC |
| 421 | tristate "PCBC support" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 422 | select CRYPTO_SKCIPHER |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 423 | select CRYPTO_MANAGER |
| 424 | help |
| 425 | PCBC: Propagating Cipher Block Chaining mode |
| 426 | This block cipher algorithm is required for RxRPC. |
| 427 | |
| 428 | config CRYPTO_XTS |
Jussi Kivilinna | 5bcf8e6 | 2011-12-13 12:52:56 +0200 | [diff] [blame] | 429 | tristate "XTS support" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 430 | select CRYPTO_SKCIPHER |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 431 | select CRYPTO_MANAGER |
Milan Broz | 12cb3a1 | 2017-02-23 08:38:26 +0100 | [diff] [blame] | 432 | select CRYPTO_ECB |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 433 | help |
| 434 | XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain, |
| 435 | key size 256, 384 or 512 bits. This implementation currently |
| 436 | can't handle a sectorsize which is not a multiple of 16 bytes. |
| 437 | |
Stephan Mueller | 1c49678e | 2015-09-21 20:58:56 +0200 | [diff] [blame] | 438 | config CRYPTO_KEYWRAP |
| 439 | tristate "Key wrapping support" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 440 | select CRYPTO_SKCIPHER |
Eric Biggers | c8a3315 | 2019-05-20 09:49:46 -0700 | [diff] [blame] | 441 | select CRYPTO_MANAGER |
Stephan Mueller | 1c49678e | 2015-09-21 20:58:56 +0200 | [diff] [blame] | 442 | help |
| 443 | Support for key wrapping (NIST SP800-38F / RFC3394) without |
| 444 | padding. |
| 445 | |
Eric Biggers | 26609a2 | 2018-11-16 17:26:29 -0800 | [diff] [blame] | 446 | config CRYPTO_NHPOLY1305 |
| 447 | tristate |
| 448 | select CRYPTO_HASH |
Ard Biesheuvel | 48ea8c6 | 2019-11-08 13:22:19 +0100 | [diff] [blame] | 449 | select CRYPTO_LIB_POLY1305_GENERIC |
Eric Biggers | 26609a2 | 2018-11-16 17:26:29 -0800 | [diff] [blame] | 450 | |
Eric Biggers | 012c823 | 2018-12-04 22:20:00 -0800 | [diff] [blame] | 451 | config CRYPTO_NHPOLY1305_SSE2 |
| 452 | tristate "NHPoly1305 hash function (x86_64 SSE2 implementation)" |
| 453 | depends on X86 && 64BIT |
| 454 | select CRYPTO_NHPOLY1305 |
| 455 | help |
| 456 | SSE2 optimized implementation of the hash function used by the |
| 457 | Adiantum encryption mode. |
| 458 | |
Eric Biggers | 0f961f9 | 2018-12-04 22:20:01 -0800 | [diff] [blame] | 459 | config CRYPTO_NHPOLY1305_AVX2 |
| 460 | tristate "NHPoly1305 hash function (x86_64 AVX2 implementation)" |
| 461 | depends on X86 && 64BIT |
| 462 | select CRYPTO_NHPOLY1305 |
| 463 | help |
| 464 | AVX2 optimized implementation of the hash function used by the |
| 465 | Adiantum encryption mode. |
| 466 | |
Eric Biggers | 059c2a4 | 2018-11-16 17:26:31 -0800 | [diff] [blame] | 467 | config CRYPTO_ADIANTUM |
| 468 | tristate "Adiantum support" |
| 469 | select CRYPTO_CHACHA20 |
Ard Biesheuvel | 48ea8c6 | 2019-11-08 13:22:19 +0100 | [diff] [blame] | 470 | select CRYPTO_LIB_POLY1305_GENERIC |
Eric Biggers | 059c2a4 | 2018-11-16 17:26:31 -0800 | [diff] [blame] | 471 | select CRYPTO_NHPOLY1305 |
Eric Biggers | c8a3315 | 2019-05-20 09:49:46 -0700 | [diff] [blame] | 472 | select CRYPTO_MANAGER |
Eric Biggers | 059c2a4 | 2018-11-16 17:26:31 -0800 | [diff] [blame] | 473 | help |
| 474 | Adiantum is a tweakable, length-preserving encryption mode |
| 475 | designed for fast and secure disk encryption, especially on |
| 476 | CPUs without dedicated crypto instructions. It encrypts |
| 477 | each sector using the XChaCha12 stream cipher, two passes of |
| 478 | an ε-almost-∆-universal hash function, and an invocation of |
| 479 | the AES-256 block cipher on a single 16-byte block. On CPUs |
| 480 | without AES instructions, Adiantum is much faster than |
| 481 | AES-XTS. |
| 482 | |
| 483 | Adiantum's security is provably reducible to that of its |
| 484 | underlying stream and block ciphers, subject to a security |
| 485 | bound. Unlike XTS, Adiantum is a true wide-block encryption |
| 486 | mode, so it actually provides an even stronger notion of |
| 487 | security than XTS, subject to the security bound. |
| 488 | |
| 489 | If unsure, say N. |
| 490 | |
Ard Biesheuvel | be1eb7f | 2019-08-19 17:17:33 +0300 | [diff] [blame] | 491 | config CRYPTO_ESSIV |
| 492 | tristate "ESSIV support for block encryption" |
| 493 | select CRYPTO_AUTHENC |
| 494 | help |
| 495 | Encrypted salt-sector initialization vector (ESSIV) is an IV |
| 496 | generation method that is used in some cases by fscrypt and/or |
| 497 | dm-crypt. It uses the hash of the block encryption key as the |
| 498 | symmetric key for a block encryption pass applied to the input |
| 499 | IV, making low entropy IV sources more suitable for block |
| 500 | encryption. |
| 501 | |
| 502 | This driver implements a crypto API template that can be |
| 503 | instantiated either as a skcipher or as a aead (depending on the |
| 504 | type of the first template argument), and which defers encryption |
| 505 | and decryption requests to the encapsulated cipher after applying |
| 506 | ESSIV to the input IV. Note that in the aead case, it is assumed |
| 507 | that the keys are presented in the same format used by the authenc |
| 508 | template, and that the IV appears at the end of the authenticated |
| 509 | associated data (AAD) region (which is how dm-crypt uses it.) |
| 510 | |
| 511 | Note that the use of ESSIV is not recommended for new deployments, |
| 512 | and so this only needs to be enabled when interoperability with |
| 513 | existing encrypted volumes of filesystems is required, or when |
| 514 | building for a particular system that requires it (e.g., when |
| 515 | the SoC in question has accelerated CBC but not XTS, making CBC |
| 516 | combined with ESSIV the only feasible mode for h/w accelerated |
| 517 | block encryption) |
| 518 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 519 | comment "Hash modes" |
| 520 | |
Jussi Kivilinna | 93b5e86 | 2013-04-08 10:48:44 +0300 | [diff] [blame] | 521 | config CRYPTO_CMAC |
| 522 | tristate "CMAC support" |
| 523 | select CRYPTO_HASH |
| 524 | select CRYPTO_MANAGER |
| 525 | help |
| 526 | Cipher-based Message Authentication Code (CMAC) specified by |
| 527 | The National Institute of Standards and Technology (NIST). |
| 528 | |
| 529 | https://tools.ietf.org/html/rfc4493 |
| 530 | http://csrc.nist.gov/publications/nistpubs/800-38B/SP_800-38B.pdf |
| 531 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 532 | config CRYPTO_HMAC |
| 533 | tristate "HMAC support" |
| 534 | select CRYPTO_HASH |
| 535 | select CRYPTO_MANAGER |
| 536 | help |
| 537 | HMAC: Keyed-Hashing for Message Authentication (RFC2104). |
| 538 | This is required for IPSec. |
| 539 | |
| 540 | config CRYPTO_XCBC |
| 541 | tristate "XCBC support" |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 542 | select CRYPTO_HASH |
| 543 | select CRYPTO_MANAGER |
| 544 | help |
| 545 | XCBC: Keyed-Hashing with encryption algorithm |
| 546 | http://www.ietf.org/rfc/rfc3566.txt |
| 547 | http://csrc.nist.gov/encryption/modes/proposedmodes/ |
| 548 | xcbc-mac/xcbc-mac-spec.pdf |
| 549 | |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 550 | config CRYPTO_VMAC |
| 551 | tristate "VMAC support" |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 552 | select CRYPTO_HASH |
| 553 | select CRYPTO_MANAGER |
| 554 | help |
| 555 | VMAC is a message authentication algorithm designed for |
| 556 | very high speed on 64-bit architectures. |
| 557 | |
| 558 | See also: |
| 559 | <http://fastcrypto.org/vmac> |
| 560 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 561 | comment "Digest" |
| 562 | |
| 563 | config CRYPTO_CRC32C |
| 564 | tristate "CRC32c CRC algorithm" |
Herbert Xu | 5773a3e | 2008-07-08 20:54:28 +0800 | [diff] [blame] | 565 | select CRYPTO_HASH |
Darrick J. Wong | 6a0962b | 2012-03-23 15:02:25 -0700 | [diff] [blame] | 566 | select CRC32 |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 567 | help |
| 568 | Castagnoli, et al Cyclic Redundancy-Check Algorithm. Used |
| 569 | by iSCSI for header and data digests and by others. |
Herbert Xu | 69c35ef | 2008-11-07 15:11:47 +0800 | [diff] [blame] | 570 | See Castagnoli93. Module will be crc32c. |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 571 | |
Austin Zhang | 8cb51ba | 2008-08-07 09:57:03 +0800 | [diff] [blame] | 572 | config CRYPTO_CRC32C_INTEL |
| 573 | tristate "CRC32c INTEL hardware acceleration" |
| 574 | depends on X86 |
| 575 | select CRYPTO_HASH |
| 576 | help |
| 577 | In Intel processor with SSE4.2 supported, the processor will |
| 578 | support CRC32C implementation using hardware accelerated CRC32 |
| 579 | instruction. This option will create 'crc32c-intel' module, |
| 580 | which will enable any routine to use the CRC32 instruction to |
| 581 | gain performance compared with software implementation. |
| 582 | Module will be crc32c-intel. |
| 583 | |
Jean Delvare | 7cf3186 | 2016-11-22 10:32:44 +0100 | [diff] [blame] | 584 | config CRYPTO_CRC32C_VPMSUM |
Anton Blanchard | 6dd7a82 | 2016-07-01 08:19:45 +1000 | [diff] [blame] | 585 | tristate "CRC32c CRC algorithm (powerpc64)" |
Michael Ellerman | c12abf3 | 2016-08-09 08:46:15 +1000 | [diff] [blame] | 586 | depends on PPC64 && ALTIVEC |
Anton Blanchard | 6dd7a82 | 2016-07-01 08:19:45 +1000 | [diff] [blame] | 587 | select CRYPTO_HASH |
| 588 | select CRC32 |
| 589 | help |
| 590 | CRC32c algorithm implemented using vector polynomial multiply-sum |
| 591 | (vpmsum) instructions, introduced in POWER8. Enable on POWER8 |
| 592 | and newer processors for improved performance. |
| 593 | |
| 594 | |
David S. Miller | 442a7c4 | 2012-08-22 20:47:36 -0700 | [diff] [blame] | 595 | config CRYPTO_CRC32C_SPARC64 |
| 596 | tristate "CRC32c CRC algorithm (SPARC64)" |
| 597 | depends on SPARC64 |
| 598 | select CRYPTO_HASH |
| 599 | select CRC32 |
| 600 | help |
| 601 | CRC32c CRC algorithm implemented using sparc64 crypto instructions, |
| 602 | when available. |
| 603 | |
Alexander Boyko | 78c37d1 | 2013-01-10 18:54:59 +0400 | [diff] [blame] | 604 | config CRYPTO_CRC32 |
| 605 | tristate "CRC32 CRC algorithm" |
| 606 | select CRYPTO_HASH |
| 607 | select CRC32 |
| 608 | help |
| 609 | CRC-32-IEEE 802.3 cyclic redundancy-check algorithm. |
| 610 | Shash crypto api wrappers to crc32_le function. |
| 611 | |
| 612 | config CRYPTO_CRC32_PCLMUL |
| 613 | tristate "CRC32 PCLMULQDQ hardware acceleration" |
| 614 | depends on X86 |
| 615 | select CRYPTO_HASH |
| 616 | select CRC32 |
| 617 | help |
| 618 | From Intel Westmere and AMD Bulldozer processor with SSE4.2 |
| 619 | and PCLMULQDQ supported, the processor will support |
| 620 | CRC32 PCLMULQDQ implementation using hardware accelerated PCLMULQDQ |
haco | af8cb01 | 2018-12-28 10:09:40 +0000 | [diff] [blame] | 621 | instruction. This option will create 'crc32-pclmul' module, |
Alexander Boyko | 78c37d1 | 2013-01-10 18:54:59 +0400 | [diff] [blame] | 622 | which will enable any routine to use the CRC-32-IEEE 802.3 checksum |
| 623 | and gain better performance as compared with the table implementation. |
| 624 | |
Marcin Nowakowski | 4a5dc51 | 2018-02-09 22:11:06 +0000 | [diff] [blame] | 625 | config CRYPTO_CRC32_MIPS |
| 626 | tristate "CRC32c and CRC32 CRC algorithm (MIPS)" |
| 627 | depends on MIPS_CRC_SUPPORT |
| 628 | select CRYPTO_HASH |
| 629 | help |
| 630 | CRC32c and CRC32 CRC algorithms implemented using mips crypto |
| 631 | instructions, when available. |
| 632 | |
| 633 | |
Nikolay Borisov | 67882e7 | 2019-05-30 09:52:57 +0300 | [diff] [blame] | 634 | config CRYPTO_XXHASH |
| 635 | tristate "xxHash hash algorithm" |
| 636 | select CRYPTO_HASH |
| 637 | select XXHASH |
| 638 | help |
| 639 | xxHash non-cryptographic hash algorithm. Extremely fast, working at |
| 640 | speeds close to RAM limits. |
| 641 | |
David Sterba | 91d6893 | 2019-10-24 18:28:31 +0200 | [diff] [blame] | 642 | config CRYPTO_BLAKE2B |
| 643 | tristate "BLAKE2b digest algorithm" |
| 644 | select CRYPTO_HASH |
| 645 | help |
| 646 | Implementation of cryptographic hash function BLAKE2b (or just BLAKE2), |
| 647 | optimized for 64bit platforms and can produce digests of any size |
| 648 | between 1 to 64. The keyed hash is also implemented. |
| 649 | |
| 650 | This module provides the following algorithms: |
| 651 | |
| 652 | - blake2b-160 |
| 653 | - blake2b-256 |
| 654 | - blake2b-384 |
| 655 | - blake2b-512 |
| 656 | |
| 657 | See https://blake2.net for further information. |
| 658 | |
Herbert Xu | 68411521 | 2013-09-07 12:56:26 +1000 | [diff] [blame] | 659 | config CRYPTO_CRCT10DIF |
| 660 | tristate "CRCT10DIF algorithm" |
| 661 | select CRYPTO_HASH |
| 662 | help |
| 663 | CRC T10 Data Integrity Field computation is being cast as |
| 664 | a crypto transform. This allows for faster crc t10 diff |
| 665 | transforms to be used if they are available. |
| 666 | |
| 667 | config CRYPTO_CRCT10DIF_PCLMUL |
| 668 | tristate "CRCT10DIF PCLMULQDQ hardware acceleration" |
| 669 | depends on X86 && 64BIT && CRC_T10DIF |
| 670 | select CRYPTO_HASH |
| 671 | help |
| 672 | For x86_64 processors with SSE4.2 and PCLMULQDQ supported, |
| 673 | CRC T10 DIF PCLMULQDQ computation can be hardware |
| 674 | accelerated PCLMULQDQ instruction. This option will create |
haco | af8cb01 | 2018-12-28 10:09:40 +0000 | [diff] [blame] | 675 | 'crct10dif-pclmul' module, which is faster when computing the |
Herbert Xu | 68411521 | 2013-09-07 12:56:26 +1000 | [diff] [blame] | 676 | crct10dif checksum as compared with the generic table implementation. |
| 677 | |
Daniel Axtens | b01df1c | 2017-03-15 23:37:36 +1100 | [diff] [blame] | 678 | config CRYPTO_CRCT10DIF_VPMSUM |
| 679 | tristate "CRC32T10DIF powerpc64 hardware acceleration" |
| 680 | depends on PPC64 && ALTIVEC && CRC_T10DIF |
| 681 | select CRYPTO_HASH |
| 682 | help |
| 683 | CRC10T10DIF algorithm implemented using vector polynomial |
| 684 | multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on |
| 685 | POWER8 and newer processors for improved performance. |
| 686 | |
Daniel Axtens | 146c868 | 2017-03-15 23:37:37 +1100 | [diff] [blame] | 687 | config CRYPTO_VPMSUM_TESTER |
| 688 | tristate "Powerpc64 vpmsum hardware acceleration tester" |
| 689 | depends on CRYPTO_CRCT10DIF_VPMSUM && CRYPTO_CRC32C_VPMSUM |
| 690 | help |
| 691 | Stress test for CRC32c and CRC-T10DIF algorithms implemented with |
| 692 | POWER8 vpmsum instructions. |
| 693 | Unless you are testing these algorithms, you don't need this. |
| 694 | |
Huang Ying | 2cdc689 | 2009-08-06 15:32:38 +1000 | [diff] [blame] | 695 | config CRYPTO_GHASH |
Eric Biggers | 8dfa20f | 2019-07-19 23:09:18 -0700 | [diff] [blame] | 696 | tristate "GHASH hash function" |
Huang Ying | 2cdc689 | 2009-08-06 15:32:38 +1000 | [diff] [blame] | 697 | select CRYPTO_GF128MUL |
Arnd Bergmann | 578c60f | 2016-01-25 17:51:21 +0100 | [diff] [blame] | 698 | select CRYPTO_HASH |
Huang Ying | 2cdc689 | 2009-08-06 15:32:38 +1000 | [diff] [blame] | 699 | help |
Eric Biggers | 8dfa20f | 2019-07-19 23:09:18 -0700 | [diff] [blame] | 700 | GHASH is the hash function used in GCM (Galois/Counter Mode). |
| 701 | It is not a general-purpose cryptographic hash function. |
Huang Ying | 2cdc689 | 2009-08-06 15:32:38 +1000 | [diff] [blame] | 702 | |
Martin Willi | f979e01 | 2015-06-01 13:43:58 +0200 | [diff] [blame] | 703 | config CRYPTO_POLY1305 |
| 704 | tristate "Poly1305 authenticator algorithm" |
Arnd Bergmann | 578c60f | 2016-01-25 17:51:21 +0100 | [diff] [blame] | 705 | select CRYPTO_HASH |
Ard Biesheuvel | 48ea8c6 | 2019-11-08 13:22:19 +0100 | [diff] [blame] | 706 | select CRYPTO_LIB_POLY1305_GENERIC |
Martin Willi | f979e01 | 2015-06-01 13:43:58 +0200 | [diff] [blame] | 707 | help |
| 708 | Poly1305 authenticator algorithm, RFC7539. |
| 709 | |
| 710 | Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein. |
| 711 | It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use |
| 712 | in IETF protocols. This is the portable C implementation of Poly1305. |
| 713 | |
Martin Willi | c70f4ab | 2015-07-16 19:14:06 +0200 | [diff] [blame] | 714 | config CRYPTO_POLY1305_X86_64 |
Martin Willi | b1ccc8f | 2015-07-16 19:14:08 +0200 | [diff] [blame] | 715 | tristate "Poly1305 authenticator algorithm (x86_64/SSE2/AVX2)" |
Martin Willi | c70f4ab | 2015-07-16 19:14:06 +0200 | [diff] [blame] | 716 | depends on X86 && 64BIT |
Ard Biesheuvel | 1b2c6a5 | 2019-11-08 13:22:22 +0100 | [diff] [blame] | 717 | select CRYPTO_LIB_POLY1305_GENERIC |
Ard Biesheuvel | f0e89bc | 2019-11-08 13:22:23 +0100 | [diff] [blame] | 718 | select CRYPTO_ARCH_HAVE_LIB_POLY1305 |
Martin Willi | c70f4ab | 2015-07-16 19:14:06 +0200 | [diff] [blame] | 719 | help |
| 720 | Poly1305 authenticator algorithm, RFC7539. |
| 721 | |
| 722 | Poly1305 is an authenticator algorithm designed by Daniel J. Bernstein. |
| 723 | It is used for the ChaCha20-Poly1305 AEAD, specified in RFC7539 for use |
| 724 | in IETF protocols. This is the x86_64 assembler implementation using SIMD |
| 725 | instructions. |
| 726 | |
Ard Biesheuvel | a11d055 | 2019-11-08 13:22:26 +0100 | [diff] [blame^] | 727 | config CRYPTO_POLY1305_MIPS |
| 728 | tristate "Poly1305 authenticator algorithm (MIPS optimized)" |
| 729 | depends on CPU_MIPS32 || (CPU_MIPS64 && 64BIT) |
| 730 | select CRYPTO_ARCH_HAVE_LIB_POLY1305 |
| 731 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 732 | config CRYPTO_MD4 |
| 733 | tristate "MD4 digest algorithm" |
Adrian-Ken Rueegsegger | 808a176 | 2008-12-03 19:55:27 +0800 | [diff] [blame] | 734 | select CRYPTO_HASH |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 735 | help |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 736 | MD4 message digest algorithm (RFC1320). |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 737 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 738 | config CRYPTO_MD5 |
| 739 | tristate "MD5 digest algorithm" |
Adrian-Ken Rueegsegger | 14b75ba | 2008-12-03 19:57:12 +0800 | [diff] [blame] | 740 | select CRYPTO_HASH |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 741 | help |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 742 | MD5 message digest algorithm (RFC1321). |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 743 | |
Aaro Koskinen | d69e75d | 2014-12-21 22:54:02 +0200 | [diff] [blame] | 744 | config CRYPTO_MD5_OCTEON |
| 745 | tristate "MD5 digest algorithm (OCTEON)" |
| 746 | depends on CPU_CAVIUM_OCTEON |
| 747 | select CRYPTO_MD5 |
| 748 | select CRYPTO_HASH |
| 749 | help |
| 750 | MD5 message digest algorithm (RFC1321) implemented |
| 751 | using OCTEON crypto instructions, when available. |
| 752 | |
Markus Stockhausen | e8e5995 | 2015-03-01 19:30:46 +0100 | [diff] [blame] | 753 | config CRYPTO_MD5_PPC |
| 754 | tristate "MD5 digest algorithm (PPC)" |
| 755 | depends on PPC |
| 756 | select CRYPTO_HASH |
| 757 | help |
| 758 | MD5 message digest algorithm (RFC1321) implemented |
| 759 | in PPC assembler. |
| 760 | |
David S. Miller | fa4dfed | 2012-08-19 21:51:26 -0700 | [diff] [blame] | 761 | config CRYPTO_MD5_SPARC64 |
| 762 | tristate "MD5 digest algorithm (SPARC64)" |
| 763 | depends on SPARC64 |
| 764 | select CRYPTO_MD5 |
| 765 | select CRYPTO_HASH |
| 766 | help |
| 767 | MD5 message digest algorithm (RFC1321) implemented |
| 768 | using sparc64 crypto instructions, when available. |
| 769 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 770 | config CRYPTO_MICHAEL_MIC |
| 771 | tristate "Michael MIC keyed digest algorithm" |
Adrian-Ken Rueegsegger | 19e2bf1 | 2008-12-07 19:35:38 +0800 | [diff] [blame] | 772 | select CRYPTO_HASH |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 773 | help |
| 774 | Michael MIC is used for message integrity protection in TKIP |
| 775 | (IEEE 802.11i). This algorithm is required for TKIP, but it |
| 776 | should not be used for other purposes because of the weakness |
| 777 | of the algorithm. |
| 778 | |
Adrian-Ken Rueegsegger | 82798f9 | 2008-05-07 22:17:37 +0800 | [diff] [blame] | 779 | config CRYPTO_RMD128 |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 780 | tristate "RIPEMD-128 digest algorithm" |
Herbert Xu | 7c4468b | 2008-11-08 09:10:40 +0800 | [diff] [blame] | 781 | select CRYPTO_HASH |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 782 | help |
| 783 | RIPEMD-128 (ISO/IEC 10118-3:2004). |
Adrian-Ken Rueegsegger | 82798f9 | 2008-05-07 22:17:37 +0800 | [diff] [blame] | 784 | |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 785 | RIPEMD-128 is a 128-bit cryptographic hash function. It should only |
Michael Witten | 35ed4b3 | 2011-07-09 04:02:31 +0000 | [diff] [blame] | 786 | be used as a secure replacement for RIPEMD. For other use cases, |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 787 | RIPEMD-160 should be used. |
Adrian-Ken Rueegsegger | 82798f9 | 2008-05-07 22:17:37 +0800 | [diff] [blame] | 788 | |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 789 | Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel. |
Justin P. Mattock | 6d8de74 | 2010-09-12 10:42:47 +0800 | [diff] [blame] | 790 | See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html> |
Adrian-Ken Rueegsegger | 82798f9 | 2008-05-07 22:17:37 +0800 | [diff] [blame] | 791 | |
| 792 | config CRYPTO_RMD160 |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 793 | tristate "RIPEMD-160 digest algorithm" |
Herbert Xu | e5835fb | 2008-11-08 09:18:51 +0800 | [diff] [blame] | 794 | select CRYPTO_HASH |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 795 | help |
| 796 | RIPEMD-160 (ISO/IEC 10118-3:2004). |
Adrian-Ken Rueegsegger | 82798f9 | 2008-05-07 22:17:37 +0800 | [diff] [blame] | 797 | |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 798 | RIPEMD-160 is a 160-bit cryptographic hash function. It is intended |
| 799 | to be used as a secure replacement for the 128-bit hash functions |
| 800 | MD4, MD5 and it's predecessor RIPEMD |
| 801 | (not to be confused with RIPEMD-128). |
Adrian-Ken Rueegsegger | 82798f9 | 2008-05-07 22:17:37 +0800 | [diff] [blame] | 802 | |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 803 | It's speed is comparable to SHA1 and there are no known attacks |
| 804 | against RIPEMD-160. |
Adrian-Ken Rueegsegger | 534fe2c1 | 2008-05-09 21:30:27 +0800 | [diff] [blame] | 805 | |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 806 | Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel. |
Justin P. Mattock | 6d8de74 | 2010-09-12 10:42:47 +0800 | [diff] [blame] | 807 | See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html> |
Adrian-Ken Rueegsegger | 534fe2c1 | 2008-05-09 21:30:27 +0800 | [diff] [blame] | 808 | |
| 809 | config CRYPTO_RMD256 |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 810 | tristate "RIPEMD-256 digest algorithm" |
Herbert Xu | d8a5e2e | 2008-11-08 09:58:10 +0800 | [diff] [blame] | 811 | select CRYPTO_HASH |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 812 | help |
| 813 | RIPEMD-256 is an optional extension of RIPEMD-128 with a |
| 814 | 256 bit hash. It is intended for applications that require |
| 815 | longer hash-results, without needing a larger security level |
| 816 | (than RIPEMD-128). |
Adrian-Ken Rueegsegger | 534fe2c1 | 2008-05-09 21:30:27 +0800 | [diff] [blame] | 817 | |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 818 | Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel. |
Justin P. Mattock | 6d8de74 | 2010-09-12 10:42:47 +0800 | [diff] [blame] | 819 | See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html> |
Adrian-Ken Rueegsegger | 534fe2c1 | 2008-05-09 21:30:27 +0800 | [diff] [blame] | 820 | |
| 821 | config CRYPTO_RMD320 |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 822 | tristate "RIPEMD-320 digest algorithm" |
Herbert Xu | 3b8efb4 | 2008-11-08 10:11:09 +0800 | [diff] [blame] | 823 | select CRYPTO_HASH |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 824 | help |
| 825 | RIPEMD-320 is an optional extension of RIPEMD-160 with a |
| 826 | 320 bit hash. It is intended for applications that require |
| 827 | longer hash-results, without needing a larger security level |
| 828 | (than RIPEMD-160). |
Adrian-Ken Rueegsegger | 534fe2c1 | 2008-05-09 21:30:27 +0800 | [diff] [blame] | 829 | |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 830 | Developed by Hans Dobbertin, Antoon Bosselaers and Bart Preneel. |
Justin P. Mattock | 6d8de74 | 2010-09-12 10:42:47 +0800 | [diff] [blame] | 831 | See <http://homes.esat.kuleuven.be/~bosselae/ripemd160.html> |
Adrian-Ken Rueegsegger | 82798f9 | 2008-05-07 22:17:37 +0800 | [diff] [blame] | 832 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 833 | config CRYPTO_SHA1 |
| 834 | tristate "SHA1 digest algorithm" |
Adrian-Ken Rueegsegger | 54ccb36 | 2008-12-02 21:08:20 +0800 | [diff] [blame] | 835 | select CRYPTO_HASH |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 836 | help |
| 837 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2). |
| 838 | |
Mathias Krause | 66be895 | 2011-08-04 20:19:25 +0200 | [diff] [blame] | 839 | config CRYPTO_SHA1_SSSE3 |
tim | e38b6b7f | 2015-09-10 15:27:26 -0700 | [diff] [blame] | 840 | tristate "SHA1 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)" |
Mathias Krause | 66be895 | 2011-08-04 20:19:25 +0200 | [diff] [blame] | 841 | depends on X86 && 64BIT |
| 842 | select CRYPTO_SHA1 |
| 843 | select CRYPTO_HASH |
| 844 | help |
| 845 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented |
| 846 | using Supplemental SSE3 (SSSE3) instructions or Advanced Vector |
tim | e38b6b7f | 2015-09-10 15:27:26 -0700 | [diff] [blame] | 847 | Extensions (AVX/AVX2) or SHA-NI(SHA Extensions New Instructions), |
| 848 | when available. |
Mathias Krause | 66be895 | 2011-08-04 20:19:25 +0200 | [diff] [blame] | 849 | |
Tim Chen | 8275d1a | 2013-03-26 13:59:17 -0700 | [diff] [blame] | 850 | config CRYPTO_SHA256_SSSE3 |
tim | e38b6b7f | 2015-09-10 15:27:26 -0700 | [diff] [blame] | 851 | tristate "SHA256 digest algorithm (SSSE3/AVX/AVX2/SHA-NI)" |
Tim Chen | 8275d1a | 2013-03-26 13:59:17 -0700 | [diff] [blame] | 852 | depends on X86 && 64BIT |
| 853 | select CRYPTO_SHA256 |
| 854 | select CRYPTO_HASH |
| 855 | help |
| 856 | SHA-256 secure hash standard (DFIPS 180-2) implemented |
| 857 | using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector |
| 858 | Extensions version 1 (AVX1), or Advanced Vector Extensions |
tim | e38b6b7f | 2015-09-10 15:27:26 -0700 | [diff] [blame] | 859 | version 2 (AVX2) instructions, or SHA-NI (SHA Extensions New |
| 860 | Instructions) when available. |
Tim Chen | 8275d1a | 2013-03-26 13:59:17 -0700 | [diff] [blame] | 861 | |
Tim Chen | 87de457 | 2013-03-26 14:00:02 -0700 | [diff] [blame] | 862 | config CRYPTO_SHA512_SSSE3 |
| 863 | tristate "SHA512 digest algorithm (SSSE3/AVX/AVX2)" |
| 864 | depends on X86 && 64BIT |
| 865 | select CRYPTO_SHA512 |
| 866 | select CRYPTO_HASH |
| 867 | help |
| 868 | SHA-512 secure hash standard (DFIPS 180-2) implemented |
| 869 | using Supplemental SSE3 (SSSE3) instructions, or Advanced Vector |
| 870 | Extensions version 1 (AVX1), or Advanced Vector Extensions |
| 871 | version 2 (AVX2) instructions, when available. |
| 872 | |
Aaro Koskinen | efdb6f6 | 2015-03-08 22:07:47 +0200 | [diff] [blame] | 873 | config CRYPTO_SHA1_OCTEON |
| 874 | tristate "SHA1 digest algorithm (OCTEON)" |
| 875 | depends on CPU_CAVIUM_OCTEON |
| 876 | select CRYPTO_SHA1 |
| 877 | select CRYPTO_HASH |
| 878 | help |
| 879 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented |
| 880 | using OCTEON crypto instructions, when available. |
| 881 | |
David S. Miller | 4ff28d4 | 2012-08-19 15:41:53 -0700 | [diff] [blame] | 882 | config CRYPTO_SHA1_SPARC64 |
| 883 | tristate "SHA1 digest algorithm (SPARC64)" |
| 884 | depends on SPARC64 |
| 885 | select CRYPTO_SHA1 |
| 886 | select CRYPTO_HASH |
| 887 | help |
| 888 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2) implemented |
| 889 | using sparc64 crypto instructions, when available. |
| 890 | |
Michael Ellerman | 323a6bf | 2012-09-13 23:00:49 +0000 | [diff] [blame] | 891 | config CRYPTO_SHA1_PPC |
| 892 | tristate "SHA1 digest algorithm (powerpc)" |
| 893 | depends on PPC |
| 894 | help |
| 895 | This is the powerpc hardware accelerated implementation of the |
| 896 | SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2). |
| 897 | |
Markus Stockhausen | d9850fc | 2015-02-24 20:36:50 +0100 | [diff] [blame] | 898 | config CRYPTO_SHA1_PPC_SPE |
| 899 | tristate "SHA1 digest algorithm (PPC SPE)" |
| 900 | depends on PPC && SPE |
| 901 | help |
| 902 | SHA-1 secure hash standard (DFIPS 180-4) implemented |
| 903 | using powerpc SPE SIMD instruction set. |
| 904 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 905 | config CRYPTO_SHA256 |
| 906 | tristate "SHA224 and SHA256 digest algorithm" |
Adrian-Ken Rueegsegger | 50e109b5 | 2008-12-03 19:57:49 +0800 | [diff] [blame] | 907 | select CRYPTO_HASH |
Hans de Goede | 08c327f | 2019-08-17 16:24:35 +0200 | [diff] [blame] | 908 | select CRYPTO_LIB_SHA256 |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 909 | help |
| 910 | SHA256 secure hash standard (DFIPS 180-2). |
| 911 | |
| 912 | This version of SHA implements a 256 bit hash with 128 bits of |
| 913 | security against collision attacks. |
| 914 | |
Adrian Bunk | b6d4434 | 2008-07-16 19:28:00 +0800 | [diff] [blame] | 915 | This code also includes SHA-224, a 224 bit hash with 112 bits |
| 916 | of security against collision attacks. |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 917 | |
Markus Stockhausen | 2ecc1e9 | 2015-01-30 15:39:34 +0100 | [diff] [blame] | 918 | config CRYPTO_SHA256_PPC_SPE |
| 919 | tristate "SHA224 and SHA256 digest algorithm (PPC SPE)" |
| 920 | depends on PPC && SPE |
| 921 | select CRYPTO_SHA256 |
| 922 | select CRYPTO_HASH |
| 923 | help |
| 924 | SHA224 and SHA256 secure hash standard (DFIPS 180-2) |
| 925 | implemented using powerpc SPE SIMD instruction set. |
| 926 | |
Aaro Koskinen | efdb6f6 | 2015-03-08 22:07:47 +0200 | [diff] [blame] | 927 | config CRYPTO_SHA256_OCTEON |
| 928 | tristate "SHA224 and SHA256 digest algorithm (OCTEON)" |
| 929 | depends on CPU_CAVIUM_OCTEON |
| 930 | select CRYPTO_SHA256 |
| 931 | select CRYPTO_HASH |
| 932 | help |
| 933 | SHA-256 secure hash standard (DFIPS 180-2) implemented |
| 934 | using OCTEON crypto instructions, when available. |
| 935 | |
David S. Miller | 86c93b2 | 2012-08-19 17:11:37 -0700 | [diff] [blame] | 936 | config CRYPTO_SHA256_SPARC64 |
| 937 | tristate "SHA224 and SHA256 digest algorithm (SPARC64)" |
| 938 | depends on SPARC64 |
| 939 | select CRYPTO_SHA256 |
| 940 | select CRYPTO_HASH |
| 941 | help |
| 942 | SHA-256 secure hash standard (DFIPS 180-2) implemented |
| 943 | using sparc64 crypto instructions, when available. |
| 944 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 945 | config CRYPTO_SHA512 |
| 946 | tristate "SHA384 and SHA512 digest algorithms" |
Adrian-Ken Rueegsegger | bd9d20d | 2008-12-17 16:49:02 +1100 | [diff] [blame] | 947 | select CRYPTO_HASH |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 948 | help |
| 949 | SHA512 secure hash standard (DFIPS 180-2). |
| 950 | |
| 951 | This version of SHA implements a 512 bit hash with 256 bits of |
| 952 | security against collision attacks. |
| 953 | |
| 954 | This code also includes SHA-384, a 384 bit hash with 192 bits |
| 955 | of security against collision attacks. |
| 956 | |
Aaro Koskinen | efdb6f6 | 2015-03-08 22:07:47 +0200 | [diff] [blame] | 957 | config CRYPTO_SHA512_OCTEON |
| 958 | tristate "SHA384 and SHA512 digest algorithms (OCTEON)" |
| 959 | depends on CPU_CAVIUM_OCTEON |
| 960 | select CRYPTO_SHA512 |
| 961 | select CRYPTO_HASH |
| 962 | help |
| 963 | SHA-512 secure hash standard (DFIPS 180-2) implemented |
| 964 | using OCTEON crypto instructions, when available. |
| 965 | |
David S. Miller | 775e0c6 | 2012-08-19 17:37:56 -0700 | [diff] [blame] | 966 | config CRYPTO_SHA512_SPARC64 |
| 967 | tristate "SHA384 and SHA512 digest algorithm (SPARC64)" |
| 968 | depends on SPARC64 |
| 969 | select CRYPTO_SHA512 |
| 970 | select CRYPTO_HASH |
| 971 | help |
| 972 | SHA-512 secure hash standard (DFIPS 180-2) implemented |
| 973 | using sparc64 crypto instructions, when available. |
| 974 | |
Jeff Garzik | 53964b9 | 2016-06-17 10:30:35 +0530 | [diff] [blame] | 975 | config CRYPTO_SHA3 |
| 976 | tristate "SHA3 digest algorithm" |
| 977 | select CRYPTO_HASH |
| 978 | help |
| 979 | SHA-3 secure hash standard (DFIPS 202). It's based on |
| 980 | cryptographic sponge function family called Keccak. |
| 981 | |
| 982 | References: |
| 983 | http://keccak.noekeon.org/ |
| 984 | |
Gilad Ben-Yossef | 4f0fc16 | 2017-08-21 13:51:28 +0300 | [diff] [blame] | 985 | config CRYPTO_SM3 |
| 986 | tristate "SM3 digest algorithm" |
| 987 | select CRYPTO_HASH |
| 988 | help |
| 989 | SM3 secure hash function as defined by OSCCA GM/T 0004-2012 SM3). |
| 990 | It is part of the Chinese Commercial Cryptography suite. |
| 991 | |
| 992 | References: |
| 993 | http://www.oscca.gov.cn/UpFile/20101222141857786.pdf |
| 994 | https://datatracker.ietf.org/doc/html/draft-shen-sm3-hash |
| 995 | |
Vitaly Chikunov | fe18957 | 2018-11-07 00:00:01 +0300 | [diff] [blame] | 996 | config CRYPTO_STREEBOG |
| 997 | tristate "Streebog Hash Function" |
| 998 | select CRYPTO_HASH |
| 999 | help |
| 1000 | Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian |
| 1001 | cryptographic standard algorithms (called GOST algorithms). |
| 1002 | This setting enables two hash algorithms with 256 and 512 bits output. |
| 1003 | |
| 1004 | References: |
| 1005 | https://tc26.ru/upload/iblock/fed/feddbb4d26b685903faa2ba11aea43f6.pdf |
| 1006 | https://tools.ietf.org/html/rfc6986 |
| 1007 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1008 | config CRYPTO_TGR192 |
| 1009 | tristate "Tiger digest algorithms" |
Adrian-Ken Rueegsegger | f63fbd3 | 2008-12-03 19:58:32 +0800 | [diff] [blame] | 1010 | select CRYPTO_HASH |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1011 | help |
| 1012 | Tiger hash algorithm 192, 160 and 128-bit hashes |
| 1013 | |
| 1014 | Tiger is a hash function optimized for 64-bit processors while |
| 1015 | still having decent performance on 32-bit processors. |
| 1016 | Tiger was developed by Ross Anderson and Eli Biham. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1017 | |
| 1018 | See also: |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1019 | <http://www.cs.technion.ac.il/~biham/Reports/Tiger/>. |
| 1020 | |
| 1021 | config CRYPTO_WP512 |
| 1022 | tristate "Whirlpool digest algorithms" |
Adrian-Ken Rueegsegger | 4946510 | 2008-12-07 19:34:37 +0800 | [diff] [blame] | 1023 | select CRYPTO_HASH |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1024 | help |
| 1025 | Whirlpool hash algorithm 512, 384 and 256-bit hashes |
| 1026 | |
| 1027 | Whirlpool-512 is part of the NESSIE cryptographic primitives. |
| 1028 | Whirlpool will be part of the ISO/IEC 10118-3:2003(E) standard |
| 1029 | |
| 1030 | See also: |
Justin P. Mattock | 6d8de74 | 2010-09-12 10:42:47 +0800 | [diff] [blame] | 1031 | <http://www.larc.usp.br/~pbarreto/WhirlpoolPage.html> |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1032 | |
Huang Ying | 0e1227d | 2009-10-19 11:53:06 +0900 | [diff] [blame] | 1033 | config CRYPTO_GHASH_CLMUL_NI_INTEL |
Eric Biggers | 8dfa20f | 2019-07-19 23:09:18 -0700 | [diff] [blame] | 1034 | tristate "GHASH hash function (CLMUL-NI accelerated)" |
Richard Weinberger | 8af0086 | 2011-06-08 20:56:29 +0800 | [diff] [blame] | 1035 | depends on X86 && 64BIT |
Huang Ying | 0e1227d | 2009-10-19 11:53:06 +0900 | [diff] [blame] | 1036 | select CRYPTO_CRYPTD |
| 1037 | help |
Eric Biggers | 8dfa20f | 2019-07-19 23:09:18 -0700 | [diff] [blame] | 1038 | This is the x86_64 CLMUL-NI accelerated implementation of |
| 1039 | GHASH, the hash function used in GCM (Galois/Counter mode). |
Huang Ying | 0e1227d | 2009-10-19 11:53:06 +0900 | [diff] [blame] | 1040 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1041 | comment "Ciphers" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1042 | |
| 1043 | config CRYPTO_AES |
| 1044 | tristate "AES cipher algorithms" |
Herbert Xu | cce9e06 | 2006-08-21 21:08:13 +1000 | [diff] [blame] | 1045 | select CRYPTO_ALGAPI |
Ard Biesheuvel | 5bb12d7 | 2019-07-02 21:41:33 +0200 | [diff] [blame] | 1046 | select CRYPTO_LIB_AES |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1047 | help |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1048 | AES cipher algorithms (FIPS-197). AES uses the Rijndael |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1049 | algorithm. |
| 1050 | |
| 1051 | Rijndael appears to be consistently a very good performer in |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1052 | both hardware and software across a wide range of computing |
| 1053 | environments regardless of its use in feedback or non-feedback |
| 1054 | modes. Its key setup time is excellent, and its key agility is |
| 1055 | good. Rijndael's very low memory requirements make it very well |
| 1056 | suited for restricted-space environments, in which it also |
| 1057 | demonstrates excellent performance. Rijndael's operations are |
| 1058 | among the easiest to defend against power and timing attacks. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1059 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1060 | The AES specifies three key sizes: 128, 192 and 256 bits |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1061 | |
| 1062 | See <http://csrc.nist.gov/CryptoToolkit/aes/> for more information. |
| 1063 | |
Ard Biesheuvel | b5e0b03 | 2017-02-02 16:37:40 +0000 | [diff] [blame] | 1064 | config CRYPTO_AES_TI |
| 1065 | tristate "Fixed time AES cipher" |
| 1066 | select CRYPTO_ALGAPI |
Ard Biesheuvel | e59c1c9 | 2019-07-02 21:41:22 +0200 | [diff] [blame] | 1067 | select CRYPTO_LIB_AES |
Ard Biesheuvel | b5e0b03 | 2017-02-02 16:37:40 +0000 | [diff] [blame] | 1068 | help |
| 1069 | This is a generic implementation of AES that attempts to eliminate |
| 1070 | data dependent latencies as much as possible without affecting |
| 1071 | performance too much. It is intended for use by the generic CCM |
| 1072 | and GCM drivers, and other CTR or CMAC/XCBC based modes that rely |
| 1073 | solely on encryption (although decryption is supported as well, but |
| 1074 | with a more dramatic performance hit) |
| 1075 | |
| 1076 | Instead of using 16 lookup tables of 1 KB each, (8 for encryption and |
| 1077 | 8 for decryption), this implementation only uses just two S-boxes of |
| 1078 | 256 bytes each, and attempts to eliminate data dependent latencies by |
| 1079 | prefetching the entire table into the cache at the start of each |
Eric Biggers | 0a6a40c | 2018-10-17 21:37:58 -0700 | [diff] [blame] | 1080 | block. Interrupts are also disabled to avoid races where cachelines |
| 1081 | are evicted when the CPU is interrupted to do something else. |
Ard Biesheuvel | b5e0b03 | 2017-02-02 16:37:40 +0000 | [diff] [blame] | 1082 | |
Huang Ying | 54b6a1b | 2009-01-18 16:28:34 +1100 | [diff] [blame] | 1083 | config CRYPTO_AES_NI_INTEL |
| 1084 | tristate "AES cipher algorithms (AES-NI)" |
Richard Weinberger | 8af0086 | 2011-06-08 20:56:29 +0800 | [diff] [blame] | 1085 | depends on X86 |
Herbert Xu | 8567186 | 2016-11-22 20:08:33 +0800 | [diff] [blame] | 1086 | select CRYPTO_AEAD |
Ard Biesheuvel | 2c53fd1 | 2019-07-02 21:41:23 +0200 | [diff] [blame] | 1087 | select CRYPTO_LIB_AES |
Huang Ying | 54b6a1b | 2009-01-18 16:28:34 +1100 | [diff] [blame] | 1088 | select CRYPTO_ALGAPI |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1089 | select CRYPTO_SKCIPHER |
Jussi Kivilinna | 7643a11 | 2013-04-10 18:39:20 +0300 | [diff] [blame] | 1090 | select CRYPTO_GLUE_HELPER_X86 if 64BIT |
Herbert Xu | 8567186 | 2016-11-22 20:08:33 +0800 | [diff] [blame] | 1091 | select CRYPTO_SIMD |
Huang Ying | 54b6a1b | 2009-01-18 16:28:34 +1100 | [diff] [blame] | 1092 | help |
| 1093 | Use Intel AES-NI instructions for AES algorithm. |
| 1094 | |
| 1095 | AES cipher algorithms (FIPS-197). AES uses the Rijndael |
| 1096 | algorithm. |
| 1097 | |
| 1098 | Rijndael appears to be consistently a very good performer in |
| 1099 | both hardware and software across a wide range of computing |
| 1100 | environments regardless of its use in feedback or non-feedback |
| 1101 | modes. Its key setup time is excellent, and its key agility is |
| 1102 | good. Rijndael's very low memory requirements make it very well |
| 1103 | suited for restricted-space environments, in which it also |
| 1104 | demonstrates excellent performance. Rijndael's operations are |
| 1105 | among the easiest to defend against power and timing attacks. |
| 1106 | |
| 1107 | The AES specifies three key sizes: 128, 192 and 256 bits |
| 1108 | |
| 1109 | See <http://csrc.nist.gov/encryption/aes/> for more information. |
| 1110 | |
Mathias Krause | 0d258ef | 2010-11-27 16:34:46 +0800 | [diff] [blame] | 1111 | In addition to AES cipher algorithm support, the acceleration |
| 1112 | for some popular block cipher mode is supported too, including |
Ard Biesheuvel | 944585a | 2018-09-24 14:48:16 +0200 | [diff] [blame] | 1113 | ECB, CBC, LRW, XTS. The 64 bit version has additional |
Mathias Krause | 0d258ef | 2010-11-27 16:34:46 +0800 | [diff] [blame] | 1114 | acceleration for CTR. |
Huang Ying | 2cf4ac8 | 2009-03-29 15:41:20 +0800 | [diff] [blame] | 1115 | |
David S. Miller | 9bf4852 | 2012-08-21 03:58:13 -0700 | [diff] [blame] | 1116 | config CRYPTO_AES_SPARC64 |
| 1117 | tristate "AES cipher algorithms (SPARC64)" |
| 1118 | depends on SPARC64 |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1119 | select CRYPTO_SKCIPHER |
David S. Miller | 9bf4852 | 2012-08-21 03:58:13 -0700 | [diff] [blame] | 1120 | help |
| 1121 | Use SPARC64 crypto opcodes for AES algorithm. |
| 1122 | |
| 1123 | AES cipher algorithms (FIPS-197). AES uses the Rijndael |
| 1124 | algorithm. |
| 1125 | |
| 1126 | Rijndael appears to be consistently a very good performer in |
| 1127 | both hardware and software across a wide range of computing |
| 1128 | environments regardless of its use in feedback or non-feedback |
| 1129 | modes. Its key setup time is excellent, and its key agility is |
| 1130 | good. Rijndael's very low memory requirements make it very well |
| 1131 | suited for restricted-space environments, in which it also |
| 1132 | demonstrates excellent performance. Rijndael's operations are |
| 1133 | among the easiest to defend against power and timing attacks. |
| 1134 | |
| 1135 | The AES specifies three key sizes: 128, 192 and 256 bits |
| 1136 | |
| 1137 | See <http://csrc.nist.gov/encryption/aes/> for more information. |
| 1138 | |
| 1139 | In addition to AES cipher algorithm support, the acceleration |
| 1140 | for some popular block cipher mode is supported too, including |
| 1141 | ECB and CBC. |
| 1142 | |
Markus Stockhausen | 504c614 | 2015-02-22 10:00:10 +0100 | [diff] [blame] | 1143 | config CRYPTO_AES_PPC_SPE |
| 1144 | tristate "AES cipher algorithms (PPC SPE)" |
| 1145 | depends on PPC && SPE |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1146 | select CRYPTO_SKCIPHER |
Markus Stockhausen | 504c614 | 2015-02-22 10:00:10 +0100 | [diff] [blame] | 1147 | help |
| 1148 | AES cipher algorithms (FIPS-197). Additionally the acceleration |
| 1149 | for popular block cipher modes ECB, CBC, CTR and XTS is supported. |
| 1150 | This module should only be used for low power (router) devices |
| 1151 | without hardware AES acceleration (e.g. caam crypto). It reduces the |
| 1152 | size of the AES tables from 16KB to 8KB + 256 bytes and mitigates |
| 1153 | timining attacks. Nevertheless it might be not as secure as other |
| 1154 | architecture specific assembler implementations that work on 1KB |
| 1155 | tables or 256 bytes S-boxes. |
| 1156 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1157 | config CRYPTO_ANUBIS |
| 1158 | tristate "Anubis cipher algorithm" |
| 1159 | select CRYPTO_ALGAPI |
| 1160 | help |
| 1161 | Anubis cipher algorithm. |
| 1162 | |
| 1163 | Anubis is a variable key length cipher which can use keys from |
| 1164 | 128 bits to 320 bits in length. It was evaluated as a entrant |
| 1165 | in the NESSIE competition. |
| 1166 | |
| 1167 | See also: |
Justin P. Mattock | 6d8de74 | 2010-09-12 10:42:47 +0800 | [diff] [blame] | 1168 | <https://www.cosic.esat.kuleuven.be/nessie/reports/> |
| 1169 | <http://www.larc.usp.br/~pbarreto/AnubisPage.html> |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1170 | |
| 1171 | config CRYPTO_ARC4 |
| 1172 | tristate "ARC4 cipher algorithm" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1173 | select CRYPTO_SKCIPHER |
Ard Biesheuvel | dc51f25 | 2019-06-12 18:19:53 +0200 | [diff] [blame] | 1174 | select CRYPTO_LIB_ARC4 |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1175 | help |
| 1176 | ARC4 cipher algorithm. |
| 1177 | |
| 1178 | ARC4 is a stream cipher using keys ranging from 8 bits to 2048 |
| 1179 | bits in length. This algorithm is required for driver-based |
| 1180 | WEP, but it should not be for other purposes because of the |
| 1181 | weakness of the algorithm. |
| 1182 | |
| 1183 | config CRYPTO_BLOWFISH |
| 1184 | tristate "Blowfish cipher algorithm" |
| 1185 | select CRYPTO_ALGAPI |
Jussi Kivilinna | 52ba867 | 2011-09-02 01:45:07 +0300 | [diff] [blame] | 1186 | select CRYPTO_BLOWFISH_COMMON |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1187 | help |
| 1188 | Blowfish cipher algorithm, by Bruce Schneier. |
| 1189 | |
| 1190 | This is a variable key length cipher which can use keys from 32 |
| 1191 | bits to 448 bits in length. It's fast, simple and specifically |
| 1192 | designed for use on "large microprocessors". |
| 1193 | |
| 1194 | See also: |
| 1195 | <http://www.schneier.com/blowfish.html> |
| 1196 | |
Jussi Kivilinna | 52ba867 | 2011-09-02 01:45:07 +0300 | [diff] [blame] | 1197 | config CRYPTO_BLOWFISH_COMMON |
| 1198 | tristate |
| 1199 | help |
| 1200 | Common parts of the Blowfish cipher algorithm shared by the |
| 1201 | generic c and the assembler implementations. |
| 1202 | |
| 1203 | See also: |
| 1204 | <http://www.schneier.com/blowfish.html> |
| 1205 | |
Jussi Kivilinna | 64b94ce | 2011-09-02 01:45:22 +0300 | [diff] [blame] | 1206 | config CRYPTO_BLOWFISH_X86_64 |
| 1207 | tristate "Blowfish cipher algorithm (x86_64)" |
Al Viro | f21a7c1 | 2012-04-08 20:31:22 -0400 | [diff] [blame] | 1208 | depends on X86 && 64BIT |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1209 | select CRYPTO_SKCIPHER |
Jussi Kivilinna | 64b94ce | 2011-09-02 01:45:22 +0300 | [diff] [blame] | 1210 | select CRYPTO_BLOWFISH_COMMON |
| 1211 | help |
| 1212 | Blowfish cipher algorithm (x86_64), by Bruce Schneier. |
| 1213 | |
| 1214 | This is a variable key length cipher which can use keys from 32 |
| 1215 | bits to 448 bits in length. It's fast, simple and specifically |
| 1216 | designed for use on "large microprocessors". |
| 1217 | |
| 1218 | See also: |
| 1219 | <http://www.schneier.com/blowfish.html> |
| 1220 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1221 | config CRYPTO_CAMELLIA |
| 1222 | tristate "Camellia cipher algorithms" |
| 1223 | depends on CRYPTO |
| 1224 | select CRYPTO_ALGAPI |
| 1225 | help |
| 1226 | Camellia cipher algorithms module. |
| 1227 | |
| 1228 | Camellia is a symmetric key block cipher developed jointly |
| 1229 | at NTT and Mitsubishi Electric Corporation. |
| 1230 | |
| 1231 | The Camellia specifies three key sizes: 128, 192 and 256 bits. |
| 1232 | |
| 1233 | See also: |
| 1234 | <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html> |
| 1235 | |
Jussi Kivilinna | 0b95ec5 | 2012-03-05 20:26:47 +0200 | [diff] [blame] | 1236 | config CRYPTO_CAMELLIA_X86_64 |
| 1237 | tristate "Camellia cipher algorithm (x86_64)" |
Al Viro | f21a7c1 | 2012-04-08 20:31:22 -0400 | [diff] [blame] | 1238 | depends on X86 && 64BIT |
Jussi Kivilinna | 0b95ec5 | 2012-03-05 20:26:47 +0200 | [diff] [blame] | 1239 | depends on CRYPTO |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1240 | select CRYPTO_SKCIPHER |
Jussi Kivilinna | 964263a | 2012-06-18 14:07:29 +0300 | [diff] [blame] | 1241 | select CRYPTO_GLUE_HELPER_X86 |
Jussi Kivilinna | 0b95ec5 | 2012-03-05 20:26:47 +0200 | [diff] [blame] | 1242 | help |
| 1243 | Camellia cipher algorithm module (x86_64). |
| 1244 | |
| 1245 | Camellia is a symmetric key block cipher developed jointly |
| 1246 | at NTT and Mitsubishi Electric Corporation. |
| 1247 | |
| 1248 | The Camellia specifies three key sizes: 128, 192 and 256 bits. |
| 1249 | |
| 1250 | See also: |
| 1251 | <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html> |
| 1252 | |
Jussi Kivilinna | d9b1d2e | 2012-10-26 14:49:01 +0300 | [diff] [blame] | 1253 | config CRYPTO_CAMELLIA_AESNI_AVX_X86_64 |
| 1254 | tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX)" |
| 1255 | depends on X86 && 64BIT |
| 1256 | depends on CRYPTO |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1257 | select CRYPTO_SKCIPHER |
Jussi Kivilinna | d9b1d2e | 2012-10-26 14:49:01 +0300 | [diff] [blame] | 1258 | select CRYPTO_CAMELLIA_X86_64 |
Eric Biggers | 44893bc | 2018-02-19 23:48:23 -0800 | [diff] [blame] | 1259 | select CRYPTO_GLUE_HELPER_X86 |
| 1260 | select CRYPTO_SIMD |
Jussi Kivilinna | d9b1d2e | 2012-10-26 14:49:01 +0300 | [diff] [blame] | 1261 | select CRYPTO_XTS |
| 1262 | help |
| 1263 | Camellia cipher algorithm module (x86_64/AES-NI/AVX). |
| 1264 | |
| 1265 | Camellia is a symmetric key block cipher developed jointly |
| 1266 | at NTT and Mitsubishi Electric Corporation. |
| 1267 | |
| 1268 | The Camellia specifies three key sizes: 128, 192 and 256 bits. |
| 1269 | |
| 1270 | See also: |
| 1271 | <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html> |
| 1272 | |
Jussi Kivilinna | f3f935a | 2013-04-13 13:47:00 +0300 | [diff] [blame] | 1273 | config CRYPTO_CAMELLIA_AESNI_AVX2_X86_64 |
| 1274 | tristate "Camellia cipher algorithm (x86_64/AES-NI/AVX2)" |
| 1275 | depends on X86 && 64BIT |
| 1276 | depends on CRYPTO |
Jussi Kivilinna | f3f935a | 2013-04-13 13:47:00 +0300 | [diff] [blame] | 1277 | select CRYPTO_CAMELLIA_AESNI_AVX_X86_64 |
Jussi Kivilinna | f3f935a | 2013-04-13 13:47:00 +0300 | [diff] [blame] | 1278 | help |
| 1279 | Camellia cipher algorithm module (x86_64/AES-NI/AVX2). |
| 1280 | |
| 1281 | Camellia is a symmetric key block cipher developed jointly |
| 1282 | at NTT and Mitsubishi Electric Corporation. |
| 1283 | |
| 1284 | The Camellia specifies three key sizes: 128, 192 and 256 bits. |
| 1285 | |
| 1286 | See also: |
| 1287 | <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html> |
| 1288 | |
David S. Miller | 81658ad | 2012-08-28 12:05:54 -0700 | [diff] [blame] | 1289 | config CRYPTO_CAMELLIA_SPARC64 |
| 1290 | tristate "Camellia cipher algorithm (SPARC64)" |
| 1291 | depends on SPARC64 |
| 1292 | depends on CRYPTO |
| 1293 | select CRYPTO_ALGAPI |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1294 | select CRYPTO_SKCIPHER |
David S. Miller | 81658ad | 2012-08-28 12:05:54 -0700 | [diff] [blame] | 1295 | help |
| 1296 | Camellia cipher algorithm module (SPARC64). |
| 1297 | |
| 1298 | Camellia is a symmetric key block cipher developed jointly |
| 1299 | at NTT and Mitsubishi Electric Corporation. |
| 1300 | |
| 1301 | The Camellia specifies three key sizes: 128, 192 and 256 bits. |
| 1302 | |
| 1303 | See also: |
| 1304 | <https://info.isl.ntt.co.jp/crypt/eng/camellia/index_s.html> |
| 1305 | |
Jussi Kivilinna | 044ab52 | 2012-11-13 11:43:14 +0200 | [diff] [blame] | 1306 | config CRYPTO_CAST_COMMON |
| 1307 | tristate |
| 1308 | help |
| 1309 | Common parts of the CAST cipher algorithms shared by the |
| 1310 | generic c and the assembler implementations. |
| 1311 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1312 | config CRYPTO_CAST5 |
| 1313 | tristate "CAST5 (CAST-128) cipher algorithm" |
Herbert Xu | cce9e06 | 2006-08-21 21:08:13 +1000 | [diff] [blame] | 1314 | select CRYPTO_ALGAPI |
Jussi Kivilinna | 044ab52 | 2012-11-13 11:43:14 +0200 | [diff] [blame] | 1315 | select CRYPTO_CAST_COMMON |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1316 | help |
| 1317 | The CAST5 encryption algorithm (synonymous with CAST-128) is |
| 1318 | described in RFC2144. |
| 1319 | |
Johannes Goetzfried | 4d6d6a2 | 2012-07-11 19:37:37 +0200 | [diff] [blame] | 1320 | config CRYPTO_CAST5_AVX_X86_64 |
| 1321 | tristate "CAST5 (CAST-128) cipher algorithm (x86_64/AVX)" |
| 1322 | depends on X86 && 64BIT |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1323 | select CRYPTO_SKCIPHER |
Johannes Goetzfried | 4d6d6a2 | 2012-07-11 19:37:37 +0200 | [diff] [blame] | 1324 | select CRYPTO_CAST5 |
Eric Biggers | 1e63183 | 2018-02-19 23:48:13 -0800 | [diff] [blame] | 1325 | select CRYPTO_CAST_COMMON |
| 1326 | select CRYPTO_SIMD |
Johannes Goetzfried | 4d6d6a2 | 2012-07-11 19:37:37 +0200 | [diff] [blame] | 1327 | help |
| 1328 | The CAST5 encryption algorithm (synonymous with CAST-128) is |
| 1329 | described in RFC2144. |
| 1330 | |
| 1331 | This module provides the Cast5 cipher algorithm that processes |
| 1332 | sixteen blocks parallel using the AVX instruction set. |
| 1333 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1334 | config CRYPTO_CAST6 |
| 1335 | tristate "CAST6 (CAST-256) cipher algorithm" |
Herbert Xu | cce9e06 | 2006-08-21 21:08:13 +1000 | [diff] [blame] | 1336 | select CRYPTO_ALGAPI |
Jussi Kivilinna | 044ab52 | 2012-11-13 11:43:14 +0200 | [diff] [blame] | 1337 | select CRYPTO_CAST_COMMON |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1338 | help |
| 1339 | The CAST6 encryption algorithm (synonymous with CAST-256) is |
| 1340 | described in RFC2612. |
| 1341 | |
Johannes Goetzfried | 4ea1277 | 2012-07-11 19:38:57 +0200 | [diff] [blame] | 1342 | config CRYPTO_CAST6_AVX_X86_64 |
| 1343 | tristate "CAST6 (CAST-256) cipher algorithm (x86_64/AVX)" |
| 1344 | depends on X86 && 64BIT |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1345 | select CRYPTO_SKCIPHER |
Johannes Goetzfried | 4ea1277 | 2012-07-11 19:38:57 +0200 | [diff] [blame] | 1346 | select CRYPTO_CAST6 |
Eric Biggers | 4bd9692 | 2018-02-19 23:48:15 -0800 | [diff] [blame] | 1347 | select CRYPTO_CAST_COMMON |
| 1348 | select CRYPTO_GLUE_HELPER_X86 |
| 1349 | select CRYPTO_SIMD |
Johannes Goetzfried | 4ea1277 | 2012-07-11 19:38:57 +0200 | [diff] [blame] | 1350 | select CRYPTO_XTS |
| 1351 | help |
| 1352 | The CAST6 encryption algorithm (synonymous with CAST-256) is |
| 1353 | described in RFC2612. |
| 1354 | |
| 1355 | This module provides the Cast6 cipher algorithm that processes |
| 1356 | eight blocks parallel using the AVX instruction set. |
| 1357 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1358 | config CRYPTO_DES |
| 1359 | tristate "DES and Triple DES EDE cipher algorithms" |
Herbert Xu | cce9e06 | 2006-08-21 21:08:13 +1000 | [diff] [blame] | 1360 | select CRYPTO_ALGAPI |
Ard Biesheuvel | 04007b0 | 2019-08-15 12:01:09 +0300 | [diff] [blame] | 1361 | select CRYPTO_LIB_DES |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1362 | help |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1363 | DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3). |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1364 | |
David S. Miller | c5aac2d | 2012-08-25 22:37:23 -0700 | [diff] [blame] | 1365 | config CRYPTO_DES_SPARC64 |
| 1366 | tristate "DES and Triple DES EDE cipher algorithms (SPARC64)" |
Dave Jones | 97da37b | 2012-10-02 17:13:20 -0400 | [diff] [blame] | 1367 | depends on SPARC64 |
David S. Miller | c5aac2d | 2012-08-25 22:37:23 -0700 | [diff] [blame] | 1368 | select CRYPTO_ALGAPI |
Ard Biesheuvel | 04007b0 | 2019-08-15 12:01:09 +0300 | [diff] [blame] | 1369 | select CRYPTO_LIB_DES |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1370 | select CRYPTO_SKCIPHER |
David S. Miller | c5aac2d | 2012-08-25 22:37:23 -0700 | [diff] [blame] | 1371 | help |
| 1372 | DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3), |
| 1373 | optimized using SPARC64 crypto opcodes. |
| 1374 | |
Jussi Kivilinna | 6574e6c | 2014-06-09 20:59:54 +0300 | [diff] [blame] | 1375 | config CRYPTO_DES3_EDE_X86_64 |
| 1376 | tristate "Triple DES EDE cipher algorithm (x86-64)" |
| 1377 | depends on X86 && 64BIT |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1378 | select CRYPTO_SKCIPHER |
Ard Biesheuvel | 04007b0 | 2019-08-15 12:01:09 +0300 | [diff] [blame] | 1379 | select CRYPTO_LIB_DES |
Jussi Kivilinna | 6574e6c | 2014-06-09 20:59:54 +0300 | [diff] [blame] | 1380 | help |
| 1381 | Triple DES EDE (FIPS 46-3) algorithm. |
| 1382 | |
| 1383 | This module provides implementation of the Triple DES EDE cipher |
| 1384 | algorithm that is optimized for x86-64 processors. Two versions of |
| 1385 | algorithm are provided; regular processing one input block and |
| 1386 | one that processes three blocks parallel. |
| 1387 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1388 | config CRYPTO_FCRYPT |
| 1389 | tristate "FCrypt cipher algorithm" |
Herbert Xu | cce9e06 | 2006-08-21 21:08:13 +1000 | [diff] [blame] | 1390 | select CRYPTO_ALGAPI |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1391 | select CRYPTO_SKCIPHER |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1392 | help |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1393 | FCrypt algorithm used by RxRPC. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1394 | |
| 1395 | config CRYPTO_KHAZAD |
| 1396 | tristate "Khazad cipher algorithm" |
Herbert Xu | cce9e06 | 2006-08-21 21:08:13 +1000 | [diff] [blame] | 1397 | select CRYPTO_ALGAPI |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1398 | help |
| 1399 | Khazad cipher algorithm. |
| 1400 | |
| 1401 | Khazad was a finalist in the initial NESSIE competition. It is |
| 1402 | an algorithm optimized for 64-bit processors with good performance |
| 1403 | on 32-bit processors. Khazad uses an 128 bit key size. |
| 1404 | |
| 1405 | See also: |
Justin P. Mattock | 6d8de74 | 2010-09-12 10:42:47 +0800 | [diff] [blame] | 1406 | <http://www.larc.usp.br/~pbarreto/KhazadPage.html> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1407 | |
Tan Swee Heng | 2407d60 | 2007-11-23 19:45:00 +0800 | [diff] [blame] | 1408 | config CRYPTO_SALSA20 |
Kees Cook | 3b4afaf | 2012-10-02 11:16:49 -0700 | [diff] [blame] | 1409 | tristate "Salsa20 stream cipher algorithm" |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1410 | select CRYPTO_SKCIPHER |
Tan Swee Heng | 2407d60 | 2007-11-23 19:45:00 +0800 | [diff] [blame] | 1411 | help |
| 1412 | Salsa20 stream cipher algorithm. |
| 1413 | |
| 1414 | Salsa20 is a stream cipher submitted to eSTREAM, the ECRYPT |
| 1415 | Stream Cipher Project. See <http://www.ecrypt.eu.org/stream/> |
| 1416 | |
| 1417 | The Salsa20 stream cipher algorithm is designed by Daniel J. |
| 1418 | Bernstein <djb@cr.yp.to>. See <http://cr.yp.to/snuffle.html> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1419 | |
Martin Willi | c08d0e6 | 2015-06-01 13:43:56 +0200 | [diff] [blame] | 1420 | config CRYPTO_CHACHA20 |
Eric Biggers | aa76240 | 2018-11-16 17:26:22 -0800 | [diff] [blame] | 1421 | tristate "ChaCha stream cipher algorithms" |
Ard Biesheuvel | 5fb8ef2 | 2019-11-08 13:22:08 +0100 | [diff] [blame] | 1422 | select CRYPTO_LIB_CHACHA_GENERIC |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1423 | select CRYPTO_SKCIPHER |
Martin Willi | c08d0e6 | 2015-06-01 13:43:56 +0200 | [diff] [blame] | 1424 | help |
Eric Biggers | aa76240 | 2018-11-16 17:26:22 -0800 | [diff] [blame] | 1425 | The ChaCha20, XChaCha20, and XChaCha12 stream cipher algorithms. |
Martin Willi | c08d0e6 | 2015-06-01 13:43:56 +0200 | [diff] [blame] | 1426 | |
| 1427 | ChaCha20 is a 256-bit high-speed stream cipher designed by Daniel J. |
| 1428 | Bernstein and further specified in RFC7539 for use in IETF protocols. |
Eric Biggers | de61d7a | 2018-11-16 17:26:20 -0800 | [diff] [blame] | 1429 | This is the portable C implementation of ChaCha20. See also: |
Martin Willi | c08d0e6 | 2015-06-01 13:43:56 +0200 | [diff] [blame] | 1430 | <http://cr.yp.to/chacha/chacha-20080128.pdf> |
| 1431 | |
Eric Biggers | de61d7a | 2018-11-16 17:26:20 -0800 | [diff] [blame] | 1432 | XChaCha20 is the application of the XSalsa20 construction to ChaCha20 |
| 1433 | rather than to Salsa20. XChaCha20 extends ChaCha20's nonce length |
| 1434 | from 64 bits (or 96 bits using the RFC7539 convention) to 192 bits, |
| 1435 | while provably retaining ChaCha20's security. See also: |
| 1436 | <https://cr.yp.to/snuffle/xsalsa-20081128.pdf> |
| 1437 | |
Eric Biggers | aa76240 | 2018-11-16 17:26:22 -0800 | [diff] [blame] | 1438 | XChaCha12 is XChaCha20 reduced to 12 rounds, with correspondingly |
| 1439 | reduced security margin but increased performance. It can be needed |
| 1440 | in some performance-sensitive scenarios. |
| 1441 | |
Martin Willi | c9320b6 | 2015-07-16 19:14:01 +0200 | [diff] [blame] | 1442 | config CRYPTO_CHACHA20_X86_64 |
Eric Biggers | 4af7826 | 2018-12-04 22:20:02 -0800 | [diff] [blame] | 1443 | tristate "ChaCha stream cipher algorithms (x86_64/SSSE3/AVX2/AVX-512VL)" |
Martin Willi | c9320b6 | 2015-07-16 19:14:01 +0200 | [diff] [blame] | 1444 | depends on X86 && 64BIT |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1445 | select CRYPTO_SKCIPHER |
Ard Biesheuvel | 28e8d89 | 2019-11-08 13:22:09 +0100 | [diff] [blame] | 1446 | select CRYPTO_LIB_CHACHA_GENERIC |
Ard Biesheuvel | 84e03fa | 2019-11-08 13:22:10 +0100 | [diff] [blame] | 1447 | select CRYPTO_ARCH_HAVE_LIB_CHACHA |
Martin Willi | c9320b6 | 2015-07-16 19:14:01 +0200 | [diff] [blame] | 1448 | help |
Eric Biggers | 7a507d6 | 2018-12-04 22:20:04 -0800 | [diff] [blame] | 1449 | SSSE3, AVX2, and AVX-512VL optimized implementations of the ChaCha20, |
| 1450 | XChaCha20, and XChaCha12 stream ciphers. |
Martin Willi | c9320b6 | 2015-07-16 19:14:01 +0200 | [diff] [blame] | 1451 | |
Ard Biesheuvel | 3a2f58f | 2019-11-08 13:22:17 +0100 | [diff] [blame] | 1452 | config CRYPTO_CHACHA_MIPS |
| 1453 | tristate "ChaCha stream cipher algorithms (MIPS 32r2 optimized)" |
| 1454 | depends on CPU_MIPS32_R2 |
| 1455 | select CRYPTO_BLKCIPHER |
| 1456 | select CRYPTO_ARCH_HAVE_LIB_CHACHA |
| 1457 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1458 | config CRYPTO_SEED |
| 1459 | tristate "SEED cipher algorithm" |
| 1460 | select CRYPTO_ALGAPI |
| 1461 | help |
| 1462 | SEED cipher algorithm (RFC4269). |
| 1463 | |
| 1464 | SEED is a 128-bit symmetric key block cipher that has been |
| 1465 | developed by KISA (Korea Information Security Agency) as a |
| 1466 | national standard encryption algorithm of the Republic of Korea. |
| 1467 | It is a 16 round block cipher with the key size of 128 bit. |
| 1468 | |
| 1469 | See also: |
| 1470 | <http://www.kisa.or.kr/kisa/seed/jsp/seed_eng.jsp> |
| 1471 | |
| 1472 | config CRYPTO_SERPENT |
| 1473 | tristate "Serpent cipher algorithm" |
| 1474 | select CRYPTO_ALGAPI |
| 1475 | help |
| 1476 | Serpent cipher algorithm, by Anderson, Biham & Knudsen. |
| 1477 | |
| 1478 | Keys are allowed to be from 0 to 256 bits in length, in steps |
| 1479 | of 8 bits. Also includes the 'Tnepres' algorithm, a reversed |
| 1480 | variant of Serpent for compatibility with old kerneli.org code. |
| 1481 | |
| 1482 | See also: |
| 1483 | <http://www.cl.cam.ac.uk/~rja14/serpent.html> |
| 1484 | |
Jussi Kivilinna | 937c30d | 2011-11-09 16:26:25 +0200 | [diff] [blame] | 1485 | config CRYPTO_SERPENT_SSE2_X86_64 |
| 1486 | tristate "Serpent cipher algorithm (x86_64/SSE2)" |
| 1487 | depends on X86 && 64BIT |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1488 | select CRYPTO_SKCIPHER |
Jussi Kivilinna | 596d875 | 2012-06-18 14:07:19 +0300 | [diff] [blame] | 1489 | select CRYPTO_GLUE_HELPER_X86 |
Jussi Kivilinna | 937c30d | 2011-11-09 16:26:25 +0200 | [diff] [blame] | 1490 | select CRYPTO_SERPENT |
Eric Biggers | e0f409d | 2018-02-19 23:48:03 -0800 | [diff] [blame] | 1491 | select CRYPTO_SIMD |
Jussi Kivilinna | 937c30d | 2011-11-09 16:26:25 +0200 | [diff] [blame] | 1492 | help |
| 1493 | Serpent cipher algorithm, by Anderson, Biham & Knudsen. |
| 1494 | |
| 1495 | Keys are allowed to be from 0 to 256 bits in length, in steps |
| 1496 | of 8 bits. |
| 1497 | |
Masanari Iida | 1e6232f | 2015-04-04 00:20:30 +0900 | [diff] [blame] | 1498 | This module provides Serpent cipher algorithm that processes eight |
Jussi Kivilinna | 937c30d | 2011-11-09 16:26:25 +0200 | [diff] [blame] | 1499 | blocks parallel using SSE2 instruction set. |
| 1500 | |
| 1501 | See also: |
| 1502 | <http://www.cl.cam.ac.uk/~rja14/serpent.html> |
| 1503 | |
Jussi Kivilinna | 251496d | 2011-11-09 16:26:31 +0200 | [diff] [blame] | 1504 | config CRYPTO_SERPENT_SSE2_586 |
| 1505 | tristate "Serpent cipher algorithm (i586/SSE2)" |
| 1506 | depends on X86 && !64BIT |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1507 | select CRYPTO_SKCIPHER |
Jussi Kivilinna | 596d875 | 2012-06-18 14:07:19 +0300 | [diff] [blame] | 1508 | select CRYPTO_GLUE_HELPER_X86 |
Jussi Kivilinna | 251496d | 2011-11-09 16:26:31 +0200 | [diff] [blame] | 1509 | select CRYPTO_SERPENT |
Eric Biggers | e0f409d | 2018-02-19 23:48:03 -0800 | [diff] [blame] | 1510 | select CRYPTO_SIMD |
Jussi Kivilinna | 251496d | 2011-11-09 16:26:31 +0200 | [diff] [blame] | 1511 | help |
| 1512 | Serpent cipher algorithm, by Anderson, Biham & Knudsen. |
| 1513 | |
| 1514 | Keys are allowed to be from 0 to 256 bits in length, in steps |
| 1515 | of 8 bits. |
| 1516 | |
| 1517 | This module provides Serpent cipher algorithm that processes four |
| 1518 | blocks parallel using SSE2 instruction set. |
| 1519 | |
| 1520 | See also: |
| 1521 | <http://www.cl.cam.ac.uk/~rja14/serpent.html> |
| 1522 | |
Johannes Goetzfried | 7efe407 | 2012-06-12 16:47:43 +0800 | [diff] [blame] | 1523 | config CRYPTO_SERPENT_AVX_X86_64 |
| 1524 | tristate "Serpent cipher algorithm (x86_64/AVX)" |
| 1525 | depends on X86 && 64BIT |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1526 | select CRYPTO_SKCIPHER |
Jussi Kivilinna | 1d0debb | 2012-06-18 14:07:24 +0300 | [diff] [blame] | 1527 | select CRYPTO_GLUE_HELPER_X86 |
Johannes Goetzfried | 7efe407 | 2012-06-12 16:47:43 +0800 | [diff] [blame] | 1528 | select CRYPTO_SERPENT |
Eric Biggers | e16bf97 | 2018-02-19 23:48:06 -0800 | [diff] [blame] | 1529 | select CRYPTO_SIMD |
Johannes Goetzfried | 7efe407 | 2012-06-12 16:47:43 +0800 | [diff] [blame] | 1530 | select CRYPTO_XTS |
| 1531 | help |
| 1532 | Serpent cipher algorithm, by Anderson, Biham & Knudsen. |
| 1533 | |
| 1534 | Keys are allowed to be from 0 to 256 bits in length, in steps |
| 1535 | of 8 bits. |
| 1536 | |
| 1537 | This module provides the Serpent cipher algorithm that processes |
| 1538 | eight blocks parallel using the AVX instruction set. |
| 1539 | |
| 1540 | See also: |
| 1541 | <http://www.cl.cam.ac.uk/~rja14/serpent.html> |
| 1542 | |
Jussi Kivilinna | 56d76c9 | 2013-04-13 13:46:55 +0300 | [diff] [blame] | 1543 | config CRYPTO_SERPENT_AVX2_X86_64 |
| 1544 | tristate "Serpent cipher algorithm (x86_64/AVX2)" |
| 1545 | depends on X86 && 64BIT |
Jussi Kivilinna | 56d76c9 | 2013-04-13 13:46:55 +0300 | [diff] [blame] | 1546 | select CRYPTO_SERPENT_AVX_X86_64 |
Jussi Kivilinna | 56d76c9 | 2013-04-13 13:46:55 +0300 | [diff] [blame] | 1547 | help |
| 1548 | Serpent cipher algorithm, by Anderson, Biham & Knudsen. |
| 1549 | |
| 1550 | Keys are allowed to be from 0 to 256 bits in length, in steps |
| 1551 | of 8 bits. |
| 1552 | |
| 1553 | This module provides Serpent cipher algorithm that processes 16 |
| 1554 | blocks parallel using AVX2 instruction set. |
| 1555 | |
| 1556 | See also: |
| 1557 | <http://www.cl.cam.ac.uk/~rja14/serpent.html> |
| 1558 | |
Gilad Ben-Yossef | 747c8ce | 2018-03-06 09:44:42 +0000 | [diff] [blame] | 1559 | config CRYPTO_SM4 |
| 1560 | tristate "SM4 cipher algorithm" |
| 1561 | select CRYPTO_ALGAPI |
| 1562 | help |
| 1563 | SM4 cipher algorithms (OSCCA GB/T 32907-2016). |
| 1564 | |
| 1565 | SM4 (GBT.32907-2016) is a cryptographic standard issued by the |
| 1566 | Organization of State Commercial Administration of China (OSCCA) |
| 1567 | as an authorized cryptographic algorithms for the use within China. |
| 1568 | |
| 1569 | SMS4 was originally created for use in protecting wireless |
| 1570 | networks, and is mandated in the Chinese National Standard for |
| 1571 | Wireless LAN WAPI (Wired Authentication and Privacy Infrastructure) |
| 1572 | (GB.15629.11-2003). |
| 1573 | |
| 1574 | The latest SM4 standard (GBT.32907-2016) was proposed by OSCCA and |
| 1575 | standardized through TC 260 of the Standardization Administration |
| 1576 | of the People's Republic of China (SAC). |
| 1577 | |
| 1578 | The input, output, and key of SMS4 are each 128 bits. |
| 1579 | |
| 1580 | See also: <https://eprint.iacr.org/2008/329.pdf> |
| 1581 | |
| 1582 | If unsure, say N. |
| 1583 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1584 | config CRYPTO_TEA |
| 1585 | tristate "TEA, XTEA and XETA cipher algorithms" |
| 1586 | select CRYPTO_ALGAPI |
| 1587 | help |
| 1588 | TEA cipher algorithm. |
| 1589 | |
| 1590 | Tiny Encryption Algorithm is a simple cipher that uses |
| 1591 | many rounds for security. It is very fast and uses |
| 1592 | little memory. |
| 1593 | |
| 1594 | Xtendend Tiny Encryption Algorithm is a modification to |
| 1595 | the TEA algorithm to address a potential key weakness |
| 1596 | in the TEA algorithm. |
| 1597 | |
| 1598 | Xtendend Encryption Tiny Algorithm is a mis-implementation |
| 1599 | of the XTEA algorithm for compatibility purposes. |
| 1600 | |
| 1601 | config CRYPTO_TWOFISH |
| 1602 | tristate "Twofish cipher algorithm" |
| 1603 | select CRYPTO_ALGAPI |
| 1604 | select CRYPTO_TWOFISH_COMMON |
| 1605 | help |
| 1606 | Twofish cipher algorithm. |
| 1607 | |
| 1608 | Twofish was submitted as an AES (Advanced Encryption Standard) |
| 1609 | candidate cipher by researchers at CounterPane Systems. It is a |
| 1610 | 16 round block cipher supporting key sizes of 128, 192, and 256 |
| 1611 | bits. |
| 1612 | |
| 1613 | See also: |
| 1614 | <http://www.schneier.com/twofish.html> |
| 1615 | |
| 1616 | config CRYPTO_TWOFISH_COMMON |
| 1617 | tristate |
| 1618 | help |
| 1619 | Common parts of the Twofish cipher algorithm shared by the |
| 1620 | generic c and the assembler implementations. |
| 1621 | |
| 1622 | config CRYPTO_TWOFISH_586 |
| 1623 | tristate "Twofish cipher algorithms (i586)" |
| 1624 | depends on (X86 || UML_X86) && !64BIT |
| 1625 | select CRYPTO_ALGAPI |
| 1626 | select CRYPTO_TWOFISH_COMMON |
| 1627 | help |
| 1628 | Twofish cipher algorithm. |
| 1629 | |
| 1630 | Twofish was submitted as an AES (Advanced Encryption Standard) |
| 1631 | candidate cipher by researchers at CounterPane Systems. It is a |
| 1632 | 16 round block cipher supporting key sizes of 128, 192, and 256 |
| 1633 | bits. |
| 1634 | |
| 1635 | See also: |
| 1636 | <http://www.schneier.com/twofish.html> |
| 1637 | |
| 1638 | config CRYPTO_TWOFISH_X86_64 |
| 1639 | tristate "Twofish cipher algorithm (x86_64)" |
| 1640 | depends on (X86 || UML_X86) && 64BIT |
| 1641 | select CRYPTO_ALGAPI |
| 1642 | select CRYPTO_TWOFISH_COMMON |
| 1643 | help |
| 1644 | Twofish cipher algorithm (x86_64). |
| 1645 | |
| 1646 | Twofish was submitted as an AES (Advanced Encryption Standard) |
| 1647 | candidate cipher by researchers at CounterPane Systems. It is a |
| 1648 | 16 round block cipher supporting key sizes of 128, 192, and 256 |
| 1649 | bits. |
| 1650 | |
| 1651 | See also: |
| 1652 | <http://www.schneier.com/twofish.html> |
| 1653 | |
Jussi Kivilinna | 8280daa | 2011-09-26 16:47:25 +0300 | [diff] [blame] | 1654 | config CRYPTO_TWOFISH_X86_64_3WAY |
| 1655 | tristate "Twofish cipher algorithm (x86_64, 3-way parallel)" |
Al Viro | f21a7c1 | 2012-04-08 20:31:22 -0400 | [diff] [blame] | 1656 | depends on X86 && 64BIT |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1657 | select CRYPTO_SKCIPHER |
Jussi Kivilinna | 8280daa | 2011-09-26 16:47:25 +0300 | [diff] [blame] | 1658 | select CRYPTO_TWOFISH_COMMON |
| 1659 | select CRYPTO_TWOFISH_X86_64 |
Jussi Kivilinna | 414cb5e | 2012-06-18 14:07:34 +0300 | [diff] [blame] | 1660 | select CRYPTO_GLUE_HELPER_X86 |
Jussi Kivilinna | 8280daa | 2011-09-26 16:47:25 +0300 | [diff] [blame] | 1661 | help |
| 1662 | Twofish cipher algorithm (x86_64, 3-way parallel). |
| 1663 | |
| 1664 | Twofish was submitted as an AES (Advanced Encryption Standard) |
| 1665 | candidate cipher by researchers at CounterPane Systems. It is a |
| 1666 | 16 round block cipher supporting key sizes of 128, 192, and 256 |
| 1667 | bits. |
| 1668 | |
| 1669 | This module provides Twofish cipher algorithm that processes three |
| 1670 | blocks parallel, utilizing resources of out-of-order CPUs better. |
| 1671 | |
| 1672 | See also: |
| 1673 | <http://www.schneier.com/twofish.html> |
| 1674 | |
Johannes Goetzfried | 107778b5 | 2012-05-28 15:54:24 +0200 | [diff] [blame] | 1675 | config CRYPTO_TWOFISH_AVX_X86_64 |
| 1676 | tristate "Twofish cipher algorithm (x86_64/AVX)" |
| 1677 | depends on X86 && 64BIT |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1678 | select CRYPTO_SKCIPHER |
Jussi Kivilinna | a7378d4 | 2012-06-18 14:07:39 +0300 | [diff] [blame] | 1679 | select CRYPTO_GLUE_HELPER_X86 |
Eric Biggers | 0e6ab46 | 2018-02-19 23:48:11 -0800 | [diff] [blame] | 1680 | select CRYPTO_SIMD |
Johannes Goetzfried | 107778b5 | 2012-05-28 15:54:24 +0200 | [diff] [blame] | 1681 | select CRYPTO_TWOFISH_COMMON |
| 1682 | select CRYPTO_TWOFISH_X86_64 |
| 1683 | select CRYPTO_TWOFISH_X86_64_3WAY |
Johannes Goetzfried | 107778b5 | 2012-05-28 15:54:24 +0200 | [diff] [blame] | 1684 | help |
| 1685 | Twofish cipher algorithm (x86_64/AVX). |
| 1686 | |
| 1687 | Twofish was submitted as an AES (Advanced Encryption Standard) |
| 1688 | candidate cipher by researchers at CounterPane Systems. It is a |
| 1689 | 16 round block cipher supporting key sizes of 128, 192, and 256 |
| 1690 | bits. |
| 1691 | |
| 1692 | This module provides the Twofish cipher algorithm that processes |
| 1693 | eight blocks parallel using the AVX Instruction Set. |
| 1694 | |
| 1695 | See also: |
| 1696 | <http://www.schneier.com/twofish.html> |
| 1697 | |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1698 | comment "Compression" |
| 1699 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1700 | config CRYPTO_DEFLATE |
| 1701 | tristate "Deflate compression algorithm" |
Herbert Xu | cce9e06 | 2006-08-21 21:08:13 +1000 | [diff] [blame] | 1702 | select CRYPTO_ALGAPI |
Giovanni Cabiddu | f6ded09 | 2016-10-21 13:19:53 +0100 | [diff] [blame] | 1703 | select CRYPTO_ACOMP2 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1704 | select ZLIB_INFLATE |
| 1705 | select ZLIB_DEFLATE |
| 1706 | help |
| 1707 | This is the Deflate algorithm (RFC1951), specified for use in |
| 1708 | IPSec with the IPCOMP protocol (RFC3173, RFC2394). |
Sebastian Siewior | 584fffc | 2008-04-05 21:04:48 +0800 | [diff] [blame] | 1709 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1710 | You will most probably want this if using IPSec. |
| 1711 | |
Zoltan Sogor | 0b77abb | 2007-12-07 16:53:23 +0800 | [diff] [blame] | 1712 | config CRYPTO_LZO |
| 1713 | tristate "LZO compression algorithm" |
| 1714 | select CRYPTO_ALGAPI |
Giovanni Cabiddu | ac9d2c4 | 2016-10-21 13:19:49 +0100 | [diff] [blame] | 1715 | select CRYPTO_ACOMP2 |
Zoltan Sogor | 0b77abb | 2007-12-07 16:53:23 +0800 | [diff] [blame] | 1716 | select LZO_COMPRESS |
| 1717 | select LZO_DECOMPRESS |
| 1718 | help |
| 1719 | This is the LZO algorithm. |
| 1720 | |
Seth Jennings | 35a1fc1 | 2012-07-19 09:42:41 -0500 | [diff] [blame] | 1721 | config CRYPTO_842 |
| 1722 | tristate "842 compression algorithm" |
Dan Streetman | 2062c5b | 2015-05-07 13:49:15 -0400 | [diff] [blame] | 1723 | select CRYPTO_ALGAPI |
Giovanni Cabiddu | 6a8de3a | 2016-10-21 13:19:52 +0100 | [diff] [blame] | 1724 | select CRYPTO_ACOMP2 |
Dan Streetman | 2062c5b | 2015-05-07 13:49:15 -0400 | [diff] [blame] | 1725 | select 842_COMPRESS |
| 1726 | select 842_DECOMPRESS |
Seth Jennings | 35a1fc1 | 2012-07-19 09:42:41 -0500 | [diff] [blame] | 1727 | help |
| 1728 | This is the 842 algorithm. |
| 1729 | |
Chanho Min | 0ea8530 | 2013-07-08 16:01:51 -0700 | [diff] [blame] | 1730 | config CRYPTO_LZ4 |
| 1731 | tristate "LZ4 compression algorithm" |
| 1732 | select CRYPTO_ALGAPI |
Giovanni Cabiddu | 8cd9330 | 2016-10-21 13:19:50 +0100 | [diff] [blame] | 1733 | select CRYPTO_ACOMP2 |
Chanho Min | 0ea8530 | 2013-07-08 16:01:51 -0700 | [diff] [blame] | 1734 | select LZ4_COMPRESS |
| 1735 | select LZ4_DECOMPRESS |
| 1736 | help |
| 1737 | This is the LZ4 algorithm. |
| 1738 | |
| 1739 | config CRYPTO_LZ4HC |
| 1740 | tristate "LZ4HC compression algorithm" |
| 1741 | select CRYPTO_ALGAPI |
Giovanni Cabiddu | 91d53d9 | 2016-10-21 13:19:51 +0100 | [diff] [blame] | 1742 | select CRYPTO_ACOMP2 |
Chanho Min | 0ea8530 | 2013-07-08 16:01:51 -0700 | [diff] [blame] | 1743 | select LZ4HC_COMPRESS |
| 1744 | select LZ4_DECOMPRESS |
| 1745 | help |
| 1746 | This is the LZ4 high compression mode algorithm. |
| 1747 | |
Nick Terrell | d28fc3d | 2018-03-30 12:14:53 -0700 | [diff] [blame] | 1748 | config CRYPTO_ZSTD |
| 1749 | tristate "Zstd compression algorithm" |
| 1750 | select CRYPTO_ALGAPI |
| 1751 | select CRYPTO_ACOMP2 |
| 1752 | select ZSTD_COMPRESS |
| 1753 | select ZSTD_DECOMPRESS |
| 1754 | help |
| 1755 | This is the zstd algorithm. |
| 1756 | |
Neil Horman | 17f0f4a | 2008-08-14 22:15:52 +1000 | [diff] [blame] | 1757 | comment "Random Number Generation" |
| 1758 | |
| 1759 | config CRYPTO_ANSI_CPRNG |
| 1760 | tristate "Pseudo Random Number Generation for Cryptographic modules" |
| 1761 | select CRYPTO_AES |
| 1762 | select CRYPTO_RNG |
Neil Horman | 17f0f4a | 2008-08-14 22:15:52 +1000 | [diff] [blame] | 1763 | help |
| 1764 | This option enables the generic pseudo random number generator |
| 1765 | for cryptographic modules. Uses the Algorithm specified in |
Jiri Kosina | 7dd607e | 2010-01-27 01:00:10 +0100 | [diff] [blame] | 1766 | ANSI X9.31 A.2.4. Note that this option must be enabled if |
| 1767 | CRYPTO_FIPS is selected |
Neil Horman | 17f0f4a | 2008-08-14 22:15:52 +1000 | [diff] [blame] | 1768 | |
Herbert Xu | f2c89a1 | 2014-07-04 22:15:08 +0800 | [diff] [blame] | 1769 | menuconfig CRYPTO_DRBG_MENU |
Stephan Mueller | 419090c | 2014-05-31 17:22:31 +0200 | [diff] [blame] | 1770 | tristate "NIST SP800-90A DRBG" |
Stephan Mueller | 419090c | 2014-05-31 17:22:31 +0200 | [diff] [blame] | 1771 | help |
| 1772 | NIST SP800-90A compliant DRBG. In the following submenu, one or |
| 1773 | more of the DRBG types must be selected. |
| 1774 | |
Herbert Xu | f2c89a1 | 2014-07-04 22:15:08 +0800 | [diff] [blame] | 1775 | if CRYPTO_DRBG_MENU |
Stephan Mueller | 419090c | 2014-05-31 17:22:31 +0200 | [diff] [blame] | 1776 | |
| 1777 | config CRYPTO_DRBG_HMAC |
Herbert Xu | 401e423 | 2015-06-03 14:49:31 +0800 | [diff] [blame] | 1778 | bool |
Stephan Mueller | 419090c | 2014-05-31 17:22:31 +0200 | [diff] [blame] | 1779 | default y |
Stephan Mueller | 419090c | 2014-05-31 17:22:31 +0200 | [diff] [blame] | 1780 | select CRYPTO_HMAC |
Herbert Xu | 826775b | 2015-06-11 08:55:10 +0800 | [diff] [blame] | 1781 | select CRYPTO_SHA256 |
Stephan Mueller | 419090c | 2014-05-31 17:22:31 +0200 | [diff] [blame] | 1782 | |
| 1783 | config CRYPTO_DRBG_HASH |
| 1784 | bool "Enable Hash DRBG" |
Herbert Xu | 826775b | 2015-06-11 08:55:10 +0800 | [diff] [blame] | 1785 | select CRYPTO_SHA256 |
Stephan Mueller | 419090c | 2014-05-31 17:22:31 +0200 | [diff] [blame] | 1786 | help |
| 1787 | Enable the Hash DRBG variant as defined in NIST SP800-90A. |
| 1788 | |
| 1789 | config CRYPTO_DRBG_CTR |
| 1790 | bool "Enable CTR DRBG" |
Stephan Mueller | 419090c | 2014-05-31 17:22:31 +0200 | [diff] [blame] | 1791 | select CRYPTO_AES |
Stephan Mueller | 3559128 | 2016-06-14 07:34:13 +0200 | [diff] [blame] | 1792 | depends on CRYPTO_CTR |
Stephan Mueller | 419090c | 2014-05-31 17:22:31 +0200 | [diff] [blame] | 1793 | help |
| 1794 | Enable the CTR DRBG variant as defined in NIST SP800-90A. |
| 1795 | |
Herbert Xu | f2c89a1 | 2014-07-04 22:15:08 +0800 | [diff] [blame] | 1796 | config CRYPTO_DRBG |
| 1797 | tristate |
Herbert Xu | 401e423 | 2015-06-03 14:49:31 +0800 | [diff] [blame] | 1798 | default CRYPTO_DRBG_MENU |
Herbert Xu | f2c89a1 | 2014-07-04 22:15:08 +0800 | [diff] [blame] | 1799 | select CRYPTO_RNG |
Stephan Mueller | bb5530e | 2015-05-25 15:10:20 +0200 | [diff] [blame] | 1800 | select CRYPTO_JITTERENTROPY |
Herbert Xu | f2c89a1 | 2014-07-04 22:15:08 +0800 | [diff] [blame] | 1801 | |
| 1802 | endif # if CRYPTO_DRBG_MENU |
Stephan Mueller | 419090c | 2014-05-31 17:22:31 +0200 | [diff] [blame] | 1803 | |
Stephan Mueller | bb5530e | 2015-05-25 15:10:20 +0200 | [diff] [blame] | 1804 | config CRYPTO_JITTERENTROPY |
| 1805 | tristate "Jitterentropy Non-Deterministic Random Number Generator" |
Arnd Bergmann | 2f313e0 | 2016-01-26 14:47:10 +0100 | [diff] [blame] | 1806 | select CRYPTO_RNG |
Stephan Mueller | bb5530e | 2015-05-25 15:10:20 +0200 | [diff] [blame] | 1807 | help |
| 1808 | The Jitterentropy RNG is a noise that is intended |
| 1809 | to provide seed to another RNG. The RNG does not |
| 1810 | perform any cryptographic whitening of the generated |
| 1811 | random numbers. This Jitterentropy RNG registers with |
| 1812 | the kernel crypto API and can be used by any caller. |
| 1813 | |
Herbert Xu | 03c8efc | 2010-10-19 21:12:39 +0800 | [diff] [blame] | 1814 | config CRYPTO_USER_API |
| 1815 | tristate |
| 1816 | |
Herbert Xu | fe869cd | 2010-10-19 21:23:00 +0800 | [diff] [blame] | 1817 | config CRYPTO_USER_API_HASH |
| 1818 | tristate "User-space interface for hash algorithms" |
Herbert Xu | 7451708 | 2010-11-29 22:56:03 +0800 | [diff] [blame] | 1819 | depends on NET |
Herbert Xu | fe869cd | 2010-10-19 21:23:00 +0800 | [diff] [blame] | 1820 | select CRYPTO_HASH |
| 1821 | select CRYPTO_USER_API |
| 1822 | help |
| 1823 | This option enables the user-spaces interface for hash |
| 1824 | algorithms. |
| 1825 | |
Herbert Xu | 8ff5909 | 2010-10-19 21:31:55 +0800 | [diff] [blame] | 1826 | config CRYPTO_USER_API_SKCIPHER |
| 1827 | tristate "User-space interface for symmetric key cipher algorithms" |
Herbert Xu | 7451708 | 2010-11-29 22:56:03 +0800 | [diff] [blame] | 1828 | depends on NET |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1829 | select CRYPTO_SKCIPHER |
Herbert Xu | 8ff5909 | 2010-10-19 21:31:55 +0800 | [diff] [blame] | 1830 | select CRYPTO_USER_API |
| 1831 | help |
| 1832 | This option enables the user-spaces interface for symmetric |
| 1833 | key cipher algorithms. |
| 1834 | |
Stephan Mueller | 2f375538 | 2014-12-25 23:00:39 +0100 | [diff] [blame] | 1835 | config CRYPTO_USER_API_RNG |
| 1836 | tristate "User-space interface for random number generator algorithms" |
| 1837 | depends on NET |
| 1838 | select CRYPTO_RNG |
| 1839 | select CRYPTO_USER_API |
| 1840 | help |
| 1841 | This option enables the user-spaces interface for random |
| 1842 | number generator algorithms. |
| 1843 | |
Herbert Xu | b64a2d9 | 2015-05-28 11:30:35 +0800 | [diff] [blame] | 1844 | config CRYPTO_USER_API_AEAD |
| 1845 | tristate "User-space interface for AEAD cipher algorithms" |
| 1846 | depends on NET |
| 1847 | select CRYPTO_AEAD |
Eric Biggers | b95bba5 | 2019-10-25 12:41:13 -0700 | [diff] [blame] | 1848 | select CRYPTO_SKCIPHER |
Stephan Mueller | 72548b0 | 2017-07-30 14:32:58 +0200 | [diff] [blame] | 1849 | select CRYPTO_NULL |
Herbert Xu | b64a2d9 | 2015-05-28 11:30:35 +0800 | [diff] [blame] | 1850 | select CRYPTO_USER_API |
| 1851 | help |
| 1852 | This option enables the user-spaces interface for AEAD |
| 1853 | cipher algorithms. |
| 1854 | |
Corentin Labbe | cac5818 | 2018-09-19 10:10:54 +0000 | [diff] [blame] | 1855 | config CRYPTO_STATS |
| 1856 | bool "Crypto usage statistics for User-space" |
Corentin Labbe | a6a3138 | 2018-11-29 14:42:17 +0000 | [diff] [blame] | 1857 | depends on CRYPTO_USER |
Corentin Labbe | cac5818 | 2018-09-19 10:10:54 +0000 | [diff] [blame] | 1858 | help |
| 1859 | This option enables the gathering of crypto stats. |
| 1860 | This will collect: |
| 1861 | - encrypt/decrypt size and numbers of symmeric operations |
| 1862 | - compress/decompress size and numbers of compress operations |
| 1863 | - size and numbers of hash operations |
| 1864 | - encrypt/decrypt/sign/verify numbers for asymmetric operations |
| 1865 | - generate/seed numbers for rng operations |
| 1866 | |
Dmitry Kasatkin | ee08997 | 2013-05-06 15:40:01 +0300 | [diff] [blame] | 1867 | config CRYPTO_HASH_INFO |
| 1868 | bool |
| 1869 | |
Ard Biesheuvel | 746b2e0 | 2019-11-08 13:22:07 +0100 | [diff] [blame] | 1870 | source "lib/crypto/Kconfig" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1871 | source "drivers/crypto/Kconfig" |
Masahiro Yamada | 8636a1f | 2018-12-11 20:01:04 +0900 | [diff] [blame] | 1872 | source "crypto/asymmetric_keys/Kconfig" |
| 1873 | source "certs/Kconfig" |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1874 | |
Herbert Xu | cce9e06 | 2006-08-21 21:08:13 +1000 | [diff] [blame] | 1875 | endif # if CRYPTO |