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