battery: sec_battery: export {CURRENT/VOLTAGE}_MAX to sysfs
[GitHub/LineageOS/android_kernel_samsung_universal7580.git] / drivers / crypto / Kconfig
1
2 menuconfig CRYPTO_HW
3 bool "Hardware crypto devices"
4 default y
5 ---help---
6 Say Y here to get to see options for hardware crypto devices and
7 processors. This option alone does not add any kernel code.
8
9 If you say N, all options in this submenu will be skipped and disabled.
10
11 if CRYPTO_HW
12
13 config CRYPTO_DEV_PADLOCK
14 tristate "Support for VIA PadLock ACE"
15 depends on X86 && !UML
16 help
17 Some VIA processors come with an integrated crypto engine
18 (so called VIA PadLock ACE, Advanced Cryptography Engine)
19 that provides instructions for very fast cryptographic
20 operations with supported algorithms.
21
22 The instructions are used only when the CPU supports them.
23 Otherwise software encryption is used.
24
25 config CRYPTO_DEV_PADLOCK_AES
26 tristate "PadLock driver for AES algorithm"
27 depends on CRYPTO_DEV_PADLOCK
28 select CRYPTO_BLKCIPHER
29 select CRYPTO_AES
30 help
31 Use VIA PadLock for AES algorithm.
32
33 Available in VIA C3 and newer CPUs.
34
35 If unsure say M. The compiled module will be
36 called padlock-aes.
37
38 config CRYPTO_DEV_PADLOCK_SHA
39 tristate "PadLock driver for SHA1 and SHA256 algorithms"
40 depends on CRYPTO_DEV_PADLOCK
41 select CRYPTO_HASH
42 select CRYPTO_SHA1
43 select CRYPTO_SHA256
44 help
45 Use VIA PadLock for SHA1/SHA256 algorithms.
46
47 Available in VIA C7 and newer processors.
48
49 If unsure say M. The compiled module will be
50 called padlock-sha.
51
52 config CRYPTO_DEV_GEODE
53 tristate "Support for the Geode LX AES engine"
54 depends on X86_32 && PCI
55 select CRYPTO_ALGAPI
56 select CRYPTO_BLKCIPHER
57 help
58 Say 'Y' here to use the AMD Geode LX processor on-board AES
59 engine for the CryptoAPI AES algorithm.
60
61 To compile this driver as a module, choose M here: the module
62 will be called geode-aes.
63
64 config ZCRYPT
65 tristate "Support for PCI-attached cryptographic adapters"
66 depends on S390
67 select HW_RANDOM
68 help
69 Select this option if you want to use a PCI-attached cryptographic
70 adapter like:
71 + PCI Cryptographic Accelerator (PCICA)
72 + PCI Cryptographic Coprocessor (PCICC)
73 + PCI-X Cryptographic Coprocessor (PCIXCC)
74 + Crypto Express2 Coprocessor (CEX2C)
75 + Crypto Express2 Accelerator (CEX2A)
76 + Crypto Express3 Coprocessor (CEX3C)
77 + Crypto Express3 Accelerator (CEX3A)
78
79 config CRYPTO_SHA1_S390
80 tristate "SHA1 digest algorithm"
81 depends on S390
82 select CRYPTO_HASH
83 help
84 This is the s390 hardware accelerated implementation of the
85 SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
86
87 It is available as of z990.
88
89 config CRYPTO_SHA256_S390
90 tristate "SHA256 digest algorithm"
91 depends on S390
92 select CRYPTO_HASH
93 help
94 This is the s390 hardware accelerated implementation of the
95 SHA256 secure hash standard (DFIPS 180-2).
96
97 It is available as of z9.
98
99 config CRYPTO_SHA512_S390
100 tristate "SHA384 and SHA512 digest algorithm"
101 depends on S390
102 select CRYPTO_HASH
103 help
104 This is the s390 hardware accelerated implementation of the
105 SHA512 secure hash standard.
106
107 It is available as of z10.
108
109 config CRYPTO_DES_S390
110 tristate "DES and Triple DES cipher algorithms"
111 depends on S390
112 select CRYPTO_ALGAPI
113 select CRYPTO_BLKCIPHER
114 select CRYPTO_DES
115 help
116 This is the s390 hardware accelerated implementation of the
117 DES cipher algorithm (FIPS 46-2), and Triple DES EDE (FIPS 46-3).
118
119 As of z990 the ECB and CBC mode are hardware accelerated.
120 As of z196 the CTR mode is hardware accelerated.
121
122 config CRYPTO_AES_S390
123 tristate "AES cipher algorithms"
124 depends on S390
125 select CRYPTO_ALGAPI
126 select CRYPTO_BLKCIPHER
127 help
128 This is the s390 hardware accelerated implementation of the
129 AES cipher algorithms (FIPS-197).
130
131 As of z9 the ECB and CBC modes are hardware accelerated
132 for 128 bit keys.
133 As of z10 the ECB and CBC modes are hardware accelerated
134 for all AES key sizes.
135 As of z196 the CTR mode is hardware accelerated for all AES
136 key sizes and XTS mode is hardware accelerated for 256 and
137 512 bit keys.
138
139 config S390_PRNG
140 tristate "Pseudo random number generator device driver"
141 depends on S390
142 default "m"
143 help
144 Select this option if you want to use the s390 pseudo random number
145 generator. The PRNG is part of the cryptographic processor functions
146 and uses triple-DES to generate secure random numbers like the
147 ANSI X9.17 standard. User-space programs access the
148 pseudo-random-number device through the char device /dev/prandom.
149
150 It is available as of z9.
151
152 config CRYPTO_GHASH_S390
153 tristate "GHASH digest algorithm"
154 depends on S390
155 select CRYPTO_HASH
156 help
157 This is the s390 hardware accelerated implementation of the
158 GHASH message digest algorithm for GCM (Galois/Counter Mode).
159
160 It is available as of z196.
161
162 config CRYPTO_DEV_MV_CESA
163 tristate "Marvell's Cryptographic Engine"
164 depends on PLAT_ORION
165 select CRYPTO_ALGAPI
166 select CRYPTO_AES
167 select CRYPTO_BLKCIPHER2
168 select CRYPTO_HASH
169 help
170 This driver allows you to utilize the Cryptographic Engines and
171 Security Accelerator (CESA) which can be found on the Marvell Orion
172 and Kirkwood SoCs, such as QNAP's TS-209.
173
174 Currently the driver supports AES in ECB and CBC mode without DMA.
175
176 config CRYPTO_DEV_NIAGARA2
177 tristate "Niagara2 Stream Processing Unit driver"
178 select CRYPTO_DES
179 select CRYPTO_ALGAPI
180 depends on SPARC64
181 help
182 Each core of a Niagara2 processor contains a Stream
183 Processing Unit, which itself contains several cryptographic
184 sub-units. One set provides the Modular Arithmetic Unit,
185 used for SSL offload. The other set provides the Cipher
186 Group, which can perform encryption, decryption, hashing,
187 checksumming, and raw copies.
188
189 config CRYPTO_DEV_HIFN_795X
190 tristate "Driver HIFN 795x crypto accelerator chips"
191 select CRYPTO_DES
192 select CRYPTO_ALGAPI
193 select CRYPTO_BLKCIPHER
194 select HW_RANDOM if CRYPTO_DEV_HIFN_795X_RNG
195 depends on PCI
196 depends on !ARCH_DMA_ADDR_T_64BIT
197 help
198 This option allows you to have support for HIFN 795x crypto adapters.
199
200 config CRYPTO_DEV_HIFN_795X_RNG
201 bool "HIFN 795x random number generator"
202 depends on CRYPTO_DEV_HIFN_795X
203 help
204 Select this option if you want to enable the random number generator
205 on the HIFN 795x crypto adapters.
206
207 source drivers/crypto/caam/Kconfig
208
209 config CRYPTO_DEV_TALITOS
210 tristate "Talitos Freescale Security Engine (SEC)"
211 select CRYPTO_ALGAPI
212 select CRYPTO_AUTHENC
213 select HW_RANDOM
214 depends on FSL_SOC
215 help
216 Say 'Y' here to use the Freescale Security Engine (SEC)
217 to offload cryptographic algorithm computation.
218
219 The Freescale SEC is present on PowerQUICC 'E' processors, such
220 as the MPC8349E and MPC8548E.
221
222 To compile this driver as a module, choose M here: the module
223 will be called talitos.
224
225 config CRYPTO_DEV_IXP4XX
226 tristate "Driver for IXP4xx crypto hardware acceleration"
227 depends on ARCH_IXP4XX && IXP4XX_QMGR && IXP4XX_NPE
228 select CRYPTO_DES
229 select CRYPTO_ALGAPI
230 select CRYPTO_AUTHENC
231 select CRYPTO_BLKCIPHER
232 help
233 Driver for the IXP4xx NPE crypto engine.
234
235 config CRYPTO_DEV_PPC4XX
236 tristate "Driver AMCC PPC4xx crypto accelerator"
237 depends on PPC && 4xx
238 select CRYPTO_HASH
239 select CRYPTO_ALGAPI
240 select CRYPTO_BLKCIPHER
241 help
242 This option allows you to have support for AMCC crypto acceleration.
243
244 config CRYPTO_DEV_OMAP_SHAM
245 tristate "Support for OMAP SHA1/MD5 hw accelerator"
246 depends on ARCH_OMAP2 || ARCH_OMAP3
247 select CRYPTO_SHA1
248 select CRYPTO_MD5
249 help
250 OMAP processors have SHA1/MD5 hw accelerator. Select this if you
251 want to use the OMAP module for SHA1/MD5 algorithms.
252
253 config CRYPTO_DEV_OMAP_AES
254 tristate "Support for OMAP AES hw engine"
255 depends on ARCH_OMAP2 || ARCH_OMAP3
256 select CRYPTO_AES
257 select CRYPTO_BLKCIPHER2
258 help
259 OMAP processors have AES module accelerator. Select this if you
260 want to use the OMAP module for AES algorithms.
261
262 config CRYPTO_DEV_PICOXCELL
263 tristate "Support for picoXcell IPSEC and Layer2 crypto engines"
264 depends on ARCH_PICOXCELL && HAVE_CLK
265 select CRYPTO_AES
266 select CRYPTO_AUTHENC
267 select CRYPTO_ALGAPI
268 select CRYPTO_DES
269 select CRYPTO_CBC
270 select CRYPTO_ECB
271 select CRYPTO_SEQIV
272 help
273 This option enables support for the hardware offload engines in the
274 Picochip picoXcell SoC devices. Select this for IPSEC ESP offload
275 and for 3gpp Layer 2 ciphering support.
276
277 Saying m here will build a module named pipcoxcell_crypto.
278
279 config CRYPTO_DEV_SAHARA
280 tristate "Support for SAHARA crypto accelerator"
281 depends on ARCH_MXC && EXPERIMENTAL && OF
282 select CRYPTO_BLKCIPHER
283 select CRYPTO_AES
284 select CRYPTO_ECB
285 help
286 This option enables support for the SAHARA HW crypto accelerator
287 found in some Freescale i.MX chips.
288
289 menu "Samsung Crypto Accelerator"
290 visible if !SOC_EXYNOS5433
291
292 config CRYPTO_DEV_S5P
293 tristate "Support for Samsung S5PV210 crypto accelerator"
294 depends on ARCH_S5PV210
295 select CRYPTO_AES
296 select CRYPTO_ALGAPI
297 select CRYPTO_BLKCIPHER
298 help
299 This option allows you to have support for S5P crypto acceleration.
300 Select this to offload Samsung S5PV210 or S5PC110 from AES
301 algorithms execution.
302
303 config CRYPTO_S5P_DEV_ACE
304 tristate "Support for Samsung ACE (Advanced Crypto Engine)"
305 depends on ARCH_EXYNOS4 || ARCH_EXYNOS5 || ARCH_S5PV210
306 select S5P_DEV_ACE
307 select CRYPTO_ALGAPI
308 help
309 Use ACE for AES (ECB, CBC, CTR) and SHA1/SHA256.
310 Available in EXYNOS4/S5PV210/S5PC110 and newer CPUs.
311
312 choice
313 prompt "H/W Version"
314 default ACE_USE_SLIMSSS_VER_1
315
316 config ACE_USE_SSS_VER_4
317 bool "SSS v4.x"
318 depends on CRYPTO_S5P_DEV_ACE && ARCH_S5PV210
319
320 config ACE_USE_SSS_VER_5
321 bool "SSS v5.x"
322 depends on CRYPTO_S5P_DEV_ACE && !ARCH_S5PV210 && !SOC_EXYNOS5430 && !SOC_EXYNOS5433
323
324 config ACE_USE_SSS_VER_6
325 bool "SSS v6.x"
326 depends on CRYPTO_S5P_DEV_ACE && (SOC_EXYNOS5430 || SOC_EXYNOS5433)
327 select CRYPTO_XTS
328 help
329 Support XTS mode for AES.
330
331 config ACE_USE_SLIMSSS_VER_1
332 bool "SlimSSS v1.x"
333 depends on CRYPTO_S5P_DEV_ACE && (SOC_EXYNOS5420 || SOC_EXYNOS5430 || SOC_EXYNOS5422 || SOC_EXYNOS5433)
334 select CRYPTO_XTS
335 help
336 Support XTS mode for AES.
337
338 endchoice
339
340 config ACE_USE_CCI
341 bool "Use Cache Coherent Interface"
342 depends on CRYPTO_S5P_DEV_ACE && ACE_USE_SLIMSSS_VER_1
343 default n
344
345 config ACE_BC
346 bool "Support for AES block cipher (ECB, CBC, CTR mode)"
347 depends on CRYPTO_S5P_DEV_ACE
348 select CRYPTO_AES
349 select CRYPTO_BLKCIPHER
350 select CRYPTO_ECB
351 select CRYPTO_CTR
352 select CRYPTO_CBC
353 default y
354 help
355 Use ACE for ACE (ECB, CBC, CTR) for Samsung Hardware Crypto engine.
356
357 config ACE_BC_ASYNC
358 bool "Support for AES async mode"
359 default y
360 depends on ACE_BC
361
362 config ACE_BC_IRQMODE
363 bool "Support for AES IRQ mode"
364 default n
365 depends on ACE_BC_ASYNC
366
367 config ACE_HASH_SHA1
368 bool "Support for SHA1 hash algorithm"
369 depends on CRYPTO_S5P_DEV_ACE
370 select CRYPTO_HASH
371 select CRYPTO_SHA1
372 default y
373 help
374 Use SHA1 hash algorithm for Samsung Hardware Crypto engine
375
376 config ACE_HASH_SHA256
377 bool "Support for SHA256 hash algorithm"
378 depends on CRYPTO_S5P_DEV_ACE && ARCH_EXYNOS
379 select CRYPTO_HASH
380 select CRYPTO_SHA256
381 default y
382 help
383 Use SHA256 hash algorithm for Samsung Hardware Crypto engine
384
385 config ACE_DEBUG
386 bool "Debug message for crypto driver"
387 depends on CRYPTO_S5P_DEV_ACE
388 help
389 This option allows you to check the debug print message for crypto driver.
390
391 endmenu
392
393 config CRYPTO_DEV_TEGRA_AES
394 tristate "Support for TEGRA AES hw engine"
395 depends on ARCH_TEGRA
396 select CRYPTO_AES
397 help
398 TEGRA processors have AES module accelerator. Select this if you
399 want to use the TEGRA module for AES algorithms.
400
401 To compile this driver as a module, choose M here: the module
402 will be called tegra-aes.
403
404 config CRYPTO_DEV_NX
405 bool "Support for IBM Power7+ in-Nest cryptographic acceleration"
406 depends on PPC64 && IBMVIO
407 default n
408 help
409 Support for Power7+ in-Nest cryptographic acceleration.
410
411 if CRYPTO_DEV_NX
412 source "drivers/crypto/nx/Kconfig"
413 endif
414
415 config CRYPTO_DEV_UX500
416 tristate "Driver for ST-Ericsson UX500 crypto hardware acceleration"
417 depends on ARCH_U8500
418 select CRYPTO_ALGAPI
419 help
420 Driver for ST-Ericsson UX500 crypto engine.
421
422 if CRYPTO_DEV_UX500
423 source "drivers/crypto/ux500/Kconfig"
424 endif # if CRYPTO_DEV_UX500
425
426 config CRYPTO_DEV_BFIN_CRC
427 tristate "Support for Blackfin CRC hardware"
428 depends on BF60x
429 help
430 Newer Blackfin processors have CRC hardware. Select this if you
431 want to use the Blackfin CRC module.
432
433 config CRYPTO_DEV_ATMEL_AES
434 tristate "Support for Atmel AES hw accelerator"
435 depends on ARCH_AT91
436 select CRYPTO_CBC
437 select CRYPTO_ECB
438 select CRYPTO_AES
439 select CRYPTO_ALGAPI
440 select CRYPTO_BLKCIPHER
441 select AT_HDMAC
442 help
443 Some Atmel processors have AES hw accelerator.
444 Select this if you want to use the Atmel module for
445 AES algorithms.
446
447 To compile this driver as a module, choose M here: the module
448 will be called atmel-aes.
449
450 config CRYPTO_DEV_ATMEL_TDES
451 tristate "Support for Atmel DES/TDES hw accelerator"
452 depends on ARCH_AT91
453 select CRYPTO_DES
454 select CRYPTO_CBC
455 select CRYPTO_ECB
456 select CRYPTO_ALGAPI
457 select CRYPTO_BLKCIPHER
458 help
459 Some Atmel processors have DES/TDES hw accelerator.
460 Select this if you want to use the Atmel module for
461 DES/TDES algorithms.
462
463 To compile this driver as a module, choose M here: the module
464 will be called atmel-tdes.
465
466 config CRYPTO_DEV_ATMEL_SHA
467 tristate "Support for Atmel SHA hw accelerator"
468 depends on ARCH_AT91
469 select CRYPTO_SHA1
470 select CRYPTO_SHA256
471 select CRYPTO_SHA512
472 select CRYPTO_ALGAPI
473 help
474 Some Atmel processors have SHA1/SHA224/SHA256/SHA384/SHA512
475 hw accelerator.
476 Select this if you want to use the Atmel module for
477 SHA1/SHA224/SHA256/SHA384/SHA512 algorithms.
478
479 To compile this driver as a module, choose M here: the module
480 will be called atmel-sha.
481
482 endif # CRYPTO_HW