mpc85xx: enable the crypto acceleration driver in the kernel config instead of packag...
[openwrt/openwrt.git] / package / kernel / linux / modules / crypto.mk
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 define KernelPackage/crypto-aead
24 TITLE:=CryptoAPI AEAD support
25 KCONFIG:= \
26 CONFIG_CRYPTO_AEAD \
27 CONFIG_CRYPTO_AEAD2
28 FILES:=$(LINUX_DIR)/crypto/aead.ko
29 AUTOLOAD:=$(call AutoLoad,09,aead,1)
30 $(call AddDepends/crypto, +LINUX_4_4:kmod-crypto-null)
31 endef
32
33 $(eval $(call KernelPackage,crypto-aead))
34
35
36 define KernelPackage/crypto-hash
37 TITLE:=CryptoAPI hash support
38 KCONFIG:=CONFIG_CRYPTO_HASH
39 FILES:=$(LINUX_DIR)/crypto/crypto_hash.ko
40 AUTOLOAD:=$(call AutoLoad,02,crypto_hash,1)
41 $(call AddDepends/crypto)
42 endef
43
44 $(eval $(call KernelPackage,crypto-hash))
45
46
47 define KernelPackage/crypto-manager
48 TITLE:=CryptoAPI algorithm manager
49 DEPENDS:=+kmod-crypto-aead +kmod-crypto-hash +kmod-crypto-pcompress
50 KCONFIG:= \
51 CONFIG_CRYPTO_MANAGER \
52 CONFIG_CRYPTO_MANAGER2
53 FILES:=$(LINUX_DIR)/crypto/cryptomgr.ko
54 AUTOLOAD:=$(call AutoLoad,09,cryptomgr,1)
55 $(call AddDepends/crypto)
56 endef
57
58 $(eval $(call KernelPackage,crypto-manager))
59
60
61 define KernelPackage/crypto-pcompress
62 TITLE:=CryptoAPI Partial (de)compression operations
63 KCONFIG:= \
64 CONFIG_CRYPTO_PCOMP=y \
65 CONFIG_CRYPTO_PCOMP2
66 FILES:=$(LINUX_DIR)/crypto/pcompress.ko
67 AUTOLOAD:=$(call AutoLoad,09,pcompress)
68 $(call AddDepends/crypto)
69 endef
70
71 $(eval $(call KernelPackage,crypto-pcompress))
72
73
74 define KernelPackage/crypto-user
75 TITLE:=CryptoAPI userspace interface
76 DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager
77 KCONFIG:= \
78 CONFIG_CRYPTO_USER_API \
79 CONFIG_CRYPTO_USER_API_HASH \
80 CONFIG_CRYPTO_USER_API_SKCIPHER
81 FILES:= \
82 $(LINUX_DIR)/crypto/af_alg.ko \
83 $(LINUX_DIR)/crypto/algif_hash.ko \
84 $(LINUX_DIR)/crypto/algif_skcipher.ko
85 AUTOLOAD:=$(call AutoLoad,09,af_alg algif_hash algif_skcipher)
86 $(call AddDepends/crypto)
87 endef
88
89 $(eval $(call KernelPackage,crypto-user))
90
91
92 define KernelPackage/crypto-wq
93 TITLE:=CryptoAPI work queue handling
94 KCONFIG:=CONFIG_CRYPTO_WORKQUEUE
95 FILES:=$(LINUX_DIR)/crypto/crypto_wq.ko
96 AUTOLOAD:=$(call AutoLoad,09,crypto_wq)
97 $(call AddDepends/crypto)
98 endef
99 $(eval $(call KernelPackage,crypto-wq))
100
101 define KernelPackage/crypto-rng
102 TITLE:=CryptoAPI random number generation
103 DEPENDS:=+kmod-crypto-hash +kmod-crypto-hmac +kmod-crypto-sha256
104 KCONFIG:= \
105 CONFIG_CRYPTO_DRBG \
106 CONFIG_CRYPTO_DRBG_HMAC=y \
107 CONFIG_CRYPTO_DRBG_HASH=n \
108 CONFIG_CRYPTO_DRBG_MENU \
109 CONFIG_CRYPTO_JITTERENTROPY \
110 CONFIG_CRYPTO_RNG2
111 FILES:= \
112 $(LINUX_DIR)/crypto/drbg.ko@ge4.2 \
113 $(LINUX_DIR)/crypto/jitterentropy_rng.ko@ge4.2 \
114 $(LINUX_DIR)/crypto/krng.ko@lt4.2 \
115 $(LINUX_DIR)/crypto/rng.ko
116 AUTOLOAD:=$(call AutoLoad,09,drbg@ge4.2 jitterentropy_rng@ge4.2 krng@lt4.2 rng)
117 $(call AddDepends/crypto)
118 endef
119
120 $(eval $(call KernelPackage,crypto-rng))
121
122
123 define KernelPackage/crypto-iv
124 TITLE:=CryptoAPI initialization vectors
125 DEPENDS:=+kmod-crypto-manager +kmod-crypto-rng +kmod-crypto-wq
126 KCONFIG:= CONFIG_CRYPTO_BLKCIPHER2
127 FILES:= \
128 $(LINUX_DIR)/crypto/eseqiv.ko \
129 $(LINUX_DIR)/crypto/chainiv.ko
130 AUTOLOAD:=$(call AutoLoad,10,eseqiv chainiv)
131 $(call AddDepends/crypto)
132 endef
133
134 $(eval $(call KernelPackage,crypto-iv))
135
136
137 define KernelPackage/crypto-echainiv
138 TITLE:=Encrypted Chain IV Generator
139 DEPENDS:=+kmod-crypto-aead
140 KCONFIG:=CONFIG_CRYPTO_ECHAINIV
141 FILES:=$(LINUX_DIR)/crypto/echainiv.ko
142 AUTOLOAD:=$(call AutoLoad,09,echainiv)
143 $(call AddDepends/crypto)
144 endef
145
146 $(eval $(call KernelPackage,crypto-echainiv))
147
148
149 define KernelPackage/crypto-seqiv
150 TITLE:=CryptoAPI Sequence Number IV Generator
151 DEPENDS:=+kmod-crypto-aead +kmod-crypto-rng
152 KCONFIG:=CONFIG_CRYPTO_SEQIV
153 FILES:=$(LINUX_DIR)/crypto/seqiv.ko
154 AUTOLOAD:=$(call AutoLoad,09,seqiv)
155 $(call AddDepends/crypto)
156 endef
157
158 $(eval $(call KernelPackage,crypto-seqiv))
159
160
161 define KernelPackage/crypto-hw-talitos
162 TITLE:=Freescale integrated security engine (SEC) driver
163 DEPENDS:=+kmod-crypto-manager +kmod-crypto-hash +kmod-random-core +kmod-crypto-authenc
164 KCONFIG:= \
165 CONFIG_CRYPTO_HW=y \
166 CONFIG_CRYPTO_DEV_TALITOS \
167 CONFIG_CRYPTO_DEV_TALITOS1=y \
168 CONFIG_CRYPTO_DEV_TALITOS2=y
169 FILES:= \
170 $(LINUX_DIR)/drivers/crypto/talitos.ko
171 AUTOLOAD:=$(call AutoLoad,09,talitos)
172 $(call AddDepends/crypto)
173 endef
174
175 $(eval $(call KernelPackage,crypto-hw-talitos))
176
177
178 define KernelPackage/crypto-hw-padlock
179 TITLE:=VIA PadLock ACE with AES/SHA hw crypto module
180 DEPENDS:=+kmod-crypto-manager
181 KCONFIG:= \
182 CONFIG_CRYPTO_HW=y \
183 CONFIG_CRYPTO_DEV_PADLOCK \
184 CONFIG_CRYPTO_DEV_PADLOCK_AES \
185 CONFIG_CRYPTO_DEV_PADLOCK_SHA
186 FILES:= \
187 $(LINUX_DIR)/drivers/crypto/padlock-aes.ko \
188 $(LINUX_DIR)/drivers/crypto/padlock-sha.ko
189 AUTOLOAD:=$(call AutoLoad,09,padlock-aes padlock-sha)
190 $(call AddDepends/crypto)
191 endef
192
193 $(eval $(call KernelPackage,crypto-hw-padlock))
194
195
196 define KernelPackage/crypto-hw-ccp
197 TITLE:=AMD Cryptographic Coprocessor
198 DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash +kmod-crypto-manager +kmod-random-core
199 KCONFIG:= \
200 CONFIG_CRYPTO_HW=y \
201 CONFIG_CRYPTO_DEV_CCP=y \
202 CONFIG_CRYPTO_DEV_CCP_CRYPTO \
203 CONFIG_CRYPTO_DEV_CCP_DD
204 FILES:= \
205 $(LINUX_DIR)/drivers/crypto/ccp/ccp.ko \
206 $(LINUX_DIR)/drivers/crypto/ccp/ccp-crypto.ko
207 AUTOLOAD:=$(call AutoLoad,09,ccp ccp-crypto)
208 $(call AddDepends/crypto)
209 endef
210
211 $(eval $(call KernelPackage,crypto-hw-ccp))
212
213
214 define KernelPackage/crypto-hw-geode
215 TITLE:=AMD Geode hardware crypto module
216 DEPENDS:=+kmod-crypto-manager
217 KCONFIG:= \
218 CONFIG_CRYPTO_HW=y \
219 CONFIG_CRYPTO_DEV_GEODE
220 FILES:=$(LINUX_DIR)/drivers/crypto/geode-aes.ko
221 AUTOLOAD:=$(call AutoLoad,09,geode-aes)
222 $(call AddDepends/crypto)
223 endef
224
225 $(eval $(call KernelPackage,crypto-hw-geode))
226
227
228 define KernelPackage/crypto-hw-hifn-795x
229 TITLE:=HIFN 795x crypto accelerator
230 DEPENDS:=+kmod-random-core +kmod-crypto-manager
231 KCONFIG:= \
232 CONFIG_CRYPTO_HW=y \
233 CONFIG_CRYPTO_DEV_HIFN_795X \
234 CONFIG_CRYPTO_DEV_HIFN_795X_RNG=y
235 FILES:=$(LINUX_DIR)/drivers/crypto/hifn_795x.ko
236 AUTOLOAD:=$(call AutoLoad,09,hifn_795x)
237 $(call AddDepends/crypto,+kmod-crypto-des)
238 endef
239
240 $(eval $(call KernelPackage,crypto-hw-hifn-795x))
241
242
243 define KernelPackage/crypto-hw-ppc4xx
244 TITLE:=AMCC PPC4xx hardware crypto module
245 DEPENDS:=@TARGET_ppc40x||TARGET_ppc44x
246 KCONFIG:= \
247 CONFIG_CRYPTO_HW=y \
248 CONFIG_CRYPTO_DEV_PPC4XX
249 FILES:=$(LINUX_DIR)/drivers/crypto/amcc/crypto4xx.ko
250 AUTOLOAD:=$(call AutoLoad,90,crypto4xx)
251 $(call AddDepends/crypto,+kmod-crypto-manager +kmod-crypto-hash)
252 endef
253
254 define KernelPackage/crypto-hw-ppc4xx/description
255 Kernel support for the AMCC PPC4xx HW crypto engine.
256 endef
257
258 $(eval $(call KernelPackage,crypto-hw-ppc4xx))
259
260
261 define KernelPackage/crypto-hw-omap
262 TITLE:=TI OMAP hardware crypto modules
263 DEPENDS:=@TARGET_omap
264 KCONFIG:= \
265 CONFIG_CRYPTO_HW=y \
266 CONFIG_CRYPTO_DEV_OMAP_AES \
267 CONFIG_CRYPTO_DEV_OMAP_DES \
268 CONFIG_CRYPTO_DEV_OMAP_SHAM
269 ifneq ($(wildcard $(LINUX_DIR)/drivers/crypto/omap-des.ko),)
270 FILES:= \
271 $(LINUX_DIR)/drivers/crypto/omap-aes.ko \
272 $(LINUX_DIR)/drivers/crypto/omap-des.ko \
273 $(LINUX_DIR)/drivers/crypto/omap-sham.ko
274 AUTOLOAD:=$(call AutoLoad,90,omap-aes omap-des omap-sham)
275 else
276 FILES:= \
277 $(LINUX_DIR)/drivers/crypto/omap-aes.ko \
278 $(LINUX_DIR)/drivers/crypto/omap-sham.ko
279 AUTOLOAD:=$(call AutoLoad,90,omap-aes omap-sham)
280 endif
281 $(call AddDepends/crypto,+kmod-crypto-manager +kmod-crypto-hash)
282 endef
283
284 define KernelPackage/crypto-hw-omap/description
285 Kernel support for the TI OMAP HW crypto engine.
286 endef
287
288 $(eval $(call KernelPackage,crypto-hw-omap))
289
290
291 define KernelPackage/crypto-authenc
292 TITLE:=Combined mode wrapper for IPsec
293 DEPENDS:=+kmod-crypto-manager +LINUX_4_4:kmod-crypto-null
294 KCONFIG:=CONFIG_CRYPTO_AUTHENC
295 FILES:=$(LINUX_DIR)/crypto/authenc.ko
296 AUTOLOAD:=$(call AutoLoad,09,authenc)
297 $(call AddDepends/crypto)
298 endef
299
300 $(eval $(call KernelPackage,crypto-authenc))
301
302 define KernelPackage/crypto-cbc
303 TITLE:=Cipher Block Chaining CryptoAPI module
304 DEPENDS:=+kmod-crypto-manager
305 KCONFIG:=CONFIG_CRYPTO_CBC
306 FILES:=$(LINUX_DIR)/crypto/cbc.ko
307 AUTOLOAD:=$(call AutoLoad,09,cbc)
308 $(call AddDepends/crypto)
309 endef
310
311 $(eval $(call KernelPackage,crypto-cbc))
312
313 define KernelPackage/crypto-ctr
314 TITLE:=Counter Mode CryptoAPI module
315 DEPENDS:=+kmod-crypto-manager +kmod-crypto-seqiv +kmod-crypto-iv
316 KCONFIG:=CONFIG_CRYPTO_CTR
317 FILES:=$(LINUX_DIR)/crypto/ctr.ko
318 AUTOLOAD:=$(call AutoLoad,09,ctr)
319 $(call AddDepends/crypto)
320 endef
321
322 $(eval $(call KernelPackage,crypto-ctr))
323
324 define KernelPackage/crypto-ccm
325 TITLE:=Support for Counter with CBC MAC (CCM)
326 DEPENDS:=+kmod-crypto-ctr +kmod-crypto-aead
327 KCONFIG:=CONFIG_CRYPTO_CCM
328 FILES:=$(LINUX_DIR)/crypto/ccm.ko
329 AUTOLOAD:=$(call AutoLoad,09,ccm)
330 $(call AddDepends/crypto)
331 endef
332
333 $(eval $(call KernelPackage,crypto-ccm))
334
335 define KernelPackage/crypto-pcbc
336 TITLE:=Propagating Cipher Block Chaining CryptoAPI module
337 DEPENDS:=+kmod-crypto-manager
338 KCONFIG:=CONFIG_CRYPTO_PCBC
339 FILES:=$(LINUX_DIR)/crypto/pcbc.ko
340 AUTOLOAD:=$(call AutoLoad,09,pcbc)
341 $(call AddDepends/crypto)
342 endef
343
344 $(eval $(call KernelPackage,crypto-pcbc))
345
346 define KernelPackage/crypto-crc32c
347 TITLE:=CRC32c CRC module
348 DEPENDS:=+kmod-crypto-hash
349 KCONFIG:=CONFIG_CRYPTO_CRC32C
350 FILES:=$(LINUX_DIR)/crypto/crc32c_generic.ko
351 AUTOLOAD:=$(call AutoLoad,04,crc32c_generic,1)
352 $(call AddDepends/crypto)
353 endef
354
355 $(eval $(call KernelPackage,crypto-crc32c))
356
357
358 define KernelPackage/crypto-des
359 TITLE:=DES/3DES cipher CryptoAPI module
360 KCONFIG:=CONFIG_CRYPTO_DES
361 FILES:=$(LINUX_DIR)/crypto/des_generic.ko
362 AUTOLOAD:=$(call AutoLoad,09,des_generic)
363 $(call AddDepends/crypto)
364 endef
365
366 $(eval $(call KernelPackage,crypto-des))
367
368
369 define KernelPackage/crypto-deflate
370 TITLE:=Deflate compression CryptoAPI module
371 DEPENDS:=+kmod-lib-zlib-inflate +kmod-lib-zlib-deflate
372 KCONFIG:=CONFIG_CRYPTO_DEFLATE
373 FILES:=$(LINUX_DIR)/crypto/deflate.ko
374 AUTOLOAD:=$(call AutoLoad,09,deflate)
375 $(call AddDepends/crypto)
376 endef
377
378 $(eval $(call KernelPackage,crypto-deflate))
379
380
381 define KernelPackage/crypto-fcrypt
382 TITLE:=FCRYPT cipher CryptoAPI module
383 KCONFIG:=CONFIG_CRYPTO_FCRYPT
384 FILES:=$(LINUX_DIR)/crypto/fcrypt.ko
385 AUTOLOAD:=$(call AutoLoad,09,fcrypt)
386 $(call AddDepends/crypto)
387 endef
388
389 $(eval $(call KernelPackage,crypto-fcrypt))
390
391 define KernelPackage/crypto-ecb
392 TITLE:=Electronic CodeBook CryptoAPI module
393 DEPENDS:=+kmod-crypto-manager
394 KCONFIG:=CONFIG_CRYPTO_ECB
395 FILES:=$(LINUX_DIR)/crypto/ecb.ko
396 AUTOLOAD:=$(call AutoLoad,09,ecb)
397 $(call AddDepends/crypto)
398 endef
399
400 $(eval $(call KernelPackage,crypto-ecb))
401
402
403 define KernelPackage/crypto-hmac
404 TITLE:=HMAC digest CryptoAPI module
405 DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager
406 KCONFIG:=CONFIG_CRYPTO_HMAC
407 FILES:=$(LINUX_DIR)/crypto/hmac.ko
408 AUTOLOAD:=$(call AutoLoad,09,hmac)
409 $(call AddDepends/crypto)
410 endef
411
412 $(eval $(call KernelPackage,crypto-hmac))
413
414
415 define KernelPackage/crypto-cmac
416 TITLE:=Support for Cipher-based Message Authentication Code (CMAC)
417 DEPENDS:=+kmod-crypto-hash
418 KCONFIG:=CONFIG_CRYPTO_CMAC
419 FILES:=$(LINUX_DIR)/crypto/cmac.ko
420 AUTOLOAD:=$(call AutoLoad,09,cmac)
421 $(call AddDepends/crypto)
422 endef
423
424 $(eval $(call KernelPackage,crypto-cmac))
425
426
427 define KernelPackage/crypto-gcm
428 TITLE:=GCM/GMAC CryptoAPI module
429 DEPENDS:=+kmod-crypto-ctr +kmod-crypto-ghash +kmod-crypto-null
430 KCONFIG:=CONFIG_CRYPTO_GCM
431 FILES:=$(LINUX_DIR)/crypto/gcm.ko
432 AUTOLOAD:=$(call AutoLoad,09,gcm)
433 $(call AddDepends/crypto)
434 endef
435
436 $(eval $(call KernelPackage,crypto-gcm))
437
438
439 define KernelPackage/crypto-gf128
440 TITLE:=GF(2^128) multiplication functions CryptoAPI module
441 KCONFIG:=CONFIG_CRYPTO_GF128MUL
442 FILES:=$(LINUX_DIR)/crypto/gf128mul.ko
443 AUTOLOAD:=$(call AutoLoad,09,gf128mul)
444 $(call AddDepends/crypto)
445 endef
446
447 $(eval $(call KernelPackage,crypto-gf128))
448
449
450 define KernelPackage/crypto-ghash
451 TITLE:=GHASH digest CryptoAPI module
452 DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-hash
453 KCONFIG:=CONFIG_CRYPTO_GHASH
454 FILES:=$(LINUX_DIR)/crypto/ghash-generic.ko
455 AUTOLOAD:=$(call AutoLoad,09,ghash-generic)
456 $(call AddDepends/crypto)
457 endef
458
459 $(eval $(call KernelPackage,crypto-ghash))
460
461
462 define KernelPackage/crypto-md4
463 TITLE:=MD4 digest CryptoAPI module
464 DEPENDS:=+kmod-crypto-hash
465 KCONFIG:=CONFIG_CRYPTO_MD4
466 FILES:=$(LINUX_DIR)/crypto/md4.ko
467 AUTOLOAD:=$(call AutoLoad,09,md4)
468 $(call AddDepends/crypto)
469 endef
470
471 $(eval $(call KernelPackage,crypto-md4))
472
473
474 define KernelPackage/crypto-md5
475 TITLE:=MD5 digest CryptoAPI module
476 DEPENDS:=+kmod-crypto-hash
477 KCONFIG:= \
478 CONFIG_CRYPTO_MD5 \
479 CONFIG_CRYPTO_MD5_OCTEON
480 FILES:=$(LINUX_DIR)/crypto/md5.ko
481 AUTOLOAD:=$(call AutoLoad,09,md5)
482 $(call AddDepends/crypto)
483 endef
484
485 define KernelPackage/crypto-md5/octeon
486 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-md5.ko
487 AUTOLOAD:=$(call AutoLoad,09,octeon-md5)
488 endef
489
490 $(eval $(call KernelPackage,crypto-md5))
491
492
493 define KernelPackage/crypto-michael-mic
494 TITLE:=Michael MIC keyed digest CryptoAPI module
495 DEPENDS:=+kmod-crypto-hash
496 KCONFIG:=CONFIG_CRYPTO_MICHAEL_MIC
497 FILES:=$(LINUX_DIR)/crypto/michael_mic.ko
498 AUTOLOAD:=$(call AutoLoad,09,michael_mic)
499 $(call AddDepends/crypto)
500 endef
501
502 $(eval $(call KernelPackage,crypto-michael-mic))
503
504
505 define KernelPackage/crypto-sha1
506 TITLE:=SHA1 digest CryptoAPI module
507 DEPENDS:=+kmod-crypto-hash
508 KCONFIG:= \
509 CONFIG_CRYPTO_SHA1 \
510 CONFIG_CRYPTO_SHA1_OCTEON \
511 CONFIG_CRYPTO_SHA1_SSSE3
512 FILES:=$(LINUX_DIR)/crypto/sha1_generic.ko
513 AUTOLOAD:=$(call AutoLoad,09,sha1_generic)
514 $(call AddDepends/crypto)
515 endef
516
517 define KernelPackage/crypto-sha1/octeon
518 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha1.ko
519 AUTOLOAD:=$(call AutoLoad,09,octeon-sha1)
520 endef
521
522 define KernelPackage/crypto-sha1/x86/64
523 FILES+=$(LINUX_DIR)/arch/x86/crypto/sha1-ssse3.ko
524 AUTOLOAD:=$(call AutoLoad,09,sha1-ssse3)
525 endef
526
527 $(eval $(call KernelPackage,crypto-sha1))
528
529
530 define KernelPackage/crypto-sha256
531 TITLE:=SHA224 SHA256 digest CryptoAPI module
532 DEPENDS:=+kmod-crypto-hash
533 KCONFIG:= \
534 CONFIG_CRYPTO_SHA256 \
535 CONFIG_CRYPTO_SHA256_OCTEON \
536 CONFIG_CRYPTO_SHA256_SSSE3
537 FILES:=$(LINUX_DIR)/crypto/sha256_generic.ko
538 AUTOLOAD:=$(call AutoLoad,09,sha256_generic)
539 $(call AddDepends/crypto)
540 endef
541
542 define KernelPackage/crypto-sha256/octeon
543 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha256.ko
544 AUTOLOAD:=$(call AutoLoad,09,octeon-sha256)
545 endef
546
547 define KernelPackage/crypto-sha256/x86/64
548 FILES+=$(LINUX_DIR)/arch/x86/crypto/sha256-ssse3.ko
549 AUTOLOAD:=$(call AutoLoad,09,sha256-ssse3)
550 endef
551
552 $(eval $(call KernelPackage,crypto-sha256))
553
554
555 define KernelPackage/crypto-sha512
556 TITLE:=SHA512 digest CryptoAPI module
557 DEPENDS:=+kmod-crypto-hash
558 KCONFIG:= \
559 CONFIG_CRYPTO_SHA512 \
560 CONFIG_CRYPTO_SHA512_OCTEON \
561 CONFIG_CRYPTO_SHA512_SSSE3
562 FILES:=$(LINUX_DIR)/crypto/sha512_generic.ko
563 AUTOLOAD:=$(call AutoLoad,09,sha512_generic)
564 $(call AddDepends/crypto)
565 endef
566
567 define KernelPackage/crypto-sha512/octeon
568 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha512.ko
569 AUTOLOAD:=$(call AutoLoad,09,octeon-sha512)
570 endef
571
572 define KernelPackage/crypto-sha512/x86/64
573 FILES+=$(LINUX_DIR)/arch/x86/crypto/sha512-ssse3.ko
574 AUTOLOAD:=$(call AutoLoad,09,sha512-ssse3)
575 endef
576
577 $(eval $(call KernelPackage,crypto-sha512))
578
579
580 define KernelPackage/crypto-misc
581 TITLE:=Other CryptoAPI modules
582 DEPENDS:=+kmod-crypto-manager
583 KCONFIG:= \
584 CONFIG_CRYPTO_ANUBIS \
585 CONFIG_CRYPTO_BLOWFISH \
586 CONFIG_CRYPTO_CAMELLIA \
587 CONFIG_CRYPTO_CAST5 \
588 CONFIG_CRYPTO_CAST6 \
589 CONFIG_CRYPTO_FCRYPT \
590 CONFIG_CRYPTO_KHAZAD \
591 CONFIG_CRYPTO_SERPENT \
592 CONFIG_CRYPTO_TEA \
593 CONFIG_CRYPTO_TGR192 \
594 CONFIG_CRYPTO_TWOFISH \
595 CONFIG_CRYPTO_TWOFISH_COMMON \
596 CONFIG_CRYPTO_TWOFISH_586 \
597 CONFIG_CRYPTO_WP512
598 FILES:= \
599 $(LINUX_DIR)/crypto/anubis.ko \
600 $(LINUX_DIR)/crypto/camellia_generic.ko \
601 $(LINUX_DIR)/crypto/cast_common.ko \
602 $(LINUX_DIR)/crypto/cast5_generic.ko \
603 $(LINUX_DIR)/crypto/cast6_generic.ko \
604 $(LINUX_DIR)/crypto/khazad.ko \
605 $(LINUX_DIR)/crypto/tea.ko \
606 $(LINUX_DIR)/crypto/tgr192.ko \
607 $(LINUX_DIR)/crypto/twofish_common.ko \
608 $(LINUX_DIR)/crypto/wp512.ko \
609 $(LINUX_DIR)/crypto/twofish_generic.ko \
610 $(LINUX_DIR)/crypto/blowfish_common.ko \
611 $(LINUX_DIR)/crypto/blowfish_generic.ko \
612 $(LINUX_DIR)/crypto/serpent_generic.ko
613 $(call AddDepends/crypto)
614 endef
615
616 ifndef CONFIG_TARGET_x86_64
617 define KernelPackage/crypto-misc/x86
618 FILES+=$(LINUX_DIR)/arch/x86/crypto/twofish-i586.ko
619 endef
620 endif
621
622 $(eval $(call KernelPackage,crypto-misc))
623
624
625 define KernelPackage/crypto-null
626 TITLE:=Null CryptoAPI module
627 KCONFIG:=CONFIG_CRYPTO_NULL
628 FILES:=$(LINUX_DIR)/crypto/crypto_null.ko
629 AUTOLOAD:=$(call AutoLoad,09,crypto_null)
630 $(call AddDepends/crypto, +kmod-crypto-hash)
631 endef
632
633 $(eval $(call KernelPackage,crypto-null))
634
635
636 define KernelPackage/crypto-test
637 TITLE:=Test CryptoAPI module
638 KCONFIG:=CONFIG_CRYPTO_TEST
639 FILES:=$(LINUX_DIR)/crypto/tcrypt.ko
640 $(call AddDepends/crypto,+kmod-crypto-manager)
641 endef
642
643 $(eval $(call KernelPackage,crypto-test))
644
645
646 define KernelPackage/crypto-xts
647 TITLE:=XTS cipher CryptoAPI module
648 DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-manager
649 KCONFIG:=CONFIG_CRYPTO_XTS
650 FILES:=$(LINUX_DIR)/crypto/xts.ko
651 AUTOLOAD:=$(call AutoLoad,09,xts)
652 $(call AddDepends/crypto)
653 endef
654
655 $(eval $(call KernelPackage,crypto-xts))