2 # Copyright (C) 2006-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 CRYPTO_MENU:=Cryptographic API modules
11 ALGAPI2=crypto_algapi \
12 BLKCIPHER2=crypto_blkcipher
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))))
18 define AddDepends/crypto
19 SUBMENU:=$(CRYPTO_MENU)
23 define KernelPackage/crypto-aead
24 TITLE:=CryptoAPI AEAD support
28 FILES:=$(LINUX_DIR)/crypto/aead.ko
29 AUTOLOAD:=$(call AutoLoad,09,aead,1)
30 $(call AddDepends/crypto, +LINUX_4_3:kmod-crypto-null +LINUX_4_4:kmod-crypto-null)
33 $(eval $(call KernelPackage,crypto-aead))
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)
44 $(eval $(call KernelPackage,crypto-hash))
47 define KernelPackage/crypto-manager
48 TITLE:=CryptoAPI algorithm manager
49 DEPENDS:=+kmod-crypto-aead +kmod-crypto-hash +kmod-crypto-pcompress
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)
58 $(eval $(call KernelPackage,crypto-manager))
61 define KernelPackage/crypto-pcompress
62 TITLE:=CryptoAPI Partial (de)compression operations
64 CONFIG_CRYPTO_PCOMP=y \
66 FILES:=$(LINUX_DIR)/crypto/pcompress.ko
67 AUTOLOAD:=$(call AutoLoad,09,pcompress)
68 $(call AddDepends/crypto)
71 $(eval $(call KernelPackage,crypto-pcompress))
74 define KernelPackage/crypto-user
75 TITLE:=CryptoAPI userspace interface
76 DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager
78 CONFIG_CRYPTO_USER_API \
79 CONFIG_CRYPTO_USER_API_HASH \
80 CONFIG_CRYPTO_USER_API_SKCIPHER
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)
89 $(eval $(call KernelPackage,crypto-user))
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)
99 $(eval $(call KernelPackage,crypto-wq))
101 define KernelPackage/crypto-rng
102 TITLE:=CryptoAPI random number generation
103 DEPENDS:=+kmod-crypto-hash +kmod-crypto-hmac +kmod-crypto-sha256
106 CONFIG_CRYPTO_DRBG_HMAC=y \
107 CONFIG_CRYPTO_DRBG_HASH=n \
108 CONFIG_CRYPTO_DRBG_MENU \
109 CONFIG_CRYPTO_JITTERENTROPY \
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)
120 $(eval $(call KernelPackage,crypto-rng))
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
128 $(LINUX_DIR)/crypto/eseqiv.ko \
129 $(LINUX_DIR)/crypto/chainiv.ko
130 AUTOLOAD:=$(call AutoLoad,10,eseqiv chainiv)
131 $(call AddDepends/crypto)
134 $(eval $(call KernelPackage,crypto-iv))
136 define KernelPackage/crypto-seqiv
137 TITLE:=CryptoAPI Sequence Number IV Generator
138 DEPENDS:=+kmod-crypto-aead +kmod-crypto-rng
139 KCONFIG:=CONFIG_CRYPTO_SEQIV
140 FILES:=$(LINUX_DIR)/crypto/seqiv.ko
141 AUTOLOAD:=$(call AutoLoad,09,seqiv)
142 $(call AddDepends/crypto)
145 $(eval $(call KernelPackage,crypto-seqiv))
148 define KernelPackage/crypto-hw-talitos
149 TITLE:=Freescale integrated security engine (SEC) driver
150 DEPENDS:=+kmod-crypto-manager +kmod-crypto-hash +kmod-random-core +kmod-crypto-authenc
153 CONFIG_CRYPTO_DEV_TALITOS \
154 CONFIG_CRYPTO_DEV_TALITOS1=y \
155 CONFIG_CRYPTO_DEV_TALITOS2=y
157 $(LINUX_DIR)/drivers/crypto/talitos.ko
158 AUTOLOAD:=$(call AutoLoad,09,talitos)
159 $(call AddDepends/crypto)
162 $(eval $(call KernelPackage,crypto-hw-talitos))
165 define KernelPackage/crypto-hw-padlock
166 TITLE:=VIA PadLock ACE with AES/SHA hw crypto module
167 DEPENDS:=+kmod-crypto-manager
170 CONFIG_CRYPTO_DEV_PADLOCK \
171 CONFIG_CRYPTO_DEV_PADLOCK_AES \
172 CONFIG_CRYPTO_DEV_PADLOCK_SHA
174 $(LINUX_DIR)/drivers/crypto/padlock-aes.ko \
175 $(LINUX_DIR)/drivers/crypto/padlock-sha.ko
176 AUTOLOAD:=$(call AutoLoad,09,padlock-aes padlock-sha)
177 $(call AddDepends/crypto)
180 $(eval $(call KernelPackage,crypto-hw-padlock))
183 define KernelPackage/crypto-hw-ccp
184 TITLE:=AMD Cryptographic Coprocessor
185 DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash +kmod-crypto-manager +kmod-random-core
188 CONFIG_CRYPTO_DEV_CCP=y \
189 CONFIG_CRYPTO_DEV_CCP_CRYPTO \
190 CONFIG_CRYPTO_DEV_CCP_DD
192 $(LINUX_DIR)/drivers/crypto/ccp/ccp.ko \
193 $(LINUX_DIR)/drivers/crypto/ccp/ccp-crypto.ko
194 AUTOLOAD:=$(call AutoLoad,09,ccp ccp-crypto)
195 $(call AddDepends/crypto)
198 $(eval $(call KernelPackage,crypto-hw-ccp))
201 define KernelPackage/crypto-hw-geode
202 TITLE:=AMD Geode hardware crypto module
203 DEPENDS:=+kmod-crypto-manager
206 CONFIG_CRYPTO_DEV_GEODE
207 FILES:=$(LINUX_DIR)/drivers/crypto/geode-aes.ko
208 AUTOLOAD:=$(call AutoLoad,09,geode-aes)
209 $(call AddDepends/crypto)
212 $(eval $(call KernelPackage,crypto-hw-geode))
215 define KernelPackage/crypto-hw-hifn-795x
216 TITLE:=HIFN 795x crypto accelerator
217 DEPENDS:=+kmod-random-core +kmod-crypto-manager
220 CONFIG_CRYPTO_DEV_HIFN_795X \
221 CONFIG_CRYPTO_DEV_HIFN_795X_RNG=y
222 FILES:=$(LINUX_DIR)/drivers/crypto/hifn_795x.ko
223 AUTOLOAD:=$(call AutoLoad,09,hifn_795x)
224 $(call AddDepends/crypto,+kmod-crypto-des)
227 $(eval $(call KernelPackage,crypto-hw-hifn-795x))
230 define KernelPackage/crypto-hw-ppc4xx
231 TITLE:=AMCC PPC4xx hardware crypto module
232 DEPENDS:=@TARGET_ppc40x||TARGET_ppc44x
235 CONFIG_CRYPTO_DEV_PPC4XX
236 FILES:=$(LINUX_DIR)/drivers/crypto/amcc/crypto4xx.ko
237 AUTOLOAD:=$(call AutoLoad,90,crypto4xx)
238 $(call AddDepends/crypto,+kmod-crypto-manager +kmod-crypto-hash)
241 define KernelPackage/crypto-hw-ppc4xx/description
242 Kernel support for the AMCC PPC4xx HW crypto engine.
245 $(eval $(call KernelPackage,crypto-hw-ppc4xx))
248 define KernelPackage/crypto-hw-omap
249 TITLE:=TI OMAP hardware crypto modules
250 DEPENDS:=@TARGET_omap
253 CONFIG_CRYPTO_DEV_OMAP_AES \
254 CONFIG_CRYPTO_DEV_OMAP_DES \
255 CONFIG_CRYPTO_DEV_OMAP_SHAM
256 ifneq ($(wildcard $(LINUX_DIR)/drivers/crypto/omap-des.ko),)
258 $(LINUX_DIR)/drivers/crypto/omap-aes.ko \
259 $(LINUX_DIR)/drivers/crypto/omap-des.ko \
260 $(LINUX_DIR)/drivers/crypto/omap-sham.ko
261 AUTOLOAD:=$(call AutoLoad,90,omap-aes omap-des omap-sham)
264 $(LINUX_DIR)/drivers/crypto/omap-aes.ko \
265 $(LINUX_DIR)/drivers/crypto/omap-sham.ko
266 AUTOLOAD:=$(call AutoLoad,90,omap-aes omap-sham)
268 $(call AddDepends/crypto,+kmod-crypto-manager +kmod-crypto-hash)
271 define KernelPackage/crypto-hw-omap/description
272 Kernel support for the TI OMAP HW crypto engine.
275 $(eval $(call KernelPackage,crypto-hw-omap))
278 define KernelPackage/crypto-authenc
279 TITLE:=Combined mode wrapper for IPsec
280 DEPENDS:=+kmod-crypto-manager +LINUX_4_4:kmod-crypto-null
281 KCONFIG:=CONFIG_CRYPTO_AUTHENC
282 FILES:=$(LINUX_DIR)/crypto/authenc.ko
283 AUTOLOAD:=$(call AutoLoad,09,authenc)
284 $(call AddDepends/crypto)
287 $(eval $(call KernelPackage,crypto-authenc))
289 define KernelPackage/crypto-cbc
290 TITLE:=Cipher Block Chaining CryptoAPI module
291 DEPENDS:=+kmod-crypto-manager
292 KCONFIG:=CONFIG_CRYPTO_CBC
293 FILES:=$(LINUX_DIR)/crypto/cbc.ko
294 AUTOLOAD:=$(call AutoLoad,09,cbc)
295 $(call AddDepends/crypto)
298 $(eval $(call KernelPackage,crypto-cbc))
300 define KernelPackage/crypto-ctr
301 TITLE:=Counter Mode CryptoAPI module
302 DEPENDS:=+kmod-crypto-manager +kmod-crypto-seqiv +kmod-crypto-iv
303 KCONFIG:=CONFIG_CRYPTO_CTR
304 FILES:=$(LINUX_DIR)/crypto/ctr.ko
305 AUTOLOAD:=$(call AutoLoad,09,ctr)
306 $(call AddDepends/crypto)
309 $(eval $(call KernelPackage,crypto-ctr))
311 define KernelPackage/crypto-ccm
312 TITLE:=Support for Counter with CBC MAC (CCM)
313 DEPENDS:=+kmod-crypto-ctr +kmod-crypto-aead
314 KCONFIG:=CONFIG_CRYPTO_CCM
315 FILES:=$(LINUX_DIR)/crypto/ccm.ko
316 AUTOLOAD:=$(call AutoLoad,09,ccm)
317 $(call AddDepends/crypto)
320 $(eval $(call KernelPackage,crypto-ccm))
322 define KernelPackage/crypto-pcbc
323 TITLE:=Propagating Cipher Block Chaining CryptoAPI module
324 DEPENDS:=+kmod-crypto-manager
325 KCONFIG:=CONFIG_CRYPTO_PCBC
326 FILES:=$(LINUX_DIR)/crypto/pcbc.ko
327 AUTOLOAD:=$(call AutoLoad,09,pcbc)
328 $(call AddDepends/crypto)
331 $(eval $(call KernelPackage,crypto-pcbc))
333 define KernelPackage/crypto-crc32c
334 TITLE:=CRC32c CRC module
335 DEPENDS:=+kmod-crypto-hash
336 KCONFIG:=CONFIG_CRYPTO_CRC32C
337 FILES:=$(LINUX_DIR)/crypto/crc32c_generic.ko
338 AUTOLOAD:=$(call AutoLoad,04,crc32c_generic,1)
339 $(call AddDepends/crypto)
342 $(eval $(call KernelPackage,crypto-crc32c))
345 define KernelPackage/crypto-des
346 TITLE:=DES/3DES cipher CryptoAPI module
347 KCONFIG:=CONFIG_CRYPTO_DES
348 FILES:=$(LINUX_DIR)/crypto/des_generic.ko
349 AUTOLOAD:=$(call AutoLoad,09,des_generic)
350 $(call AddDepends/crypto)
353 $(eval $(call KernelPackage,crypto-des))
356 define KernelPackage/crypto-deflate
357 TITLE:=Deflate compression CryptoAPI module
358 DEPENDS:=+kmod-lib-zlib
359 KCONFIG:=CONFIG_CRYPTO_DEFLATE
360 FILES:=$(LINUX_DIR)/crypto/deflate.ko
361 AUTOLOAD:=$(call AutoLoad,09,deflate)
362 $(call AddDepends/crypto)
365 $(eval $(call KernelPackage,crypto-deflate))
368 define KernelPackage/crypto-fcrypt
369 TITLE:=FCRYPT cipher CryptoAPI module
370 KCONFIG:=CONFIG_CRYPTO_FCRYPT
371 FILES:=$(LINUX_DIR)/crypto/fcrypt.ko
372 AUTOLOAD:=$(call AutoLoad,09,fcrypt)
373 $(call AddDepends/crypto)
376 $(eval $(call KernelPackage,crypto-fcrypt))
378 define KernelPackage/crypto-ecb
379 TITLE:=Electronic CodeBook CryptoAPI module
380 DEPENDS:=+kmod-crypto-manager
381 KCONFIG:=CONFIG_CRYPTO_ECB
382 FILES:=$(LINUX_DIR)/crypto/ecb.ko
383 AUTOLOAD:=$(call AutoLoad,09,ecb)
384 $(call AddDepends/crypto)
387 $(eval $(call KernelPackage,crypto-ecb))
390 define KernelPackage/crypto-hmac
391 TITLE:=HMAC digest CryptoAPI module
392 DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager
393 KCONFIG:=CONFIG_CRYPTO_HMAC
394 FILES:=$(LINUX_DIR)/crypto/hmac.ko
395 AUTOLOAD:=$(call AutoLoad,09,hmac)
396 $(call AddDepends/crypto)
399 $(eval $(call KernelPackage,crypto-hmac))
402 define KernelPackage/crypto-cmac
403 TITLE:=Support for Cipher-based Message Authentication Code (CMAC)
404 DEPENDS:=+kmod-crypto-hash
405 KCONFIG:=CONFIG_CRYPTO_CMAC
406 FILES:=$(LINUX_DIR)/crypto/cmac.ko
407 AUTOLOAD:=$(call AutoLoad,09,cmac)
408 $(call AddDepends/crypto)
411 $(eval $(call KernelPackage,crypto-cmac))
414 define KernelPackage/crypto-gcm
415 TITLE:=GCM/GMAC CryptoAPI module
416 DEPENDS:=+kmod-crypto-ctr +kmod-crypto-ghash +kmod-crypto-null
417 KCONFIG:=CONFIG_CRYPTO_GCM
418 FILES:=$(LINUX_DIR)/crypto/gcm.ko
419 AUTOLOAD:=$(call AutoLoad,09,gcm)
420 $(call AddDepends/crypto)
423 $(eval $(call KernelPackage,crypto-gcm))
426 define KernelPackage/crypto-gf128
427 TITLE:=GF(2^128) multiplication functions CryptoAPI module
428 KCONFIG:=CONFIG_CRYPTO_GF128MUL
429 FILES:=$(LINUX_DIR)/crypto/gf128mul.ko
430 AUTOLOAD:=$(call AutoLoad,09,gf128mul)
431 $(call AddDepends/crypto)
434 $(eval $(call KernelPackage,crypto-gf128))
437 define KernelPackage/crypto-ghash
438 TITLE:=GHASH digest CryptoAPI module
439 DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-hash
440 KCONFIG:=CONFIG_CRYPTO_GHASH
441 FILES:=$(LINUX_DIR)/crypto/ghash-generic.ko
442 AUTOLOAD:=$(call AutoLoad,09,ghash-generic)
443 $(call AddDepends/crypto)
446 $(eval $(call KernelPackage,crypto-ghash))
449 define KernelPackage/crypto-md4
450 TITLE:=MD4 digest CryptoAPI module
451 DEPENDS:=+kmod-crypto-hash
452 KCONFIG:=CONFIG_CRYPTO_MD4
453 FILES:=$(LINUX_DIR)/crypto/md4.ko
454 AUTOLOAD:=$(call AutoLoad,09,md4)
455 $(call AddDepends/crypto)
458 $(eval $(call KernelPackage,crypto-md4))
461 define KernelPackage/crypto-md5
462 TITLE:=MD5 digest CryptoAPI module
463 DEPENDS:=+kmod-crypto-hash
466 CONFIG_CRYPTO_MD5_OCTEON
467 FILES:=$(LINUX_DIR)/crypto/md5.ko
468 AUTOLOAD:=$(call AutoLoad,09,md5)
469 $(call AddDepends/crypto)
472 define KernelPackage/crypto-md5/octeon
473 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-md5.ko
474 AUTOLOAD:=$(call AutoLoad,09,octeon-md5)
477 $(eval $(call KernelPackage,crypto-md5))
480 define KernelPackage/crypto-michael-mic
481 TITLE:=Michael MIC keyed digest CryptoAPI module
482 DEPENDS:=+kmod-crypto-hash
483 KCONFIG:=CONFIG_CRYPTO_MICHAEL_MIC
484 FILES:=$(LINUX_DIR)/crypto/michael_mic.ko
485 AUTOLOAD:=$(call AutoLoad,09,michael_mic)
486 $(call AddDepends/crypto)
489 $(eval $(call KernelPackage,crypto-michael-mic))
492 define KernelPackage/crypto-sha1
493 TITLE:=SHA1 digest CryptoAPI module
494 DEPENDS:=+kmod-crypto-hash
497 CONFIG_CRYPTO_SHA1_OCTEON
498 FILES:=$(LINUX_DIR)/crypto/sha1_generic.ko
499 AUTOLOAD:=$(call AutoLoad,09,sha1_generic)
500 $(call AddDepends/crypto)
503 define KernelPackage/crypto-sha1/octeon
504 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha1.ko
505 AUTOLOAD:=$(call AutoLoad,09,octeon-sha1)
508 $(eval $(call KernelPackage,crypto-sha1))
511 define KernelPackage/crypto-sha256
512 TITLE:=SHA224 SHA256 digest CryptoAPI module
513 DEPENDS:=+kmod-crypto-hash
515 CONFIG_CRYPTO_SHA256 \
516 CONFIG_CRYPTO_SHA256_OCTEON
517 FILES:=$(LINUX_DIR)/crypto/sha256_generic.ko
518 AUTOLOAD:=$(call AutoLoad,09,sha256_generic)
519 $(call AddDepends/crypto)
522 define KernelPackage/crypto-sha256/octeon
523 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha256.ko
524 AUTOLOAD:=$(call AutoLoad,09,octeon-sha256)
527 $(eval $(call KernelPackage,crypto-sha256))
530 define KernelPackage/crypto-sha512
531 TITLE:=SHA512 digest CryptoAPI module
532 DEPENDS:=+kmod-crypto-hash
534 CONFIG_CRYPTO_SHA512 \
535 CONFIG_CRYPTO_SHA512_OCTEON
536 FILES:=$(LINUX_DIR)/crypto/sha512_generic.ko
537 AUTOLOAD:=$(call AutoLoad,09,sha512_generic)
538 $(call AddDepends/crypto)
541 define KernelPackage/crypto-sha512/octeon
542 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha512.ko
543 AUTOLOAD:=$(call AutoLoad,09,octeon-sha512)
546 $(eval $(call KernelPackage,crypto-sha512))
549 define KernelPackage/crypto-misc
550 TITLE:=Other CryptoAPI modules
551 DEPENDS:=+kmod-crypto-manager
553 CONFIG_CRYPTO_ANUBIS \
554 CONFIG_CRYPTO_BLOWFISH \
555 CONFIG_CRYPTO_CAMELLIA \
556 CONFIG_CRYPTO_CAST5 \
557 CONFIG_CRYPTO_CAST6 \
558 CONFIG_CRYPTO_FCRYPT \
559 CONFIG_CRYPTO_KHAZAD \
560 CONFIG_CRYPTO_SERPENT \
562 CONFIG_CRYPTO_TGR192 \
563 CONFIG_CRYPTO_TWOFISH \
564 CONFIG_CRYPTO_TWOFISH_COMMON \
565 CONFIG_CRYPTO_TWOFISH_586 \
568 $(LINUX_DIR)/crypto/anubis.ko \
569 $(LINUX_DIR)/crypto/camellia_generic.ko \
570 $(LINUX_DIR)/crypto/cast_common.ko \
571 $(LINUX_DIR)/crypto/cast5_generic.ko \
572 $(LINUX_DIR)/crypto/cast6_generic.ko \
573 $(LINUX_DIR)/crypto/khazad.ko \
574 $(LINUX_DIR)/crypto/tea.ko \
575 $(LINUX_DIR)/crypto/tgr192.ko \
576 $(LINUX_DIR)/crypto/twofish_common.ko \
577 $(LINUX_DIR)/crypto/wp512.ko \
578 $(LINUX_DIR)/crypto/twofish_generic.ko \
579 $(LINUX_DIR)/crypto/blowfish_common.ko \
580 $(LINUX_DIR)/crypto/blowfish_generic.ko \
581 $(LINUX_DIR)/crypto/serpent_generic.ko
582 $(call AddDepends/crypto)
585 ifndef CONFIG_TARGET_x86_64
586 define KernelPackage/crypto-misc/x86
587 FILES+=$(LINUX_DIR)/arch/x86/crypto/twofish-i586.ko
591 $(eval $(call KernelPackage,crypto-misc))
594 define KernelPackage/crypto-ocf
596 DEPENDS:=+@OPENSSL_ENGINE_CRYPTO @!TARGET_uml +kmod-crypto-manager
599 CONFIG_OCF_CRYPTODEV \
600 CONFIG_OCF_CRYPTOSOFT \
602 CONFIG_OCF_RANDOMHARVEST=y
604 $(LINUX_DIR)/crypto/ocf/ocf.ko \
605 $(LINUX_DIR)/crypto/ocf/cryptodev.ko \
606 $(LINUX_DIR)/crypto/ocf/cryptosoft.ko
607 AUTOLOAD:=$(call AutoLoad,09, \
612 $(call AddDepends/crypto)
615 $(eval $(call KernelPackage,crypto-ocf))
618 define KernelPackage/crypto-ocf-hifn7751
619 TITLE:=OCF support for Hifn 6500/7751/7811/795x, Invertex AEON and NetSec 7751 devices
620 DEPENDS:=+@OPENSSL_ENGINE_CRYPTO @PCI_SUPPORT @!TARGET_uml kmod-crypto-ocf
621 KCONFIG:=CONFIG_OCF_HIFN
622 FILES:=$(LINUX_DIR)/crypto/ocf/hifn/hifn7751.ko
623 AUTOLOAD:=$(call AutoLoad,10,hifn7751)
624 $(call AddDepends/crypto)
627 $(eval $(call KernelPackage,crypto-ocf-hifn7751))
630 define KernelPackage/crypto-ocf-hifnhipp
631 TITLE:=OCF support for Hifn 7855/8155 devices
632 DEPENDS:=+@OPENSSL_ENGINE_CRYPTO @PCI_SUPPORT @!TARGET_uml kmod-crypto-ocf
633 KCONFIG:=CONFIG_OCF_HIFNHIPP
634 FILES:=$(LINUX_DIR)/crypto/ocf/hifn/hifnHIPP.ko
635 AUTOLOAD:=$(call AutoLoad,10,hifnHIPP)
636 $(call AddDepends/crypto)
639 $(eval $(call KernelPackage,crypto-ocf-hifnhipp))
642 define KernelPackage/crypto-null
643 TITLE:=Null CryptoAPI module
644 KCONFIG:=CONFIG_CRYPTO_NULL
645 FILES:=$(LINUX_DIR)/crypto/crypto_null.ko
646 AUTOLOAD:=$(call AutoLoad,09,crypto_null)
647 $(call AddDepends/crypto, +kmod-crypto-hash)
650 $(eval $(call KernelPackage,crypto-null))
653 define KernelPackage/crypto-test
654 TITLE:=Test CryptoAPI module
655 KCONFIG:=CONFIG_CRYPTO_TEST
656 FILES:=$(LINUX_DIR)/crypto/tcrypt.ko
657 $(call AddDepends/crypto,+kmod-crypto-manager)
660 $(eval $(call KernelPackage,crypto-test))
663 define KernelPackage/crypto-xts
664 TITLE:=XTS cipher CryptoAPI module
665 DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-manager
666 KCONFIG:=CONFIG_CRYPTO_XTS
667 FILES:=$(LINUX_DIR)/crypto/xts.ko
668 AUTOLOAD:=$(call AutoLoad,09,xts)
669 $(call AddDepends/crypto)
672 $(eval $(call KernelPackage,crypto-xts))
675 define KernelPackage/crypto-mv-cesa
676 TITLE:=Marvell crypto engine
677 DEPENDS:=+kmod-crypto-manager @TARGET_kirkwood||TARGET_orion||TARGET_mvebu
678 KCONFIG:=CONFIG_CRYPTO_DEV_MV_CESA
679 FILES:=$(LINUX_DIR)/drivers/crypto/mv_cesa.ko
680 AUTOLOAD:=$(call AutoLoad,09,mv_cesa)
681 $(call AddDepends/crypto)
684 $(eval $(call KernelPackage,crypto-mv-cesa))