Merge tag 'ceph-for-6.1-rc1' of https://github.com/ceph/ceph-client
[linux-block.git] / lib / crypto / Kconfig
CommitLineData
746b2e02
AB
1# SPDX-License-Identifier: GPL-2.0
2
e56e1898
JF
3menu "Crypto library routines"
4
7033b937
EB
5config CRYPTO_LIB_UTILS
6 tristate
7
746b2e02
AB
8config CRYPTO_LIB_AES
9 tristate
10
11config CRYPTO_LIB_ARC4
12 tristate
13
66d7fb94 14config CRYPTO_ARCH_HAVE_LIB_BLAKE2S
6048fdcc 15 bool
66d7fb94
JD
16 help
17 Declares whether the architecture provides an arch-specific
18 accelerated implementation of the Blake2s library interface,
19 either builtin or as a module.
20
21config CRYPTO_LIB_BLAKE2S_GENERIC
6048fdcc 22 def_bool !CRYPTO_ARCH_HAVE_LIB_BLAKE2S
66d7fb94
JD
23 help
24 This symbol can be depended upon by arch implementations of the
25 Blake2s library interface that require the generic code as a
26 fallback, e.g., for SIMD implementations. If no arch specific
27 implementation is enabled, this implementation serves the users
28 of CRYPTO_LIB_BLAKE2S.
29
5fb8ef25
AB
30config CRYPTO_ARCH_HAVE_LIB_CHACHA
31 tristate
32 help
33 Declares whether the architecture provides an arch-specific
34 accelerated implementation of the ChaCha library interface,
35 either builtin or as a module.
36
37config CRYPTO_LIB_CHACHA_GENERIC
38 tristate
6e78ad0b 39 select CRYPTO_LIB_UTILS
5fb8ef25
AB
40 help
41 This symbol can be depended upon by arch implementations of the
42 ChaCha library interface that require the generic code as a
43 fallback, e.g., for SIMD implementations. If no arch specific
44 implementation is enabled, this implementation serves the users
45 of CRYPTO_LIB_CHACHA.
46
47config CRYPTO_LIB_CHACHA
e56e1898 48 tristate "ChaCha library interface"
5fb8ef25
AB
49 depends on CRYPTO_ARCH_HAVE_LIB_CHACHA || !CRYPTO_ARCH_HAVE_LIB_CHACHA
50 select CRYPTO_LIB_CHACHA_GENERIC if CRYPTO_ARCH_HAVE_LIB_CHACHA=n
51 help
52 Enable the ChaCha library interface. This interface may be fulfilled
53 by either the generic implementation or an arch-specific one, if one
54 is available and enabled.
55
0ed42a6f
JD
56config CRYPTO_ARCH_HAVE_LIB_CURVE25519
57 tristate
58 help
59 Declares whether the architecture provides an arch-specific
60 accelerated implementation of the Curve25519 library interface,
61 either builtin or as a module.
62
63config CRYPTO_LIB_CURVE25519_GENERIC
64 tristate
65 help
66 This symbol can be depended upon by arch implementations of the
67 Curve25519 library interface that require the generic code as a
68 fallback, e.g., for SIMD implementations. If no arch specific
69 implementation is enabled, this implementation serves the users
70 of CRYPTO_LIB_CURVE25519.
71
72config CRYPTO_LIB_CURVE25519
e56e1898 73 tristate "Curve25519 scalar multiplication library"
0ed42a6f
JD
74 depends on CRYPTO_ARCH_HAVE_LIB_CURVE25519 || !CRYPTO_ARCH_HAVE_LIB_CURVE25519
75 select CRYPTO_LIB_CURVE25519_GENERIC if CRYPTO_ARCH_HAVE_LIB_CURVE25519=n
7033b937 76 select CRYPTO_LIB_UTILS
0ed42a6f
JD
77 help
78 Enable the Curve25519 library interface. This interface may be
79 fulfilled by either the generic implementation or an arch-specific
80 one, if one is available and enabled.
81
746b2e02
AB
82config CRYPTO_LIB_DES
83 tristate
84
a1d93064
AB
85config CRYPTO_LIB_POLY1305_RSIZE
86 int
a11d055e 87 default 2 if MIPS
d7d7b853 88 default 11 if X86_64
a6b803b3 89 default 9 if ARM || ARM64
a1d93064
AB
90 default 1
91
92config CRYPTO_ARCH_HAVE_LIB_POLY1305
93 tristate
94 help
95 Declares whether the architecture provides an arch-specific
96 accelerated implementation of the Poly1305 library interface,
97 either builtin or as a module.
98
48ea8c6e
AB
99config CRYPTO_LIB_POLY1305_GENERIC
100 tristate
a1d93064
AB
101 help
102 This symbol can be depended upon by arch implementations of the
103 Poly1305 library interface that require the generic code as a
104 fallback, e.g., for SIMD implementations. If no arch specific
105 implementation is enabled, this implementation serves the users
106 of CRYPTO_LIB_POLY1305.
107
108config CRYPTO_LIB_POLY1305
e56e1898 109 tristate "Poly1305 library interface"
a1d93064
AB
110 depends on CRYPTO_ARCH_HAVE_LIB_POLY1305 || !CRYPTO_ARCH_HAVE_LIB_POLY1305
111 select CRYPTO_LIB_POLY1305_GENERIC if CRYPTO_ARCH_HAVE_LIB_POLY1305=n
112 help
113 Enable the Poly1305 library interface. This interface may be fulfilled
114 by either the generic implementation or an arch-specific one, if one
115 is available and enabled.
48ea8c6e 116
ed20078b 117config CRYPTO_LIB_CHACHA20POLY1305
e56e1898 118 tristate "ChaCha20-Poly1305 AEAD support (8-byte nonce library version)"
ed20078b
AB
119 depends on CRYPTO_ARCH_HAVE_LIB_CHACHA || !CRYPTO_ARCH_HAVE_LIB_CHACHA
120 depends on CRYPTO_ARCH_HAVE_LIB_POLY1305 || !CRYPTO_ARCH_HAVE_LIB_POLY1305
e56e1898 121 depends on CRYPTO
ed20078b
AB
122 select CRYPTO_LIB_CHACHA
123 select CRYPTO_LIB_POLY1305
e56e1898 124 select CRYPTO_ALGAPI
ed20078b 125
ec8f7f48
EB
126config CRYPTO_LIB_SHA1
127 tristate
128
746b2e02
AB
129config CRYPTO_LIB_SHA256
130 tristate
2b31277a 131
e56e1898 132endmenu