rpcd: iwinfo plugin fixes
[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 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 CONFIG_CRYPTO_ECHAINIV
127 FILES:= \
128 $(LINUX_DIR)/crypto/eseqiv.ko \
129 $(LINUX_DIR)/crypto/chainiv.ko \
130 $(LINUX_DIR)/crypto/echainiv.ko@ge4.3
131 AUTOLOAD:=$(call AutoLoad,10,eseqiv chainiv echainiv@ge4.3)
132 $(call AddDepends/crypto)
133 endef
134
135 $(eval $(call KernelPackage,crypto-iv))
136
137
138 define KernelPackage/crypto-echainiv
139 TITLE:=Encrypted Chain IV Generator
140 DEPENDS:=+kmod-crypto-aead
141 KCONFIG:=CONFIG_CRYPTO_ECHAINIV
142 FILES:=$(LINUX_DIR)/crypto/echainiv.ko
143 AUTOLOAD:=$(call AutoLoad,09,echainiv)
144 $(call AddDepends/crypto)
145 endef
146
147 $(eval $(call KernelPackage,crypto-echainiv))
148
149
150 define KernelPackage/crypto-seqiv
151 TITLE:=CryptoAPI Sequence Number IV Generator
152 DEPENDS:=+kmod-crypto-aead +kmod-crypto-rng
153 KCONFIG:=CONFIG_CRYPTO_SEQIV
154 FILES:=$(LINUX_DIR)/crypto/seqiv.ko
155 AUTOLOAD:=$(call AutoLoad,09,seqiv)
156 $(call AddDepends/crypto)
157 endef
158
159 $(eval $(call KernelPackage,crypto-seqiv))
160
161
162 define KernelPackage/crypto-hw-caam
163 TITLE:=Freescale CAAM driver (SEC4)
164 DEPENDS:=@TARGET_imx6||TARGET_mpc85xx +kmod-crypto-aead +kmod-crypto-authenc +kmod-crypto-hash +kmod-random-core
165 KCONFIG:= \
166 CONFIG_CRYPTO_HW=y \
167 CONFIG_CRYPTO_DEV_FSL_CAAM \
168 CONFIG_CRYPTO_DEV_FSL_CAAM_JR \
169 CONFIG_CRYPTO_DEV_FSL_CAAM_CRYPTO_API \
170 CONFIG_CRYPTO_DEV_FSL_CAAM_AHASH_API \
171 CONFIG_CRYPTO_DEV_FSL_CAAM_RNG_API \
172 CONFIG_CRYPTO_DEV_FSL_CAAM_RINGSIZE=9 \
173 CONFIG_CRYPTO_DEV_FSL_CAAM_INTC=n \
174 CONFIG_CRYPTO_DEV_FSL_CAAM_DEBUG=n
175 FILES:= \
176 $(LINUX_DIR)/drivers/crypto/caam/caam.ko \
177 $(LINUX_DIR)/drivers/crypto/caam/caamalg.ko \
178 $(LINUX_DIR)/drivers/crypto/caam/caamhash.ko \
179 $(LINUX_DIR)/drivers/crypto/caam/caam_jr.ko \
180 $(LINUX_DIR)/drivers/crypto/caam/caamrng.ko
181 AUTOLOAD:=$(call AutoLoad,09,caam caamalg caamhash caam_jr caamrng)
182 $(call AddDepends/crypto)
183 endef
184
185 $(eval $(call KernelPackage,crypto-hw-caam))
186
187
188 define KernelPackage/crypto-hw-talitos
189 TITLE:=Freescale integrated security engine (SEC) driver
190 DEPENDS:=+kmod-crypto-manager +kmod-crypto-hash +kmod-random-core +kmod-crypto-authenc
191 KCONFIG:= \
192 CONFIG_CRYPTO_HW=y \
193 CONFIG_CRYPTO_DEV_TALITOS \
194 CONFIG_CRYPTO_DEV_TALITOS1=y \
195 CONFIG_CRYPTO_DEV_TALITOS2=y
196 FILES:= \
197 $(LINUX_DIR)/drivers/crypto/talitos.ko
198 AUTOLOAD:=$(call AutoLoad,09,talitos)
199 $(call AddDepends/crypto)
200 endef
201
202 $(eval $(call KernelPackage,crypto-hw-talitos))
203
204
205 define KernelPackage/crypto-hw-padlock
206 TITLE:=VIA PadLock ACE with AES/SHA hw crypto module
207 DEPENDS:=+kmod-crypto-manager
208 KCONFIG:= \
209 CONFIG_CRYPTO_HW=y \
210 CONFIG_CRYPTO_DEV_PADLOCK \
211 CONFIG_CRYPTO_DEV_PADLOCK_AES \
212 CONFIG_CRYPTO_DEV_PADLOCK_SHA
213 FILES:= \
214 $(LINUX_DIR)/drivers/crypto/padlock-aes.ko \
215 $(LINUX_DIR)/drivers/crypto/padlock-sha.ko
216 AUTOLOAD:=$(call AutoLoad,09,padlock-aes padlock-sha)
217 $(call AddDepends/crypto)
218 endef
219
220 $(eval $(call KernelPackage,crypto-hw-padlock))
221
222
223 define KernelPackage/crypto-hw-ccp
224 TITLE:=AMD Cryptographic Coprocessor
225 DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash +kmod-crypto-manager +kmod-random-core
226 KCONFIG:= \
227 CONFIG_CRYPTO_HW=y \
228 CONFIG_CRYPTO_DEV_CCP=y \
229 CONFIG_CRYPTO_DEV_CCP_CRYPTO \
230 CONFIG_CRYPTO_DEV_CCP_DD
231 FILES:= \
232 $(LINUX_DIR)/drivers/crypto/ccp/ccp.ko \
233 $(LINUX_DIR)/drivers/crypto/ccp/ccp-crypto.ko
234 AUTOLOAD:=$(call AutoLoad,09,ccp ccp-crypto)
235 $(call AddDepends/crypto)
236 endef
237
238 $(eval $(call KernelPackage,crypto-hw-ccp))
239
240
241 define KernelPackage/crypto-hw-geode
242 TITLE:=AMD Geode hardware crypto module
243 DEPENDS:=+kmod-crypto-manager
244 KCONFIG:= \
245 CONFIG_CRYPTO_HW=y \
246 CONFIG_CRYPTO_DEV_GEODE
247 FILES:=$(LINUX_DIR)/drivers/crypto/geode-aes.ko
248 AUTOLOAD:=$(call AutoLoad,09,geode-aes)
249 $(call AddDepends/crypto)
250 endef
251
252 $(eval $(call KernelPackage,crypto-hw-geode))
253
254
255 define KernelPackage/crypto-hw-hifn-795x
256 TITLE:=HIFN 795x crypto accelerator
257 DEPENDS:=+kmod-random-core +kmod-crypto-manager
258 KCONFIG:= \
259 CONFIG_CRYPTO_HW=y \
260 CONFIG_CRYPTO_DEV_HIFN_795X \
261 CONFIG_CRYPTO_DEV_HIFN_795X_RNG=y
262 FILES:=$(LINUX_DIR)/drivers/crypto/hifn_795x.ko
263 AUTOLOAD:=$(call AutoLoad,09,hifn_795x)
264 $(call AddDepends/crypto,+kmod-crypto-des)
265 endef
266
267 $(eval $(call KernelPackage,crypto-hw-hifn-795x))
268
269
270 define KernelPackage/crypto-hw-ppc4xx
271 TITLE:=AMCC PPC4xx hardware crypto module
272 DEPENDS:=@TARGET_ppc40x||TARGET_ppc44x
273 KCONFIG:= \
274 CONFIG_CRYPTO_HW=y \
275 CONFIG_CRYPTO_DEV_PPC4XX
276 FILES:=$(LINUX_DIR)/drivers/crypto/amcc/crypto4xx.ko
277 AUTOLOAD:=$(call AutoLoad,90,crypto4xx)
278 $(call AddDepends/crypto,+kmod-crypto-manager +kmod-crypto-hash)
279 endef
280
281 define KernelPackage/crypto-hw-ppc4xx/description
282 Kernel support for the AMCC PPC4xx HW crypto engine.
283 endef
284
285 $(eval $(call KernelPackage,crypto-hw-ppc4xx))
286
287
288 define KernelPackage/crypto-hw-omap
289 TITLE:=TI OMAP hardware crypto modules
290 DEPENDS:=@TARGET_omap
291 KCONFIG:= \
292 CONFIG_CRYPTO_HW=y \
293 CONFIG_CRYPTO_DEV_OMAP_AES \
294 CONFIG_CRYPTO_DEV_OMAP_DES \
295 CONFIG_CRYPTO_DEV_OMAP_SHAM
296 ifneq ($(wildcard $(LINUX_DIR)/drivers/crypto/omap-des.ko),)
297 FILES:= \
298 $(LINUX_DIR)/drivers/crypto/omap-aes.ko \
299 $(LINUX_DIR)/drivers/crypto/omap-des.ko \
300 $(LINUX_DIR)/drivers/crypto/omap-sham.ko
301 AUTOLOAD:=$(call AutoLoad,90,omap-aes omap-des omap-sham)
302 else
303 FILES:= \
304 $(LINUX_DIR)/drivers/crypto/omap-aes.ko \
305 $(LINUX_DIR)/drivers/crypto/omap-sham.ko
306 AUTOLOAD:=$(call AutoLoad,90,omap-aes omap-sham)
307 endif
308 $(call AddDepends/crypto,+kmod-crypto-manager +kmod-crypto-hash)
309 endef
310
311 define KernelPackage/crypto-hw-omap/description
312 Kernel support for the TI OMAP HW crypto engine.
313 endef
314
315 $(eval $(call KernelPackage,crypto-hw-omap))
316
317
318 define KernelPackage/crypto-authenc
319 TITLE:=Combined mode wrapper for IPsec
320 DEPENDS:=+kmod-crypto-manager +LINUX_4_4:kmod-crypto-null
321 KCONFIG:=CONFIG_CRYPTO_AUTHENC
322 FILES:=$(LINUX_DIR)/crypto/authenc.ko
323 AUTOLOAD:=$(call AutoLoad,09,authenc)
324 $(call AddDepends/crypto)
325 endef
326
327 $(eval $(call KernelPackage,crypto-authenc))
328
329 define KernelPackage/crypto-cbc
330 TITLE:=Cipher Block Chaining CryptoAPI module
331 DEPENDS:=+kmod-crypto-manager
332 KCONFIG:=CONFIG_CRYPTO_CBC
333 FILES:=$(LINUX_DIR)/crypto/cbc.ko
334 AUTOLOAD:=$(call AutoLoad,09,cbc)
335 $(call AddDepends/crypto)
336 endef
337
338 $(eval $(call KernelPackage,crypto-cbc))
339
340 define KernelPackage/crypto-ctr
341 TITLE:=Counter Mode CryptoAPI module
342 DEPENDS:=+kmod-crypto-manager +kmod-crypto-seqiv +kmod-crypto-iv
343 KCONFIG:=CONFIG_CRYPTO_CTR
344 FILES:=$(LINUX_DIR)/crypto/ctr.ko
345 AUTOLOAD:=$(call AutoLoad,09,ctr)
346 $(call AddDepends/crypto)
347 endef
348
349 $(eval $(call KernelPackage,crypto-ctr))
350
351 define KernelPackage/crypto-ccm
352 TITLE:=Support for Counter with CBC MAC (CCM)
353 DEPENDS:=+kmod-crypto-ctr +kmod-crypto-aead
354 KCONFIG:=CONFIG_CRYPTO_CCM
355 FILES:=$(LINUX_DIR)/crypto/ccm.ko
356 AUTOLOAD:=$(call AutoLoad,09,ccm)
357 $(call AddDepends/crypto)
358 endef
359
360 $(eval $(call KernelPackage,crypto-ccm))
361
362 define KernelPackage/crypto-pcbc
363 TITLE:=Propagating Cipher Block Chaining CryptoAPI module
364 DEPENDS:=+kmod-crypto-manager
365 KCONFIG:=CONFIG_CRYPTO_PCBC
366 FILES:=$(LINUX_DIR)/crypto/pcbc.ko
367 AUTOLOAD:=$(call AutoLoad,09,pcbc)
368 $(call AddDepends/crypto)
369 endef
370
371 $(eval $(call KernelPackage,crypto-pcbc))
372
373 define KernelPackage/crypto-crc32c
374 TITLE:=CRC32c CRC module
375 DEPENDS:=+kmod-crypto-hash
376 KCONFIG:=CONFIG_CRYPTO_CRC32C
377 FILES:=$(LINUX_DIR)/crypto/crc32c_generic.ko
378 AUTOLOAD:=$(call AutoLoad,04,crc32c_generic,1)
379 $(call AddDepends/crypto)
380 endef
381
382 $(eval $(call KernelPackage,crypto-crc32c))
383
384
385 define KernelPackage/crypto-des
386 TITLE:=DES/3DES cipher CryptoAPI module
387 KCONFIG:=CONFIG_CRYPTO_DES
388 FILES:=$(LINUX_DIR)/crypto/des_generic.ko
389 AUTOLOAD:=$(call AutoLoad,09,des_generic)
390 $(call AddDepends/crypto)
391 endef
392
393 $(eval $(call KernelPackage,crypto-des))
394
395
396 define KernelPackage/crypto-deflate
397 TITLE:=Deflate compression CryptoAPI module
398 DEPENDS:=+kmod-lib-zlib
399 KCONFIG:=CONFIG_CRYPTO_DEFLATE
400 FILES:=$(LINUX_DIR)/crypto/deflate.ko
401 AUTOLOAD:=$(call AutoLoad,09,deflate)
402 $(call AddDepends/crypto)
403 endef
404
405 $(eval $(call KernelPackage,crypto-deflate))
406
407
408 define KernelPackage/crypto-fcrypt
409 TITLE:=FCRYPT cipher CryptoAPI module
410 KCONFIG:=CONFIG_CRYPTO_FCRYPT
411 FILES:=$(LINUX_DIR)/crypto/fcrypt.ko
412 AUTOLOAD:=$(call AutoLoad,09,fcrypt)
413 $(call AddDepends/crypto)
414 endef
415
416 $(eval $(call KernelPackage,crypto-fcrypt))
417
418 define KernelPackage/crypto-ecb
419 TITLE:=Electronic CodeBook CryptoAPI module
420 DEPENDS:=+kmod-crypto-manager
421 KCONFIG:=CONFIG_CRYPTO_ECB
422 FILES:=$(LINUX_DIR)/crypto/ecb.ko
423 AUTOLOAD:=$(call AutoLoad,09,ecb)
424 $(call AddDepends/crypto)
425 endef
426
427 $(eval $(call KernelPackage,crypto-ecb))
428
429
430 define KernelPackage/crypto-hmac
431 TITLE:=HMAC digest CryptoAPI module
432 DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager
433 KCONFIG:=CONFIG_CRYPTO_HMAC
434 FILES:=$(LINUX_DIR)/crypto/hmac.ko
435 AUTOLOAD:=$(call AutoLoad,09,hmac)
436 $(call AddDepends/crypto)
437 endef
438
439 $(eval $(call KernelPackage,crypto-hmac))
440
441
442 define KernelPackage/crypto-cmac
443 TITLE:=Support for Cipher-based Message Authentication Code (CMAC)
444 DEPENDS:=+kmod-crypto-hash
445 KCONFIG:=CONFIG_CRYPTO_CMAC
446 FILES:=$(LINUX_DIR)/crypto/cmac.ko
447 AUTOLOAD:=$(call AutoLoad,09,cmac)
448 $(call AddDepends/crypto)
449 endef
450
451 $(eval $(call KernelPackage,crypto-cmac))
452
453
454 define KernelPackage/crypto-gcm
455 TITLE:=GCM/GMAC CryptoAPI module
456 DEPENDS:=+kmod-crypto-ctr +kmod-crypto-ghash +kmod-crypto-null
457 KCONFIG:=CONFIG_CRYPTO_GCM
458 FILES:=$(LINUX_DIR)/crypto/gcm.ko
459 AUTOLOAD:=$(call AutoLoad,09,gcm)
460 $(call AddDepends/crypto)
461 endef
462
463 $(eval $(call KernelPackage,crypto-gcm))
464
465
466 define KernelPackage/crypto-gf128
467 TITLE:=GF(2^128) multiplication functions CryptoAPI module
468 KCONFIG:=CONFIG_CRYPTO_GF128MUL
469 FILES:=$(LINUX_DIR)/crypto/gf128mul.ko
470 AUTOLOAD:=$(call AutoLoad,09,gf128mul)
471 $(call AddDepends/crypto)
472 endef
473
474 $(eval $(call KernelPackage,crypto-gf128))
475
476
477 define KernelPackage/crypto-ghash
478 TITLE:=GHASH digest CryptoAPI module
479 DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-hash
480 KCONFIG:=CONFIG_CRYPTO_GHASH
481 FILES:=$(LINUX_DIR)/crypto/ghash-generic.ko
482 AUTOLOAD:=$(call AutoLoad,09,ghash-generic)
483 $(call AddDepends/crypto)
484 endef
485
486 $(eval $(call KernelPackage,crypto-ghash))
487
488
489 define KernelPackage/crypto-md4
490 TITLE:=MD4 digest CryptoAPI module
491 DEPENDS:=+kmod-crypto-hash
492 KCONFIG:=CONFIG_CRYPTO_MD4
493 FILES:=$(LINUX_DIR)/crypto/md4.ko
494 AUTOLOAD:=$(call AutoLoad,09,md4)
495 $(call AddDepends/crypto)
496 endef
497
498 $(eval $(call KernelPackage,crypto-md4))
499
500
501 define KernelPackage/crypto-md5
502 TITLE:=MD5 digest CryptoAPI module
503 DEPENDS:=+kmod-crypto-hash
504 KCONFIG:= \
505 CONFIG_CRYPTO_MD5 \
506 CONFIG_CRYPTO_MD5_OCTEON
507 FILES:=$(LINUX_DIR)/crypto/md5.ko
508 AUTOLOAD:=$(call AutoLoad,09,md5)
509 $(call AddDepends/crypto)
510 endef
511
512 define KernelPackage/crypto-md5/octeon
513 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-md5.ko
514 AUTOLOAD:=$(call AutoLoad,09,octeon-md5)
515 endef
516
517 $(eval $(call KernelPackage,crypto-md5))
518
519
520 define KernelPackage/crypto-michael-mic
521 TITLE:=Michael MIC keyed digest CryptoAPI module
522 DEPENDS:=+kmod-crypto-hash
523 KCONFIG:=CONFIG_CRYPTO_MICHAEL_MIC
524 FILES:=$(LINUX_DIR)/crypto/michael_mic.ko
525 AUTOLOAD:=$(call AutoLoad,09,michael_mic)
526 $(call AddDepends/crypto)
527 endef
528
529 $(eval $(call KernelPackage,crypto-michael-mic))
530
531
532 define KernelPackage/crypto-sha1
533 TITLE:=SHA1 digest CryptoAPI module
534 DEPENDS:=+kmod-crypto-hash
535 KCONFIG:= \
536 CONFIG_CRYPTO_SHA1 \
537 CONFIG_CRYPTO_SHA1_OCTEON
538 FILES:=$(LINUX_DIR)/crypto/sha1_generic.ko
539 AUTOLOAD:=$(call AutoLoad,09,sha1_generic)
540 $(call AddDepends/crypto)
541 endef
542
543 define KernelPackage/crypto-sha1/octeon
544 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha1.ko
545 AUTOLOAD:=$(call AutoLoad,09,octeon-sha1)
546 endef
547
548 $(eval $(call KernelPackage,crypto-sha1))
549
550
551 define KernelPackage/crypto-sha256
552 TITLE:=SHA224 SHA256 digest CryptoAPI module
553 DEPENDS:=+kmod-crypto-hash
554 KCONFIG:= \
555 CONFIG_CRYPTO_SHA256 \
556 CONFIG_CRYPTO_SHA256_OCTEON
557 FILES:=$(LINUX_DIR)/crypto/sha256_generic.ko
558 AUTOLOAD:=$(call AutoLoad,09,sha256_generic)
559 $(call AddDepends/crypto)
560 endef
561
562 define KernelPackage/crypto-sha256/octeon
563 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha256.ko
564 AUTOLOAD:=$(call AutoLoad,09,octeon-sha256)
565 endef
566
567 $(eval $(call KernelPackage,crypto-sha256))
568
569
570 define KernelPackage/crypto-sha512
571 TITLE:=SHA512 digest CryptoAPI module
572 DEPENDS:=+kmod-crypto-hash
573 KCONFIG:= \
574 CONFIG_CRYPTO_SHA512 \
575 CONFIG_CRYPTO_SHA512_OCTEON
576 FILES:=$(LINUX_DIR)/crypto/sha512_generic.ko
577 AUTOLOAD:=$(call AutoLoad,09,sha512_generic)
578 $(call AddDepends/crypto)
579 endef
580
581 define KernelPackage/crypto-sha512/octeon
582 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha512.ko
583 AUTOLOAD:=$(call AutoLoad,09,octeon-sha512)
584 endef
585
586 $(eval $(call KernelPackage,crypto-sha512))
587
588
589 define KernelPackage/crypto-misc
590 TITLE:=Other CryptoAPI modules
591 DEPENDS:=+kmod-crypto-manager
592 KCONFIG:= \
593 CONFIG_CRYPTO_ANUBIS \
594 CONFIG_CRYPTO_BLOWFISH \
595 CONFIG_CRYPTO_CAMELLIA \
596 CONFIG_CRYPTO_CAST5 \
597 CONFIG_CRYPTO_CAST6 \
598 CONFIG_CRYPTO_FCRYPT \
599 CONFIG_CRYPTO_KHAZAD \
600 CONFIG_CRYPTO_SERPENT \
601 CONFIG_CRYPTO_TEA \
602 CONFIG_CRYPTO_TGR192 \
603 CONFIG_CRYPTO_TWOFISH \
604 CONFIG_CRYPTO_TWOFISH_COMMON \
605 CONFIG_CRYPTO_TWOFISH_586 \
606 CONFIG_CRYPTO_WP512
607 FILES:= \
608 $(LINUX_DIR)/crypto/anubis.ko \
609 $(LINUX_DIR)/crypto/camellia_generic.ko \
610 $(LINUX_DIR)/crypto/cast_common.ko \
611 $(LINUX_DIR)/crypto/cast5_generic.ko \
612 $(LINUX_DIR)/crypto/cast6_generic.ko \
613 $(LINUX_DIR)/crypto/khazad.ko \
614 $(LINUX_DIR)/crypto/tea.ko \
615 $(LINUX_DIR)/crypto/tgr192.ko \
616 $(LINUX_DIR)/crypto/twofish_common.ko \
617 $(LINUX_DIR)/crypto/wp512.ko \
618 $(LINUX_DIR)/crypto/twofish_generic.ko \
619 $(LINUX_DIR)/crypto/blowfish_common.ko \
620 $(LINUX_DIR)/crypto/blowfish_generic.ko \
621 $(LINUX_DIR)/crypto/serpent_generic.ko
622 $(call AddDepends/crypto)
623 endef
624
625 ifndef CONFIG_TARGET_x86_64
626 define KernelPackage/crypto-misc/x86
627 FILES+=$(LINUX_DIR)/arch/x86/crypto/twofish-i586.ko
628 endef
629 endif
630
631 $(eval $(call KernelPackage,crypto-misc))
632
633
634 define KernelPackage/crypto-ocf
635 TITLE:=OCF modules
636 DEPENDS:=+@OPENSSL_ENGINE_CRYPTO @!TARGET_uml +kmod-crypto-manager
637 KCONFIG:= \
638 CONFIG_OCF_OCF \
639 CONFIG_OCF_CRYPTODEV \
640 CONFIG_OCF_CRYPTOSOFT \
641 CONFIG_OCF_FIPS=y \
642 CONFIG_OCF_RANDOMHARVEST=y
643 FILES:= \
644 $(LINUX_DIR)/crypto/ocf/ocf.ko \
645 $(LINUX_DIR)/crypto/ocf/cryptodev.ko \
646 $(LINUX_DIR)/crypto/ocf/cryptosoft.ko
647 AUTOLOAD:=$(call AutoLoad,09, \
648 ocf \
649 cryptodev \
650 cryptosoft \
651 )
652 $(call AddDepends/crypto)
653 endef
654
655 $(eval $(call KernelPackage,crypto-ocf))
656
657
658 define KernelPackage/crypto-ocf-hifn7751
659 TITLE:=OCF support for Hifn 6500/7751/7811/795x, Invertex AEON and NetSec 7751 devices
660 DEPENDS:=+@OPENSSL_ENGINE_CRYPTO @PCI_SUPPORT @!TARGET_uml kmod-crypto-ocf
661 KCONFIG:=CONFIG_OCF_HIFN
662 FILES:=$(LINUX_DIR)/crypto/ocf/hifn/hifn7751.ko
663 AUTOLOAD:=$(call AutoLoad,10,hifn7751)
664 $(call AddDepends/crypto)
665 endef
666
667 $(eval $(call KernelPackage,crypto-ocf-hifn7751))
668
669
670 define KernelPackage/crypto-ocf-hifnhipp
671 TITLE:=OCF support for Hifn 7855/8155 devices
672 DEPENDS:=+@OPENSSL_ENGINE_CRYPTO @PCI_SUPPORT @!TARGET_uml kmod-crypto-ocf
673 KCONFIG:=CONFIG_OCF_HIFNHIPP
674 FILES:=$(LINUX_DIR)/crypto/ocf/hifn/hifnHIPP.ko
675 AUTOLOAD:=$(call AutoLoad,10,hifnHIPP)
676 $(call AddDepends/crypto)
677 endef
678
679 $(eval $(call KernelPackage,crypto-ocf-hifnhipp))
680
681
682 define KernelPackage/crypto-null
683 TITLE:=Null CryptoAPI module
684 KCONFIG:=CONFIG_CRYPTO_NULL
685 FILES:=$(LINUX_DIR)/crypto/crypto_null.ko
686 AUTOLOAD:=$(call AutoLoad,09,crypto_null)
687 $(call AddDepends/crypto, +kmod-crypto-hash)
688 endef
689
690 $(eval $(call KernelPackage,crypto-null))
691
692
693 define KernelPackage/crypto-test
694 TITLE:=Test CryptoAPI module
695 KCONFIG:=CONFIG_CRYPTO_TEST
696 FILES:=$(LINUX_DIR)/crypto/tcrypt.ko
697 $(call AddDepends/crypto,+kmod-crypto-manager)
698 endef
699
700 $(eval $(call KernelPackage,crypto-test))
701
702
703 define KernelPackage/crypto-xts
704 TITLE:=XTS cipher CryptoAPI module
705 DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-manager
706 KCONFIG:=CONFIG_CRYPTO_XTS
707 FILES:=$(LINUX_DIR)/crypto/xts.ko
708 AUTOLOAD:=$(call AutoLoad,09,xts)
709 $(call AddDepends/crypto)
710 endef
711
712 $(eval $(call KernelPackage,crypto-xts))
713
714
715 define KernelPackage/crypto-mv-cesa
716 TITLE:=Marvell crypto engine
717 DEPENDS:=+kmod-crypto-manager @TARGET_kirkwood||TARGET_orion||TARGET_mvebu
718 KCONFIG:=CONFIG_CRYPTO_DEV_MV_CESA
719 FILES:=$(LINUX_DIR)/drivers/crypto/mv_cesa.ko
720 AUTOLOAD:=$(call AutoLoad,09,mv_cesa)
721 $(call AddDepends/crypto)
722 endef
723
724 $(eval $(call KernelPackage,crypto-mv-cesa))