OpenWrt – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # |
2 | # Copyright (C) 2006-2011 OpenWrt.org |
||
3 | # |
||
4 | # This is free software, licensed under the GNU General Public License v2. |
||
5 | # See /LICENSE for more information. |
||
6 | # |
||
7 | |||
8 | CRYPTO_MENU:=Cryptographic API modules |
||
9 | |||
10 | CRYPTO_MODULES = \ |
||
11 | ALGAPI2=crypto_algapi \ |
||
12 | BLKCIPHER2=crypto_blkcipher |
||
13 | |||
14 | crypto_confvar=CONFIG_CRYPTO_$(word 1,$(subst =,$(space),$(1))) |
||
15 | crypto_file=$(LINUX_DIR)/crypto/$(word 2,$(subst =,$(space),$(1))).ko |
||
16 | crypto_name=$(if $(findstring y,$($(call crypto_confvar,$(1)))),,$(word 2,$(subst =,$(space),$(1)))) |
||
17 | |||
18 | define AddDepends/crypto |
||
19 | SUBMENU:=$(CRYPTO_MENU) |
||
20 | DEPENDS+= $(1) |
||
21 | endef |
||
22 | |||
23 | |||
24 | define KernelPackage/crypto-acompress |
||
25 | TITLE:=Asynchronous Compression operations |
||
26 | HIDDEN:=1 |
||
27 | KCONFIG:=CONFIG_CRYPTO_ACOMP2 |
||
28 | FILES:=$(LINUX_DIR)/crypto/crypto_acompress.ko |
||
29 | AUTOLOAD:=$(call AutoLoad,09,crypto_acompress) |
||
30 | $(call AddDepends/crypto) |
||
31 | endef |
||
32 | |||
33 | $(eval $(call KernelPackage,crypto-acompress)) |
||
34 | |||
35 | |||
36 | define KernelPackage/crypto-aead |
||
37 | TITLE:=CryptoAPI AEAD support |
||
38 | KCONFIG:= \ |
||
39 | CONFIG_CRYPTO_AEAD \ |
||
40 | CONFIG_CRYPTO_AEAD2 |
||
41 | FILES:=$(LINUX_DIR)/crypto/aead.ko |
||
42 | AUTOLOAD:=$(call AutoLoad,09,aead,1) |
||
43 | $(call AddDepends/crypto, +!LINUX_3_18:kmod-crypto-null) |
||
44 | endef |
||
45 | |||
46 | $(eval $(call KernelPackage,crypto-aead)) |
||
47 | |||
48 | |||
49 | define KernelPackage/crypto-authenc |
||
50 | TITLE:=Combined mode wrapper for IPsec |
||
51 | DEPENDS:=+kmod-crypto-manager +!LINUX_3_18:kmod-crypto-null |
||
52 | KCONFIG:=CONFIG_CRYPTO_AUTHENC |
||
53 | FILES:=$(LINUX_DIR)/crypto/authenc.ko |
||
54 | AUTOLOAD:=$(call AutoLoad,09,authenc) |
||
55 | $(call AddDepends/crypto) |
||
56 | endef |
||
57 | |||
58 | $(eval $(call KernelPackage,crypto-authenc)) |
||
59 | |||
60 | |||
61 | define KernelPackage/crypto-cbc |
||
62 | TITLE:=Cipher Block Chaining CryptoAPI module |
||
63 | DEPENDS:=+kmod-crypto-manager |
||
64 | KCONFIG:=CONFIG_CRYPTO_CBC |
||
65 | FILES:=$(LINUX_DIR)/crypto/cbc.ko |
||
66 | AUTOLOAD:=$(call AutoLoad,09,cbc) |
||
67 | $(call AddDepends/crypto) |
||
68 | endef |
||
69 | |||
70 | $(eval $(call KernelPackage,crypto-cbc)) |
||
71 | |||
72 | |||
73 | define KernelPackage/crypto-ccm |
||
74 | TITLE:=Support for Counter with CBC MAC (CCM) |
||
75 | DEPENDS:=+kmod-crypto-ctr +kmod-crypto-aead |
||
76 | KCONFIG:=CONFIG_CRYPTO_CCM |
||
77 | FILES:=$(LINUX_DIR)/crypto/ccm.ko |
||
78 | AUTOLOAD:=$(call AutoLoad,09,ccm) |
||
79 | $(call AddDepends/crypto) |
||
80 | endef |
||
81 | |||
82 | $(eval $(call KernelPackage,crypto-ccm)) |
||
83 | |||
84 | |||
85 | define KernelPackage/crypto-cmac |
||
86 | TITLE:=Support for Cipher-based Message Authentication Code (CMAC) |
||
87 | DEPENDS:=+kmod-crypto-hash |
||
88 | KCONFIG:=CONFIG_CRYPTO_CMAC |
||
89 | FILES:=$(LINUX_DIR)/crypto/cmac.ko |
||
90 | AUTOLOAD:=$(call AutoLoad,09,cmac) |
||
91 | $(call AddDepends/crypto) |
||
92 | endef |
||
93 | |||
94 | $(eval $(call KernelPackage,crypto-cmac)) |
||
95 | |||
96 | |||
97 | define KernelPackage/crypto-crc32 |
||
98 | TITLE:=CRC32 CRC module |
||
99 | DEPENDS:=+kmod-crypto-hash |
||
100 | KCONFIG:=CONFIG_CRYPTO_CRC32 |
||
101 | HIDDEN:=1 |
||
102 | FILES:=$(LINUX_DIR)/crypto/crc32_generic.ko@ge4.9 |
||
103 | AUTOLOAD:=$(call AutoLoad,04,crc32_generic@ge4.9,1) |
||
104 | $(call AddDepends/crypto) |
||
105 | endef |
||
106 | |||
107 | $(eval $(call KernelPackage,crypto-crc32)) |
||
108 | |||
109 | |||
110 | define KernelPackage/crypto-crc32c |
||
111 | TITLE:=CRC32c CRC module |
||
112 | DEPENDS:=+kmod-crypto-hash |
||
113 | KCONFIG:=CONFIG_CRYPTO_CRC32C |
||
114 | FILES:=$(LINUX_DIR)/crypto/crc32c_generic.ko |
||
115 | AUTOLOAD:=$(call AutoLoad,04,crc32c_generic,1) |
||
116 | $(call AddDepends/crypto) |
||
117 | endef |
||
118 | |||
119 | $(eval $(call KernelPackage,crypto-crc32c)) |
||
120 | |||
121 | |||
122 | define KernelPackage/crypto-ctr |
||
123 | TITLE:=Counter Mode CryptoAPI module |
||
124 | DEPENDS:=+kmod-crypto-manager +kmod-crypto-seqiv +kmod-crypto-iv |
||
125 | KCONFIG:=CONFIG_CRYPTO_CTR |
||
126 | FILES:=$(LINUX_DIR)/crypto/ctr.ko |
||
127 | AUTOLOAD:=$(call AutoLoad,09,ctr) |
||
128 | $(call AddDepends/crypto) |
||
129 | endef |
||
130 | |||
131 | $(eval $(call KernelPackage,crypto-ctr)) |
||
132 | |||
133 | |||
134 | define KernelPackage/crypto-cts |
||
135 | TITLE:=Cipher Text Stealing CryptoAPI module |
||
136 | DEPENDS:=+kmod-crypto-manager |
||
137 | KCONFIG:=CONFIG_CRYPTO_CTS |
||
138 | FILES:=$(LINUX_DIR)/crypto/cts.ko |
||
139 | AUTOLOAD:=$(call AutoLoad,09,cts) |
||
140 | $(call AddDepends/crypto) |
||
141 | endef |
||
142 | |||
143 | $(eval $(call KernelPackage,crypto-cts)) |
||
144 | |||
145 | |||
146 | define KernelPackage/crypto-deflate |
||
147 | TITLE:=Deflate compression CryptoAPI module |
||
148 | DEPENDS:=+kmod-lib-zlib-inflate +kmod-lib-zlib-deflate +!(LINUX_3_18||LINUX_4_9):kmod-crypto-acompress |
||
149 | KCONFIG:=CONFIG_CRYPTO_DEFLATE |
||
150 | FILES:=$(LINUX_DIR)/crypto/deflate.ko |
||
151 | AUTOLOAD:=$(call AutoLoad,09,deflate) |
||
152 | $(call AddDepends/crypto) |
||
153 | endef |
||
154 | |||
155 | $(eval $(call KernelPackage,crypto-deflate)) |
||
156 | |||
157 | |||
158 | define KernelPackage/crypto-des |
||
159 | TITLE:=DES/3DES cipher CryptoAPI module |
||
160 | KCONFIG:=CONFIG_CRYPTO_DES |
||
161 | FILES:=$(LINUX_DIR)/crypto/des_generic.ko |
||
162 | AUTOLOAD:=$(call AutoLoad,09,des_generic) |
||
163 | $(call AddDepends/crypto) |
||
164 | endef |
||
165 | |||
166 | $(eval $(call KernelPackage,crypto-des)) |
||
167 | |||
168 | |||
169 | define KernelPackage/crypto-ecb |
||
170 | TITLE:=Electronic CodeBook CryptoAPI module |
||
171 | DEPENDS:=+kmod-crypto-manager |
||
172 | KCONFIG:=CONFIG_CRYPTO_ECB |
||
173 | FILES:=$(LINUX_DIR)/crypto/ecb.ko |
||
174 | AUTOLOAD:=$(call AutoLoad,09,ecb) |
||
175 | $(call AddDepends/crypto) |
||
176 | endef |
||
177 | |||
178 | $(eval $(call KernelPackage,crypto-ecb)) |
||
179 | |||
180 | |||
181 | define KernelPackage/crypto-ecdh |
||
182 | TITLE:=ECDH algorithm |
||
183 | DEPENDS:=@!LINUX_3_18 +kmod-crypto-kpp |
||
184 | KCONFIG:= CONFIG_CRYPTO_ECDH |
||
185 | FILES:= \ |
||
186 | $(LINUX_DIR)/crypto/ecdh_generic.ko |
||
187 | AUTOLOAD:=$(call AutoLoad,10,ecdh_generic) |
||
188 | $(call AddDepends/crypto) |
||
189 | endef |
||
190 | |||
191 | $(eval $(call KernelPackage,crypto-ecdh)) |
||
192 | |||
193 | |||
194 | define KernelPackage/crypto-echainiv |
||
195 | TITLE:=Encrypted Chain IV Generator |
||
196 | DEPENDS:=+kmod-crypto-aead |
||
197 | KCONFIG:=CONFIG_CRYPTO_ECHAINIV |
||
198 | FILES:=$(LINUX_DIR)/crypto/echainiv.ko |
||
199 | AUTOLOAD:=$(call AutoLoad,09,echainiv) |
||
200 | $(call AddDepends/crypto) |
||
201 | endef |
||
202 | |||
203 | $(eval $(call KernelPackage,crypto-echainiv)) |
||
204 | |||
205 | |||
206 | define KernelPackage/crypto-fcrypt |
||
207 | TITLE:=FCRYPT cipher CryptoAPI module |
||
208 | KCONFIG:=CONFIG_CRYPTO_FCRYPT |
||
209 | FILES:=$(LINUX_DIR)/crypto/fcrypt.ko |
||
210 | AUTOLOAD:=$(call AutoLoad,09,fcrypt) |
||
211 | $(call AddDepends/crypto) |
||
212 | endef |
||
213 | |||
214 | $(eval $(call KernelPackage,crypto-fcrypt)) |
||
215 | |||
216 | |||
217 | define KernelPackage/crypto-gcm |
||
218 | TITLE:=GCM/GMAC CryptoAPI module |
||
219 | DEPENDS:=+kmod-crypto-ctr +kmod-crypto-ghash +kmod-crypto-null |
||
220 | KCONFIG:=CONFIG_CRYPTO_GCM |
||
221 | FILES:=$(LINUX_DIR)/crypto/gcm.ko |
||
222 | AUTOLOAD:=$(call AutoLoad,09,gcm) |
||
223 | $(call AddDepends/crypto) |
||
224 | endef |
||
225 | |||
226 | $(eval $(call KernelPackage,crypto-gcm)) |
||
227 | |||
228 | |||
229 | define KernelPackage/crypto-gf128 |
||
230 | TITLE:=GF(2^128) multiplication functions CryptoAPI module |
||
231 | KCONFIG:=CONFIG_CRYPTO_GF128MUL |
||
232 | FILES:=$(LINUX_DIR)/crypto/gf128mul.ko |
||
233 | AUTOLOAD:=$(call AutoLoad,09,gf128mul) |
||
234 | $(call AddDepends/crypto) |
||
235 | endef |
||
236 | |||
237 | $(eval $(call KernelPackage,crypto-gf128)) |
||
238 | |||
239 | |||
240 | define KernelPackage/crypto-ghash |
||
241 | TITLE:=GHASH digest CryptoAPI module |
||
242 | DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-hash |
||
243 | KCONFIG:=CONFIG_CRYPTO_GHASH |
||
244 | FILES:=$(LINUX_DIR)/crypto/ghash-generic.ko |
||
245 | AUTOLOAD:=$(call AutoLoad,09,ghash-generic) |
||
246 | $(call AddDepends/crypto) |
||
247 | endef |
||
248 | |||
249 | $(eval $(call KernelPackage,crypto-ghash)) |
||
250 | |||
251 | |||
252 | define KernelPackage/crypto-hash |
||
253 | TITLE:=CryptoAPI hash support |
||
254 | KCONFIG:=CONFIG_CRYPTO_HASH |
||
255 | FILES:=$(LINUX_DIR)/crypto/crypto_hash.ko |
||
256 | AUTOLOAD:=$(call AutoLoad,02,crypto_hash,1) |
||
257 | $(call AddDepends/crypto) |
||
258 | endef |
||
259 | |||
260 | $(eval $(call KernelPackage,crypto-hash)) |
||
261 | |||
262 | |||
263 | define KernelPackage/crypto-hmac |
||
264 | TITLE:=HMAC digest CryptoAPI module |
||
265 | DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager |
||
266 | KCONFIG:=CONFIG_CRYPTO_HMAC |
||
267 | FILES:=$(LINUX_DIR)/crypto/hmac.ko |
||
268 | AUTOLOAD:=$(call AutoLoad,09,hmac) |
||
269 | $(call AddDepends/crypto) |
||
270 | endef |
||
271 | |||
272 | $(eval $(call KernelPackage,crypto-hmac)) |
||
273 | |||
274 | |||
275 | define KernelPackage/crypto-hw-ccp |
||
276 | TITLE:=AMD Cryptographic Coprocessor |
||
277 | DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash +kmod-crypto-manager +kmod-random-core +kmod-crypto-sha1 +kmod-crypto-sha256 +!(LINUX_3_18||LINUX_4_9):kmod-crypto-rsa |
||
278 | KCONFIG:= \ |
||
279 | CONFIG_CRYPTO_HW=y \ |
||
280 | CONFIG_CRYPTO_DEV_CCP=y \ |
||
281 | CONFIG_CRYPTO_DEV_CCP_CRYPTO \ |
||
282 | CONFIG_CRYPTO_DEV_CCP_DD \ |
||
283 | CONFIG_CRYPTO_DEV_SP_CCP=y |
||
284 | FILES:= \ |
||
285 | $(LINUX_DIR)/drivers/crypto/ccp/ccp.ko \ |
||
286 | $(LINUX_DIR)/drivers/crypto/ccp/ccp-crypto.ko |
||
287 | AUTOLOAD:=$(call AutoLoad,09,ccp ccp-crypto) |
||
288 | $(call AddDepends/crypto) |
||
289 | endef |
||
290 | |||
291 | $(eval $(call KernelPackage,crypto-hw-ccp)) |
||
292 | |||
293 | |||
294 | define KernelPackage/crypto-hw-geode |
||
295 | TITLE:=AMD Geode hardware crypto module |
||
296 | DEPENDS:=+kmod-crypto-manager |
||
297 | KCONFIG:= \ |
||
298 | CONFIG_CRYPTO_HW=y \ |
||
299 | CONFIG_CRYPTO_DEV_GEODE |
||
300 | FILES:=$(LINUX_DIR)/drivers/crypto/geode-aes.ko |
||
301 | AUTOLOAD:=$(call AutoLoad,09,geode-aes) |
||
302 | $(call AddDepends/crypto) |
||
303 | endef |
||
304 | |||
305 | $(eval $(call KernelPackage,crypto-hw-geode)) |
||
306 | |||
307 | |||
308 | define KernelPackage/crypto-hw-hifn-795x |
||
309 | TITLE:=HIFN 795x crypto accelerator |
||
310 | DEPENDS:=+kmod-random-core +kmod-crypto-manager |
||
311 | KCONFIG:= \ |
||
312 | CONFIG_CRYPTO_HW=y \ |
||
313 | CONFIG_CRYPTO_DEV_HIFN_795X \ |
||
314 | CONFIG_CRYPTO_DEV_HIFN_795X_RNG=y |
||
315 | FILES:=$(LINUX_DIR)/drivers/crypto/hifn_795x.ko |
||
316 | AUTOLOAD:=$(call AutoLoad,09,hifn_795x) |
||
317 | $(call AddDepends/crypto,+kmod-crypto-des) |
||
318 | endef |
||
319 | |||
320 | $(eval $(call KernelPackage,crypto-hw-hifn-795x)) |
||
321 | |||
322 | |||
323 | define KernelPackage/crypto-hw-padlock |
||
324 | TITLE:=VIA PadLock ACE with AES/SHA hw crypto module |
||
325 | DEPENDS:=+kmod-crypto-manager |
||
326 | KCONFIG:= \ |
||
327 | CONFIG_CRYPTO_HW=y \ |
||
328 | CONFIG_CRYPTO_DEV_PADLOCK \ |
||
329 | CONFIG_CRYPTO_DEV_PADLOCK_AES \ |
||
330 | CONFIG_CRYPTO_DEV_PADLOCK_SHA |
||
331 | FILES:= \ |
||
332 | $(LINUX_DIR)/drivers/crypto/padlock-aes.ko \ |
||
333 | $(LINUX_DIR)/drivers/crypto/padlock-sha.ko |
||
334 | AUTOLOAD:=$(call AutoLoad,09,padlock-aes padlock-sha) |
||
335 | $(call AddDepends/crypto) |
||
336 | endef |
||
337 | |||
338 | $(eval $(call KernelPackage,crypto-hw-padlock)) |
||
339 | |||
340 | |||
341 | define KernelPackage/crypto-hw-talitos |
||
342 | TITLE:=Freescale integrated security engine (SEC) driver |
||
343 | DEPENDS:=+kmod-crypto-manager +kmod-crypto-hash +kmod-random-core +kmod-crypto-authenc +kmod-crypto-des |
||
344 | KCONFIG:= \ |
||
345 | CONFIG_CRYPTO_HW=y \ |
||
346 | CONFIG_CRYPTO_DEV_TALITOS \ |
||
347 | CONFIG_CRYPTO_DEV_TALITOS1=y \ |
||
348 | CONFIG_CRYPTO_DEV_TALITOS2=y |
||
349 | FILES:= \ |
||
350 | $(LINUX_DIR)/drivers/crypto/talitos.ko |
||
351 | AUTOLOAD:=$(call AutoLoad,09,talitos) |
||
352 | $(call AddDepends/crypto) |
||
353 | endef |
||
354 | |||
355 | $(eval $(call KernelPackage,crypto-hw-talitos)) |
||
356 | |||
357 | |||
358 | define KernelPackage/crypto-iv |
||
359 | TITLE:=CryptoAPI initialization vectors |
||
360 | DEPENDS:=+kmod-crypto-manager +kmod-crypto-rng +kmod-crypto-wq |
||
361 | KCONFIG:= CONFIG_CRYPTO_BLKCIPHER2 |
||
362 | HIDDEN:=1 |
||
363 | FILES:= \ |
||
364 | $(LINUX_DIR)/crypto/eseqiv.ko@lt4.9 \ |
||
365 | $(LINUX_DIR)/crypto/chainiv.ko@lt4.9 |
||
366 | AUTOLOAD:=$(call AutoLoad,10,eseqiv chainiv) |
||
367 | $(call AddDepends/crypto) |
||
368 | endef |
||
369 | |||
370 | $(eval $(call KernelPackage,crypto-iv)) |
||
371 | |||
372 | |||
373 | define KernelPackage/crypto-kpp |
||
374 | TITLE:=Key-agreement Protocol Primitives |
||
375 | KCONFIG:=CONFIG_CRYPTO_KPP |
||
376 | HIDDEN:=1 |
||
377 | FILES:=$(LINUX_DIR)/crypto/kpp.ko |
||
378 | AUTOLOAD:=$(call AutoLoad,09,kpp) |
||
379 | $(call AddDepends/crypto) |
||
380 | endef |
||
381 | |||
382 | $(eval $(call KernelPackage,crypto-kpp)) |
||
383 | |||
384 | |||
385 | define KernelPackage/crypto-manager |
||
386 | TITLE:=CryptoAPI algorithm manager |
||
387 | DEPENDS:=+kmod-crypto-aead +kmod-crypto-hash +kmod-crypto-pcompress |
||
388 | KCONFIG:= \ |
||
389 | CONFIG_CRYPTO_MANAGER \ |
||
390 | CONFIG_CRYPTO_MANAGER2 |
||
391 | FILES:=$(LINUX_DIR)/crypto/cryptomgr.ko |
||
392 | AUTOLOAD:=$(call AutoLoad,09,cryptomgr,1) |
||
393 | $(call AddDepends/crypto) |
||
394 | endef |
||
395 | |||
396 | $(eval $(call KernelPackage,crypto-manager)) |
||
397 | |||
398 | |||
399 | define KernelPackage/crypto-md4 |
||
400 | TITLE:=MD4 digest CryptoAPI module |
||
401 | DEPENDS:=+kmod-crypto-hash |
||
402 | KCONFIG:=CONFIG_CRYPTO_MD4 |
||
403 | FILES:=$(LINUX_DIR)/crypto/md4.ko |
||
404 | AUTOLOAD:=$(call AutoLoad,09,md4) |
||
405 | $(call AddDepends/crypto) |
||
406 | endef |
||
407 | |||
408 | $(eval $(call KernelPackage,crypto-md4)) |
||
409 | |||
410 | |||
411 | define KernelPackage/crypto-md5 |
||
412 | TITLE:=MD5 digest CryptoAPI module |
||
413 | DEPENDS:=+kmod-crypto-hash |
||
414 | KCONFIG:= \ |
||
415 | CONFIG_CRYPTO_MD5 \ |
||
416 | CONFIG_CRYPTO_MD5_OCTEON |
||
417 | FILES:=$(LINUX_DIR)/crypto/md5.ko |
||
418 | AUTOLOAD:=$(call AutoLoad,09,md5) |
||
419 | $(call AddDepends/crypto) |
||
420 | endef |
||
421 | |||
422 | define KernelPackage/crypto-md5/octeon |
||
423 | FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-md5.ko |
||
424 | AUTOLOAD+=$(call AutoLoad,09,octeon-md5) |
||
425 | endef |
||
426 | |||
427 | $(eval $(call KernelPackage,crypto-md5)) |
||
428 | |||
429 | |||
430 | define KernelPackage/crypto-michael-mic |
||
431 | TITLE:=Michael MIC keyed digest CryptoAPI module |
||
432 | DEPENDS:=+kmod-crypto-hash |
||
433 | KCONFIG:=CONFIG_CRYPTO_MICHAEL_MIC |
||
434 | FILES:=$(LINUX_DIR)/crypto/michael_mic.ko |
||
435 | AUTOLOAD:=$(call AutoLoad,09,michael_mic) |
||
436 | $(call AddDepends/crypto) |
||
437 | endef |
||
438 | |||
439 | $(eval $(call KernelPackage,crypto-michael-mic)) |
||
440 | |||
441 | |||
442 | define KernelPackage/crypto-misc |
||
443 | TITLE:=Other CryptoAPI modules |
||
444 | DEPENDS:=+kmod-crypto-xts |
||
445 | KCONFIG:= \ |
||
446 | CONFIG_CRYPTO_CAMELLIA_X86_64 \ |
||
447 | CONFIG_CRYPTO_BLOWFISH_X86_64 \ |
||
448 | CONFIG_CRYPTO_TWOFISH_X86_64 \ |
||
449 | CONFIG_CRYPTO_TWOFISH_X86_64_3WAY \ |
||
450 | CONFIG_CRYPTO_SERPENT_SSE2_X86_64 \ |
||
451 | CONFIG_CRYPTO_CAMELLIA_AESNI_AVX_X86_64 \ |
||
452 | CONFIG_CRYPTO_CAST5_AVX_X86_64 \ |
||
453 | CONFIG_CRYPTO_CAST6_AVX_X86_64 \ |
||
454 | CONFIG_CRYPTO_TWOFISH_AVX_X86_64 \ |
||
455 | CONFIG_CRYPTO_SERPENT_AVX_X86_64 \ |
||
456 | CONFIG_CRYPTO_CAMELLIA_AESNI_AVX2_X86_64 \ |
||
457 | CONFIG_CRYPTO_SERPENT_AVX2_X86_64 \ |
||
458 | CONFIG_CRYPTO_SERPENT_SSE2_586 \ |
||
459 | CONFIG_CRYPTO_ANUBIS \ |
||
460 | CONFIG_CRYPTO_BLOWFISH \ |
||
461 | CONFIG_CRYPTO_CAMELLIA \ |
||
462 | CONFIG_CRYPTO_CAST5 \ |
||
463 | CONFIG_CRYPTO_CAST6 \ |
||
464 | CONFIG_CRYPTO_FCRYPT \ |
||
465 | CONFIG_CRYPTO_KHAZAD \ |
||
466 | CONFIG_CRYPTO_SERPENT \ |
||
467 | CONFIG_CRYPTO_TEA \ |
||
468 | CONFIG_CRYPTO_TGR192 \ |
||
469 | CONFIG_CRYPTO_TWOFISH \ |
||
470 | CONFIG_CRYPTO_TWOFISH_COMMON \ |
||
471 | CONFIG_CRYPTO_TWOFISH_586 \ |
||
472 | CONFIG_CRYPTO_WP512 |
||
473 | FILES:= \ |
||
474 | $(LINUX_DIR)/crypto/anubis.ko \ |
||
475 | $(LINUX_DIR)/crypto/camellia_generic.ko \ |
||
476 | $(LINUX_DIR)/crypto/cast_common.ko \ |
||
477 | $(LINUX_DIR)/crypto/cast5_generic.ko \ |
||
478 | $(LINUX_DIR)/crypto/cast6_generic.ko \ |
||
479 | $(LINUX_DIR)/crypto/khazad.ko \ |
||
480 | $(LINUX_DIR)/crypto/tea.ko \ |
||
481 | $(LINUX_DIR)/crypto/tgr192.ko \ |
||
482 | $(LINUX_DIR)/crypto/twofish_common.ko \ |
||
483 | $(LINUX_DIR)/crypto/wp512.ko \ |
||
484 | $(LINUX_DIR)/crypto/twofish_generic.ko \ |
||
485 | $(LINUX_DIR)/crypto/blowfish_common.ko \ |
||
486 | $(LINUX_DIR)/crypto/blowfish_generic.ko \ |
||
487 | $(LINUX_DIR)/crypto/serpent_generic.ko |
||
488 | AUTOLOAD:=$(call AutoLoad,10,anubis camellia_generic cast_common \ |
||
489 | cast5_generic cast6_generic khazad tea tgr192 twofish_common \ |
||
490 | wp512 blowfish_common serpent_generic) |
||
491 | ifndef CONFIG_TARGET_x86 |
||
492 | AUTOLOAD+= $(call AutoLoad,10,twofish_generic blowfish_generic) |
||
493 | endif |
||
494 | $(call AddDepends/crypto) |
||
495 | endef |
||
496 | |||
497 | ifndef CONFIG_TARGET_x86_64 |
||
498 | define KernelPackage/crypto-misc/x86 |
||
499 | FILES+= \ |
||
500 | $(LINUX_DIR)/arch/x86/crypto/twofish-i586.ko \ |
||
501 | $(LINUX_DIR)/arch/x86/crypto/serpent-sse2-i586.ko \ |
||
502 | $(LINUX_DIR)/arch/x86/crypto/glue_helper.ko \ |
||
503 | $(LINUX_DIR)/crypto/ablk_helper.ko@lt4.17 \ |
||
504 | $(LINUX_DIR)/crypto/cryptd.ko \ |
||
505 | $(LINUX_DIR)/crypto/lrw.ko@lt4.17 \ |
||
506 | $(LINUX_DIR)/crypto/crypto_simd.ko@ge4.17 |
||
507 | AUTOLOAD+= $(call AutoLoad,10,cryptd glue_helper \ |
||
508 | serpent-sse2-i586 twofish-i586 blowfish_generic) |
||
509 | endef |
||
510 | endif |
||
511 | |||
512 | define KernelPackage/crypto-misc/x86/64 |
||
513 | FILES+= \ |
||
514 | $(LINUX_DIR)/arch/x86/crypto/camellia-x86_64.ko \ |
||
515 | $(LINUX_DIR)/arch/x86/crypto/blowfish-x86_64.ko \ |
||
516 | $(LINUX_DIR)/arch/x86/crypto/twofish-x86_64.ko \ |
||
517 | $(LINUX_DIR)/arch/x86/crypto/twofish-x86_64-3way.ko \ |
||
518 | $(LINUX_DIR)/arch/x86/crypto/serpent-sse2-x86_64.ko \ |
||
519 | $(LINUX_DIR)/arch/x86/crypto/camellia-aesni-avx-x86_64.ko \ |
||
520 | $(LINUX_DIR)/arch/x86/crypto/cast5-avx-x86_64.ko \ |
||
521 | $(LINUX_DIR)/arch/x86/crypto/cast6-avx-x86_64.ko \ |
||
522 | $(LINUX_DIR)/arch/x86/crypto/twofish-avx-x86_64.ko \ |
||
523 | $(LINUX_DIR)/arch/x86/crypto/serpent-avx-x86_64.ko \ |
||
524 | $(LINUX_DIR)/arch/x86/crypto/camellia-aesni-avx2.ko \ |
||
525 | $(LINUX_DIR)/arch/x86/crypto/serpent-avx2.ko \ |
||
526 | $(LINUX_DIR)/crypto/ablk_helper.ko@lt4.17 |
||
527 | AUTOLOAD+= $(call AutoLoad,10,camellia-x86_64 \ |
||
528 | camellia-aesni-avx-x86_64 camellia-aesni-avx2 cast5-avx-x86_64 \ |
||
529 | cast6-avx-x86_64 twofish-x86_64 twofish-x86_64-3way \ |
||
530 | twofish-avx-x86_64 blowfish-x86_64 serpent-avx-x86_64 serpent-avx2) |
||
531 | endef |
||
532 | |||
533 | $(eval $(call KernelPackage,crypto-misc)) |
||
534 | |||
535 | |||
536 | define KernelPackage/crypto-null |
||
537 | TITLE:=Null CryptoAPI module |
||
538 | KCONFIG:=CONFIG_CRYPTO_NULL |
||
539 | FILES:=$(LINUX_DIR)/crypto/crypto_null.ko |
||
540 | AUTOLOAD:=$(call AutoLoad,09,crypto_null) |
||
541 | $(call AddDepends/crypto, +kmod-crypto-hash) |
||
542 | endef |
||
543 | |||
544 | $(eval $(call KernelPackage,crypto-null)) |
||
545 | |||
546 | |||
547 | define KernelPackage/crypto-pcbc |
||
548 | TITLE:=Propagating Cipher Block Chaining CryptoAPI module |
||
549 | DEPENDS:=+kmod-crypto-manager |
||
550 | KCONFIG:=CONFIG_CRYPTO_PCBC |
||
551 | FILES:=$(LINUX_DIR)/crypto/pcbc.ko |
||
552 | AUTOLOAD:=$(call AutoLoad,09,pcbc) |
||
553 | $(call AddDepends/crypto) |
||
554 | endef |
||
555 | |||
556 | $(eval $(call KernelPackage,crypto-pcbc)) |
||
557 | |||
558 | |||
559 | define KernelPackage/crypto-pcompress |
||
560 | TITLE:=CryptoAPI Partial (de)compression operations |
||
561 | KCONFIG:= \ |
||
562 | CONFIG_CRYPTO_PCOMP=y \ |
||
563 | CONFIG_CRYPTO_PCOMP2 |
||
564 | FILES:=$(LINUX_DIR)/crypto/pcompress.ko |
||
565 | AUTOLOAD:=$(call AutoLoad,09,pcompress) |
||
566 | $(call AddDepends/crypto) |
||
567 | endef |
||
568 | |||
569 | $(eval $(call KernelPackage,crypto-pcompress)) |
||
570 | |||
571 | |||
572 | define KernelPackage/crypto-rsa |
||
573 | TITLE:=RSA algorithm |
||
574 | DEPENDS:=@!LINUX_3_18 +kmod-crypto-manager +kmod-asn1-decoder |
||
575 | KCONFIG:= CONFIG_CRYPTO_RSA |
||
576 | HIDDEN:=1 |
||
577 | FILES:= \ |
||
578 | $(LINUX_DIR)/lib/mpi/mpi.ko \ |
||
579 | $(LINUX_DIR)/crypto/akcipher.ko \ |
||
580 | $(LINUX_DIR)/crypto/rsa_generic.ko |
||
581 | AUTOLOAD:=$(call AutoLoad,10,rsa_generic) |
||
582 | $(call AddDepends/crypto) |
||
583 | endef |
||
584 | |||
585 | $(eval $(call KernelPackage,crypto-rsa)) |
||
586 | |||
587 | |||
588 | define KernelPackage/crypto-rng |
||
589 | TITLE:=CryptoAPI random number generation |
||
590 | DEPENDS:=+kmod-crypto-hash +kmod-crypto-hmac +kmod-crypto-sha256 |
||
591 | KCONFIG:= \ |
||
592 | CONFIG_CRYPTO_DRBG \ |
||
593 | CONFIG_CRYPTO_DRBG_HMAC=y \ |
||
594 | CONFIG_CRYPTO_DRBG_HASH=n \ |
||
595 | CONFIG_CRYPTO_DRBG_MENU \ |
||
596 | CONFIG_CRYPTO_JITTERENTROPY \ |
||
597 | CONFIG_CRYPTO_RNG2 |
||
598 | FILES:= \ |
||
599 | $(LINUX_DIR)/crypto/drbg.ko@ge4.2 \ |
||
600 | $(LINUX_DIR)/crypto/jitterentropy_rng.ko@ge4.2 \ |
||
601 | $(LINUX_DIR)/crypto/krng.ko@lt4.2 \ |
||
602 | $(LINUX_DIR)/crypto/rng.ko |
||
603 | AUTOLOAD:=$(call AutoLoad,09,drbg@ge4.2 jitterentropy_rng@ge4.2 krng@lt4.2 rng) |
||
604 | $(call AddDepends/crypto) |
||
605 | endef |
||
606 | |||
607 | $(eval $(call KernelPackage,crypto-rng)) |
||
608 | |||
609 | |||
610 | define KernelPackage/crypto-seqiv |
||
611 | TITLE:=CryptoAPI Sequence Number IV Generator |
||
612 | DEPENDS:=+kmod-crypto-aead +kmod-crypto-rng |
||
613 | KCONFIG:=CONFIG_CRYPTO_SEQIV |
||
614 | FILES:=$(LINUX_DIR)/crypto/seqiv.ko |
||
615 | AUTOLOAD:=$(call AutoLoad,09,seqiv) |
||
616 | $(call AddDepends/crypto) |
||
617 | endef |
||
618 | |||
619 | $(eval $(call KernelPackage,crypto-seqiv)) |
||
620 | |||
621 | |||
622 | define KernelPackage/crypto-sha1 |
||
623 | TITLE:=SHA1 digest CryptoAPI module |
||
624 | DEPENDS:=+kmod-crypto-hash |
||
625 | KCONFIG:= \ |
||
626 | CONFIG_CRYPTO_SHA1 \ |
||
627 | CONFIG_CRYPTO_SHA1_OCTEON \ |
||
628 | CONFIG_CRYPTO_SHA1_SSSE3 |
||
629 | FILES:=$(LINUX_DIR)/crypto/sha1_generic.ko |
||
630 | AUTOLOAD:=$(call AutoLoad,09,sha1_generic) |
||
631 | $(call AddDepends/crypto) |
||
632 | endef |
||
633 | |||
634 | define KernelPackage/crypto-sha1/octeon |
||
635 | FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha1.ko |
||
636 | AUTOLOAD+=$(call AutoLoad,09,octeon-sha1) |
||
637 | endef |
||
638 | |||
639 | define KernelPackage/crypto-sha1/x86/64 |
||
640 | FILES+=$(LINUX_DIR)/arch/x86/crypto/sha1-ssse3.ko |
||
641 | AUTOLOAD+=$(call AutoLoad,09,sha1-ssse3) |
||
642 | endef |
||
643 | |||
644 | $(eval $(call KernelPackage,crypto-sha1)) |
||
645 | |||
646 | |||
647 | define KernelPackage/crypto-sha256 |
||
648 | TITLE:=SHA224 SHA256 digest CryptoAPI module |
||
649 | DEPENDS:=+kmod-crypto-hash |
||
650 | KCONFIG:= \ |
||
651 | CONFIG_CRYPTO_SHA256 \ |
||
652 | CONFIG_CRYPTO_SHA256_OCTEON \ |
||
653 | CONFIG_CRYPTO_SHA256_SSSE3 |
||
654 | FILES:=$(LINUX_DIR)/crypto/sha256_generic.ko |
||
655 | AUTOLOAD:=$(call AutoLoad,09,sha256_generic) |
||
656 | $(call AddDepends/crypto) |
||
657 | endef |
||
658 | |||
659 | define KernelPackage/crypto-sha256/octeon |
||
660 | FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha256.ko |
||
661 | AUTOLOAD+=$(call AutoLoad,09,octeon-sha256) |
||
662 | endef |
||
663 | |||
664 | define KernelPackage/crypto-sha256/x86/64 |
||
665 | FILES+=$(LINUX_DIR)/arch/x86/crypto/sha256-ssse3.ko |
||
666 | AUTOLOAD+=$(call AutoLoad,09,sha256-ssse3) |
||
667 | endef |
||
668 | |||
669 | $(eval $(call KernelPackage,crypto-sha256)) |
||
670 | |||
671 | |||
672 | define KernelPackage/crypto-sha512 |
||
673 | TITLE:=SHA512 digest CryptoAPI module |
||
674 | DEPENDS:=+kmod-crypto-hash |
||
675 | KCONFIG:= \ |
||
676 | CONFIG_CRYPTO_SHA512 \ |
||
677 | CONFIG_CRYPTO_SHA512_OCTEON \ |
||
678 | CONFIG_CRYPTO_SHA512_SSSE3 |
||
679 | FILES:=$(LINUX_DIR)/crypto/sha512_generic.ko |
||
680 | AUTOLOAD:=$(call AutoLoad,09,sha512_generic) |
||
681 | $(call AddDepends/crypto) |
||
682 | endef |
||
683 | |||
684 | define KernelPackage/crypto-sha512/octeon |
||
685 | FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha512.ko |
||
686 | AUTOLOAD+=$(call AutoLoad,09,octeon-sha512) |
||
687 | endef |
||
688 | |||
689 | define KernelPackage/crypto-sha512/x86/64 |
||
690 | FILES+=$(LINUX_DIR)/arch/x86/crypto/sha512-ssse3.ko |
||
691 | AUTOLOAD+=$(call AutoLoad,09,sha512-ssse3) |
||
692 | endef |
||
693 | |||
694 | $(eval $(call KernelPackage,crypto-sha512)) |
||
695 | |||
696 | |||
697 | define KernelPackage/crypto-test |
||
698 | TITLE:=Test CryptoAPI module |
||
699 | KCONFIG:=CONFIG_CRYPTO_TEST |
||
700 | FILES:=$(LINUX_DIR)/crypto/tcrypt.ko |
||
701 | $(call AddDepends/crypto,+kmod-crypto-manager) |
||
702 | endef |
||
703 | |||
704 | $(eval $(call KernelPackage,crypto-test)) |
||
705 | |||
706 | |||
707 | define KernelPackage/crypto-user |
||
708 | TITLE:=CryptoAPI userspace interface |
||
709 | DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager |
||
710 | KCONFIG:= \ |
||
711 | CONFIG_CRYPTO_USER_API \ |
||
712 | CONFIG_CRYPTO_USER_API_HASH \ |
||
713 | CONFIG_CRYPTO_USER_API_SKCIPHER |
||
714 | FILES:= \ |
||
715 | $(LINUX_DIR)/crypto/af_alg.ko \ |
||
716 | $(LINUX_DIR)/crypto/algif_hash.ko \ |
||
717 | $(LINUX_DIR)/crypto/algif_skcipher.ko |
||
718 | AUTOLOAD:=$(call AutoLoad,09,af_alg algif_hash algif_skcipher) |
||
719 | $(call AddDepends/crypto) |
||
720 | endef |
||
721 | |||
722 | $(eval $(call KernelPackage,crypto-user)) |
||
723 | |||
724 | |||
725 | define KernelPackage/crypto-wq |
||
726 | TITLE:=CryptoAPI work queue handling |
||
727 | KCONFIG:=CONFIG_CRYPTO_WORKQUEUE |
||
728 | FILES:=$(LINUX_DIR)/crypto/crypto_wq.ko |
||
729 | AUTOLOAD:=$(call AutoLoad,09,crypto_wq) |
||
730 | $(call AddDepends/crypto) |
||
731 | endef |
||
732 | $(eval $(call KernelPackage,crypto-wq)) |
||
733 | |||
734 | |||
735 | define KernelPackage/crypto-xts |
||
736 | TITLE:=XTS cipher CryptoAPI module |
||
737 | DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-manager |
||
738 | KCONFIG:=CONFIG_CRYPTO_XTS |
||
739 | FILES:=$(LINUX_DIR)/crypto/xts.ko |
||
740 | AUTOLOAD:=$(call AutoLoad,09,xts) |
||
741 | $(call AddDepends/crypto) |
||
742 | endef |
||
743 | |||
744 | $(eval $(call KernelPackage,crypto-xts)) |
||
745 |