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