xref: /linux-6.15/arch/powerpc/crypto/Kconfig (revision 6a490a4e)
1# SPDX-License-Identifier: GPL-2.0
2
3menu "Accelerated Cryptographic Algorithms for CPU (powerpc)"
4
5config CRYPTO_CRC32C_VPMSUM
6	tristate "CRC32c CRC algorithm (powerpc64)"
7	depends on PPC64 && ALTIVEC
8	select CRYPTO_HASH
9	select CRC32
10	help
11	  CRC32c algorithm implemented using vector polynomial multiply-sum
12	  (vpmsum) instructions, introduced in POWER8. Enable on POWER8
13	  and newer processors for improved performance.
14
15config CRYPTO_CRCT10DIF_VPMSUM
16	tristate "CRC32T10DIF powerpc64 hardware acceleration"
17	depends on PPC64 && ALTIVEC && CRC_T10DIF
18	select CRYPTO_HASH
19	help
20	  CRC10T10DIF algorithm implemented using vector polynomial
21	  multiply-sum (vpmsum) instructions, introduced in POWER8. Enable on
22	  POWER8 and newer processors for improved performance.
23
24config CRYPTO_VPMSUM_TESTER
25	tristate "Powerpc64 vpmsum hardware acceleration tester"
26	depends on CRYPTO_CRCT10DIF_VPMSUM && CRYPTO_CRC32C_VPMSUM
27	help
28	  Stress test for CRC32c and CRC-T10DIF algorithms implemented with
29	  POWER8 vpmsum instructions.
30	  Unless you are testing these algorithms, you don't need this.
31
32config CRYPTO_MD5_PPC
33	tristate "MD5 digest algorithm (PPC)"
34	depends on PPC
35	select CRYPTO_HASH
36	help
37	  MD5 message digest algorithm (RFC1321) implemented
38	  in PPC assembler.
39
40config CRYPTO_SHA1_PPC
41	tristate "SHA1 digest algorithm (powerpc)"
42	depends on PPC
43	help
44	  This is the powerpc hardware accelerated implementation of the
45	  SHA-1 secure hash standard (FIPS 180-1/DFIPS 180-2).
46
47config CRYPTO_SHA1_PPC_SPE
48	tristate "SHA1 digest algorithm (PPC SPE)"
49	depends on PPC && SPE
50	help
51	  SHA-1 secure hash standard (DFIPS 180-4) implemented
52	  using powerpc SPE SIMD instruction set.
53
54config CRYPTO_SHA256_PPC_SPE
55	tristate "SHA224 and SHA256 digest algorithm (PPC SPE)"
56	depends on PPC && SPE
57	select CRYPTO_SHA256
58	select CRYPTO_HASH
59	help
60	  SHA224 and SHA256 secure hash standard (DFIPS 180-2)
61	  implemented using powerpc SPE SIMD instruction set.
62
63config CRYPTO_AES_PPC_SPE
64	tristate "AES cipher algorithms (PPC SPE)"
65	depends on PPC && SPE
66	select CRYPTO_SKCIPHER
67	help
68	  AES cipher algorithms (FIPS-197). Additionally the acceleration
69	  for popular block cipher modes ECB, CBC, CTR and XTS is supported.
70	  This module should only be used for low power (router) devices
71	  without hardware AES acceleration (e.g. caam crypto). It reduces the
72	  size of the AES tables from 16KB to 8KB + 256 bytes and mitigates
73	  timining attacks. Nevertheless it might be not as secure as other
74	  architecture specific assembler implementations that work on 1KB
75	  tables or 256 bytes S-boxes.
76
77endmenu
78