fc2739811ab4b3cb1550d83f4507f0d826b89be4
[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_3_18: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 HIDDEN:=1
128 FILES:= \
129 $(LINUX_DIR)/crypto/eseqiv.ko@lt4.9 \
130 $(LINUX_DIR)/crypto/chainiv.ko@lt4.9
131 AUTOLOAD:=$(call AutoLoad,10,eseqiv chainiv)
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-talitos
163 TITLE:=Freescale integrated security engine (SEC) driver
164 DEPENDS:=+kmod-crypto-manager +kmod-crypto-hash +kmod-random-core +kmod-crypto-authenc
165 KCONFIG:= \
166 CONFIG_CRYPTO_HW=y \
167 CONFIG_CRYPTO_DEV_TALITOS \
168 CONFIG_CRYPTO_DEV_TALITOS1=y \
169 CONFIG_CRYPTO_DEV_TALITOS2=y
170 FILES:= \
171 $(LINUX_DIR)/drivers/crypto/talitos.ko
172 AUTOLOAD:=$(call AutoLoad,09,talitos)
173 $(call AddDepends/crypto)
174 endef
175
176 $(eval $(call KernelPackage,crypto-hw-talitos))
177
178
179 define KernelPackage/crypto-hw-padlock
180 TITLE:=VIA PadLock ACE with AES/SHA hw crypto module
181 DEPENDS:=+kmod-crypto-manager
182 KCONFIG:= \
183 CONFIG_CRYPTO_HW=y \
184 CONFIG_CRYPTO_DEV_PADLOCK \
185 CONFIG_CRYPTO_DEV_PADLOCK_AES \
186 CONFIG_CRYPTO_DEV_PADLOCK_SHA
187 FILES:= \
188 $(LINUX_DIR)/drivers/crypto/padlock-aes.ko \
189 $(LINUX_DIR)/drivers/crypto/padlock-sha.ko
190 AUTOLOAD:=$(call AutoLoad,09,padlock-aes padlock-sha)
191 $(call AddDepends/crypto)
192 endef
193
194 $(eval $(call KernelPackage,crypto-hw-padlock))
195
196
197 define KernelPackage/crypto-hw-ccp
198 TITLE:=AMD Cryptographic Coprocessor
199 DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash +kmod-crypto-manager +kmod-random-core +kmod-crypto-sha1 +kmod-crypto-sha256
200 KCONFIG:= \
201 CONFIG_CRYPTO_HW=y \
202 CONFIG_CRYPTO_DEV_CCP=y \
203 CONFIG_CRYPTO_DEV_CCP_CRYPTO \
204 CONFIG_CRYPTO_DEV_CCP_DD
205 FILES:= \
206 $(LINUX_DIR)/drivers/crypto/ccp/ccp.ko \
207 $(LINUX_DIR)/drivers/crypto/ccp/ccp-crypto.ko
208 AUTOLOAD:=$(call AutoLoad,09,ccp ccp-crypto)
209 $(call AddDepends/crypto)
210 endef
211
212 $(eval $(call KernelPackage,crypto-hw-ccp))
213
214
215 define KernelPackage/crypto-hw-geode
216 TITLE:=AMD Geode hardware crypto module
217 DEPENDS:=+kmod-crypto-manager
218 KCONFIG:= \
219 CONFIG_CRYPTO_HW=y \
220 CONFIG_CRYPTO_DEV_GEODE
221 FILES:=$(LINUX_DIR)/drivers/crypto/geode-aes.ko
222 AUTOLOAD:=$(call AutoLoad,09,geode-aes)
223 $(call AddDepends/crypto)
224 endef
225
226 $(eval $(call KernelPackage,crypto-hw-geode))
227
228
229 define KernelPackage/crypto-hw-hifn-795x
230 TITLE:=HIFN 795x crypto accelerator
231 DEPENDS:=+kmod-random-core +kmod-crypto-manager
232 KCONFIG:= \
233 CONFIG_CRYPTO_HW=y \
234 CONFIG_CRYPTO_DEV_HIFN_795X \
235 CONFIG_CRYPTO_DEV_HIFN_795X_RNG=y
236 FILES:=$(LINUX_DIR)/drivers/crypto/hifn_795x.ko
237 AUTOLOAD:=$(call AutoLoad,09,hifn_795x)
238 $(call AddDepends/crypto,+kmod-crypto-des)
239 endef
240
241 $(eval $(call KernelPackage,crypto-hw-hifn-795x))
242
243
244 define KernelPackage/crypto-authenc
245 TITLE:=Combined mode wrapper for IPsec
246 DEPENDS:=+kmod-crypto-manager +!LINUX_3_18:kmod-crypto-null
247 KCONFIG:=CONFIG_CRYPTO_AUTHENC
248 FILES:=$(LINUX_DIR)/crypto/authenc.ko
249 AUTOLOAD:=$(call AutoLoad,09,authenc)
250 $(call AddDepends/crypto)
251 endef
252
253 $(eval $(call KernelPackage,crypto-authenc))
254
255 define KernelPackage/crypto-cbc
256 TITLE:=Cipher Block Chaining CryptoAPI module
257 DEPENDS:=+kmod-crypto-manager
258 KCONFIG:=CONFIG_CRYPTO_CBC
259 FILES:=$(LINUX_DIR)/crypto/cbc.ko
260 AUTOLOAD:=$(call AutoLoad,09,cbc)
261 $(call AddDepends/crypto)
262 endef
263
264 $(eval $(call KernelPackage,crypto-cbc))
265
266 define KernelPackage/crypto-ctr
267 TITLE:=Counter Mode CryptoAPI module
268 DEPENDS:=+kmod-crypto-manager +kmod-crypto-seqiv +kmod-crypto-iv
269 KCONFIG:=CONFIG_CRYPTO_CTR
270 FILES:=$(LINUX_DIR)/crypto/ctr.ko
271 AUTOLOAD:=$(call AutoLoad,09,ctr)
272 $(call AddDepends/crypto)
273 endef
274
275 $(eval $(call KernelPackage,crypto-ctr))
276
277 define KernelPackage/crypto-ccm
278 TITLE:=Support for Counter with CBC MAC (CCM)
279 DEPENDS:=+kmod-crypto-ctr +kmod-crypto-aead
280 KCONFIG:=CONFIG_CRYPTO_CCM
281 FILES:=$(LINUX_DIR)/crypto/ccm.ko
282 AUTOLOAD:=$(call AutoLoad,09,ccm)
283 $(call AddDepends/crypto)
284 endef
285
286 $(eval $(call KernelPackage,crypto-ccm))
287
288 define KernelPackage/crypto-pcbc
289 TITLE:=Propagating Cipher Block Chaining CryptoAPI module
290 DEPENDS:=+kmod-crypto-manager
291 KCONFIG:=CONFIG_CRYPTO_PCBC
292 FILES:=$(LINUX_DIR)/crypto/pcbc.ko
293 AUTOLOAD:=$(call AutoLoad,09,pcbc)
294 $(call AddDepends/crypto)
295 endef
296
297 $(eval $(call KernelPackage,crypto-pcbc))
298
299 define KernelPackage/crypto-crc32c
300 TITLE:=CRC32c CRC module
301 DEPENDS:=+kmod-crypto-hash
302 KCONFIG:=CONFIG_CRYPTO_CRC32C
303 FILES:=$(LINUX_DIR)/crypto/crc32c_generic.ko
304 AUTOLOAD:=$(call AutoLoad,04,crc32c_generic,1)
305 $(call AddDepends/crypto)
306 endef
307
308 $(eval $(call KernelPackage,crypto-crc32c))
309
310 define KernelPackage/crypto-crc32
311 TITLE:=CRC32 CRC module
312 DEPENDS:=+kmod-crypto-hash
313 KCONFIG:=CONFIG_CRYPTO_CRC32
314 HIDDEN:=1
315 FILES:=$(LINUX_DIR)/crypto/crc32_generic.ko@ge4.9
316 AUTOLOAD:=$(call AutoLoad,04,crc32_generic@ge4.9,1)
317 $(call AddDepends/crypto)
318 endef
319
320 $(eval $(call KernelPackage,crypto-crc32))
321
322 define KernelPackage/crypto-des
323 TITLE:=DES/3DES cipher CryptoAPI module
324 KCONFIG:=CONFIG_CRYPTO_DES
325 FILES:=$(LINUX_DIR)/crypto/des_generic.ko
326 AUTOLOAD:=$(call AutoLoad,09,des_generic)
327 $(call AddDepends/crypto)
328 endef
329
330 $(eval $(call KernelPackage,crypto-des))
331
332
333 define KernelPackage/crypto-deflate
334 TITLE:=Deflate compression CryptoAPI module
335 DEPENDS:=+kmod-lib-zlib-inflate +kmod-lib-zlib-deflate
336 KCONFIG:=CONFIG_CRYPTO_DEFLATE
337 FILES:=$(LINUX_DIR)/crypto/deflate.ko
338 AUTOLOAD:=$(call AutoLoad,09,deflate)
339 $(call AddDepends/crypto)
340 endef
341
342 $(eval $(call KernelPackage,crypto-deflate))
343
344
345 define KernelPackage/crypto-fcrypt
346 TITLE:=FCRYPT cipher CryptoAPI module
347 KCONFIG:=CONFIG_CRYPTO_FCRYPT
348 FILES:=$(LINUX_DIR)/crypto/fcrypt.ko
349 AUTOLOAD:=$(call AutoLoad,09,fcrypt)
350 $(call AddDepends/crypto)
351 endef
352
353 $(eval $(call KernelPackage,crypto-fcrypt))
354
355 define KernelPackage/crypto-ecb
356 TITLE:=Electronic CodeBook CryptoAPI module
357 DEPENDS:=+kmod-crypto-manager
358 KCONFIG:=CONFIG_CRYPTO_ECB
359 FILES:=$(LINUX_DIR)/crypto/ecb.ko
360 AUTOLOAD:=$(call AutoLoad,09,ecb)
361 $(call AddDepends/crypto)
362 endef
363
364 $(eval $(call KernelPackage,crypto-ecb))
365
366 define KernelPackage/crypto-cts
367 TITLE:=Cipher Text Stealing CryptoAPI module
368 DEPENDS:=+kmod-crypto-manager
369 KCONFIG:=CONFIG_CRYPTO_CTS
370 FILES:=$(LINUX_DIR)/crypto/cts.ko
371 AUTOLOAD:=$(call AutoLoad,09,cts)
372 $(call AddDepends/crypto)
373 endef
374
375 $(eval $(call KernelPackage,crypto-cts))
376
377
378 define KernelPackage/crypto-hmac
379 TITLE:=HMAC digest CryptoAPI module
380 DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager
381 KCONFIG:=CONFIG_CRYPTO_HMAC
382 FILES:=$(LINUX_DIR)/crypto/hmac.ko
383 AUTOLOAD:=$(call AutoLoad,09,hmac)
384 $(call AddDepends/crypto)
385 endef
386
387 $(eval $(call KernelPackage,crypto-hmac))
388
389
390 define KernelPackage/crypto-cmac
391 TITLE:=Support for Cipher-based Message Authentication Code (CMAC)
392 DEPENDS:=+kmod-crypto-hash
393 KCONFIG:=CONFIG_CRYPTO_CMAC
394 FILES:=$(LINUX_DIR)/crypto/cmac.ko
395 AUTOLOAD:=$(call AutoLoad,09,cmac)
396 $(call AddDepends/crypto)
397 endef
398
399 $(eval $(call KernelPackage,crypto-cmac))
400
401
402 define KernelPackage/crypto-gcm
403 TITLE:=GCM/GMAC CryptoAPI module
404 DEPENDS:=+kmod-crypto-ctr +kmod-crypto-ghash +kmod-crypto-null
405 KCONFIG:=CONFIG_CRYPTO_GCM
406 FILES:=$(LINUX_DIR)/crypto/gcm.ko
407 AUTOLOAD:=$(call AutoLoad,09,gcm)
408 $(call AddDepends/crypto)
409 endef
410
411 $(eval $(call KernelPackage,crypto-gcm))
412
413
414 define KernelPackage/crypto-gf128
415 TITLE:=GF(2^128) multiplication functions CryptoAPI module
416 KCONFIG:=CONFIG_CRYPTO_GF128MUL
417 FILES:=$(LINUX_DIR)/crypto/gf128mul.ko
418 AUTOLOAD:=$(call AutoLoad,09,gf128mul)
419 $(call AddDepends/crypto)
420 endef
421
422 $(eval $(call KernelPackage,crypto-gf128))
423
424
425 define KernelPackage/crypto-ghash
426 TITLE:=GHASH digest CryptoAPI module
427 DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-hash
428 KCONFIG:=CONFIG_CRYPTO_GHASH
429 FILES:=$(LINUX_DIR)/crypto/ghash-generic.ko
430 AUTOLOAD:=$(call AutoLoad,09,ghash-generic)
431 $(call AddDepends/crypto)
432 endef
433
434 $(eval $(call KernelPackage,crypto-ghash))
435
436
437 define KernelPackage/crypto-md4
438 TITLE:=MD4 digest CryptoAPI module
439 DEPENDS:=+kmod-crypto-hash
440 KCONFIG:=CONFIG_CRYPTO_MD4
441 FILES:=$(LINUX_DIR)/crypto/md4.ko
442 AUTOLOAD:=$(call AutoLoad,09,md4)
443 $(call AddDepends/crypto)
444 endef
445
446 $(eval $(call KernelPackage,crypto-md4))
447
448
449 define KernelPackage/crypto-md5
450 TITLE:=MD5 digest CryptoAPI module
451 DEPENDS:=+kmod-crypto-hash
452 KCONFIG:= \
453 CONFIG_CRYPTO_MD5 \
454 CONFIG_CRYPTO_MD5_OCTEON
455 FILES:=$(LINUX_DIR)/crypto/md5.ko
456 AUTOLOAD:=$(call AutoLoad,09,md5)
457 $(call AddDepends/crypto)
458 endef
459
460 define KernelPackage/crypto-md5/octeon
461 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-md5.ko
462 AUTOLOAD+=$(call AutoLoad,09,octeon-md5)
463 endef
464
465 $(eval $(call KernelPackage,crypto-md5))
466
467
468 define KernelPackage/crypto-michael-mic
469 TITLE:=Michael MIC keyed digest CryptoAPI module
470 DEPENDS:=+kmod-crypto-hash
471 KCONFIG:=CONFIG_CRYPTO_MICHAEL_MIC
472 FILES:=$(LINUX_DIR)/crypto/michael_mic.ko
473 AUTOLOAD:=$(call AutoLoad,09,michael_mic)
474 $(call AddDepends/crypto)
475 endef
476
477 $(eval $(call KernelPackage,crypto-michael-mic))
478
479
480 define KernelPackage/crypto-sha1
481 TITLE:=SHA1 digest CryptoAPI module
482 DEPENDS:=+kmod-crypto-hash
483 KCONFIG:= \
484 CONFIG_CRYPTO_SHA1 \
485 CONFIG_CRYPTO_SHA1_OCTEON \
486 CONFIG_CRYPTO_SHA1_SSSE3
487 FILES:=$(LINUX_DIR)/crypto/sha1_generic.ko
488 AUTOLOAD:=$(call AutoLoad,09,sha1_generic)
489 $(call AddDepends/crypto)
490 endef
491
492 define KernelPackage/crypto-sha1/octeon
493 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha1.ko
494 AUTOLOAD+=$(call AutoLoad,09,octeon-sha1)
495 endef
496
497 define KernelPackage/crypto-sha1/x86/64
498 FILES+=$(LINUX_DIR)/arch/x86/crypto/sha1-ssse3.ko
499 AUTOLOAD+=$(call AutoLoad,09,sha1-ssse3)
500 endef
501
502 $(eval $(call KernelPackage,crypto-sha1))
503
504
505 define KernelPackage/crypto-sha256
506 TITLE:=SHA224 SHA256 digest CryptoAPI module
507 DEPENDS:=+kmod-crypto-hash
508 KCONFIG:= \
509 CONFIG_CRYPTO_SHA256 \
510 CONFIG_CRYPTO_SHA256_OCTEON \
511 CONFIG_CRYPTO_SHA256_SSSE3
512 FILES:=$(LINUX_DIR)/crypto/sha256_generic.ko
513 AUTOLOAD:=$(call AutoLoad,09,sha256_generic)
514 $(call AddDepends/crypto)
515 endef
516
517 define KernelPackage/crypto-sha256/octeon
518 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha256.ko
519 AUTOLOAD+=$(call AutoLoad,09,octeon-sha256)
520 endef
521
522 define KernelPackage/crypto-sha256/x86/64
523 FILES+=$(LINUX_DIR)/arch/x86/crypto/sha256-ssse3.ko
524 AUTOLOAD+=$(call AutoLoad,09,sha256-ssse3)
525 endef
526
527 $(eval $(call KernelPackage,crypto-sha256))
528
529
530 define KernelPackage/crypto-sha512
531 TITLE:=SHA512 digest CryptoAPI module
532 DEPENDS:=+kmod-crypto-hash
533 KCONFIG:= \
534 CONFIG_CRYPTO_SHA512 \
535 CONFIG_CRYPTO_SHA512_OCTEON \
536 CONFIG_CRYPTO_SHA512_SSSE3
537 FILES:=$(LINUX_DIR)/crypto/sha512_generic.ko
538 AUTOLOAD:=$(call AutoLoad,09,sha512_generic)
539 $(call AddDepends/crypto)
540 endef
541
542 define KernelPackage/crypto-sha512/octeon
543 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha512.ko
544 AUTOLOAD+=$(call AutoLoad,09,octeon-sha512)
545 endef
546
547 define KernelPackage/crypto-sha512/x86/64
548 FILES+=$(LINUX_DIR)/arch/x86/crypto/sha512-ssse3.ko
549 AUTOLOAD+=$(call AutoLoad,09,sha512-ssse3)
550 endef
551
552 $(eval $(call KernelPackage,crypto-sha512))
553
554
555 define KernelPackage/crypto-misc
556 TITLE:=Other CryptoAPI modules
557 DEPENDS:=+kmod-crypto-manager
558 KCONFIG:= \
559 CONFIG_CRYPTO_ANUBIS \
560 CONFIG_CRYPTO_BLOWFISH \
561 CONFIG_CRYPTO_CAMELLIA \
562 CONFIG_CRYPTO_CAST5 \
563 CONFIG_CRYPTO_CAST6 \
564 CONFIG_CRYPTO_FCRYPT \
565 CONFIG_CRYPTO_KHAZAD \
566 CONFIG_CRYPTO_SERPENT \
567 CONFIG_CRYPTO_TEA \
568 CONFIG_CRYPTO_TGR192 \
569 CONFIG_CRYPTO_TWOFISH \
570 CONFIG_CRYPTO_TWOFISH_COMMON \
571 CONFIG_CRYPTO_TWOFISH_586 \
572 CONFIG_CRYPTO_WP512
573 FILES:= \
574 $(LINUX_DIR)/crypto/anubis.ko \
575 $(LINUX_DIR)/crypto/camellia_generic.ko \
576 $(LINUX_DIR)/crypto/cast_common.ko \
577 $(LINUX_DIR)/crypto/cast5_generic.ko \
578 $(LINUX_DIR)/crypto/cast6_generic.ko \
579 $(LINUX_DIR)/crypto/khazad.ko \
580 $(LINUX_DIR)/crypto/tea.ko \
581 $(LINUX_DIR)/crypto/tgr192.ko \
582 $(LINUX_DIR)/crypto/twofish_common.ko \
583 $(LINUX_DIR)/crypto/wp512.ko \
584 $(LINUX_DIR)/crypto/twofish_generic.ko \
585 $(LINUX_DIR)/crypto/blowfish_common.ko \
586 $(LINUX_DIR)/crypto/blowfish_generic.ko \
587 $(LINUX_DIR)/crypto/serpent_generic.ko
588 $(call AddDepends/crypto)
589 endef
590
591 ifndef CONFIG_TARGET_x86_64
592 define KernelPackage/crypto-misc/x86
593 FILES+=$(LINUX_DIR)/arch/x86/crypto/twofish-i586.ko
594 endef
595 endif
596
597 $(eval $(call KernelPackage,crypto-misc))
598
599
600 define KernelPackage/crypto-null
601 TITLE:=Null CryptoAPI module
602 KCONFIG:=CONFIG_CRYPTO_NULL
603 FILES:=$(LINUX_DIR)/crypto/crypto_null.ko
604 AUTOLOAD:=$(call AutoLoad,09,crypto_null)
605 $(call AddDepends/crypto, +kmod-crypto-hash)
606 endef
607
608 $(eval $(call KernelPackage,crypto-null))
609
610
611 define KernelPackage/crypto-test
612 TITLE:=Test CryptoAPI module
613 KCONFIG:=CONFIG_CRYPTO_TEST
614 FILES:=$(LINUX_DIR)/crypto/tcrypt.ko
615 $(call AddDepends/crypto,+kmod-crypto-manager)
616 endef
617
618 $(eval $(call KernelPackage,crypto-test))
619
620
621 define KernelPackage/crypto-xts
622 TITLE:=XTS cipher CryptoAPI module
623 DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-manager
624 KCONFIG:=CONFIG_CRYPTO_XTS
625 FILES:=$(LINUX_DIR)/crypto/xts.ko
626 AUTOLOAD:=$(call AutoLoad,09,xts)
627 $(call AddDepends/crypto)
628 endef
629
630 $(eval $(call KernelPackage,crypto-xts))