d9cb3dbce42eb58ce0a17cc3214991dfc30d6394
[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 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-authenc
244 TITLE:=Combined mode wrapper for IPsec
245 DEPENDS:=+kmod-crypto-manager +!LINUX_3_18:kmod-crypto-null
246 KCONFIG:=CONFIG_CRYPTO_AUTHENC
247 FILES:=$(LINUX_DIR)/crypto/authenc.ko
248 AUTOLOAD:=$(call AutoLoad,09,authenc)
249 $(call AddDepends/crypto)
250 endef
251
252 $(eval $(call KernelPackage,crypto-authenc))
253
254 define KernelPackage/crypto-cbc
255 TITLE:=Cipher Block Chaining CryptoAPI module
256 DEPENDS:=+kmod-crypto-manager
257 KCONFIG:=CONFIG_CRYPTO_CBC
258 FILES:=$(LINUX_DIR)/crypto/cbc.ko
259 AUTOLOAD:=$(call AutoLoad,09,cbc)
260 $(call AddDepends/crypto)
261 endef
262
263 $(eval $(call KernelPackage,crypto-cbc))
264
265 define KernelPackage/crypto-ctr
266 TITLE:=Counter Mode CryptoAPI module
267 DEPENDS:=+kmod-crypto-manager +kmod-crypto-seqiv +kmod-crypto-iv
268 KCONFIG:=CONFIG_CRYPTO_CTR
269 FILES:=$(LINUX_DIR)/crypto/ctr.ko
270 AUTOLOAD:=$(call AutoLoad,09,ctr)
271 $(call AddDepends/crypto)
272 endef
273
274 $(eval $(call KernelPackage,crypto-ctr))
275
276 define KernelPackage/crypto-ccm
277 TITLE:=Support for Counter with CBC MAC (CCM)
278 DEPENDS:=+kmod-crypto-ctr +kmod-crypto-aead
279 KCONFIG:=CONFIG_CRYPTO_CCM
280 FILES:=$(LINUX_DIR)/crypto/ccm.ko
281 AUTOLOAD:=$(call AutoLoad,09,ccm)
282 $(call AddDepends/crypto)
283 endef
284
285 $(eval $(call KernelPackage,crypto-ccm))
286
287 define KernelPackage/crypto-pcbc
288 TITLE:=Propagating Cipher Block Chaining CryptoAPI module
289 DEPENDS:=+kmod-crypto-manager
290 KCONFIG:=CONFIG_CRYPTO_PCBC
291 FILES:=$(LINUX_DIR)/crypto/pcbc.ko
292 AUTOLOAD:=$(call AutoLoad,09,pcbc)
293 $(call AddDepends/crypto)
294 endef
295
296 $(eval $(call KernelPackage,crypto-pcbc))
297
298 define KernelPackage/crypto-crc32c
299 TITLE:=CRC32c CRC module
300 DEPENDS:=+kmod-crypto-hash
301 KCONFIG:=CONFIG_CRYPTO_CRC32C
302 FILES:=$(LINUX_DIR)/crypto/crc32c_generic.ko
303 AUTOLOAD:=$(call AutoLoad,04,crc32c_generic,1)
304 $(call AddDepends/crypto)
305 endef
306
307 $(eval $(call KernelPackage,crypto-crc32c))
308
309
310 define KernelPackage/crypto-des
311 TITLE:=DES/3DES cipher CryptoAPI module
312 KCONFIG:=CONFIG_CRYPTO_DES
313 FILES:=$(LINUX_DIR)/crypto/des_generic.ko
314 AUTOLOAD:=$(call AutoLoad,09,des_generic)
315 $(call AddDepends/crypto)
316 endef
317
318 $(eval $(call KernelPackage,crypto-des))
319
320
321 define KernelPackage/crypto-deflate
322 TITLE:=Deflate compression CryptoAPI module
323 DEPENDS:=+kmod-lib-zlib-inflate +kmod-lib-zlib-deflate
324 KCONFIG:=CONFIG_CRYPTO_DEFLATE
325 FILES:=$(LINUX_DIR)/crypto/deflate.ko
326 AUTOLOAD:=$(call AutoLoad,09,deflate)
327 $(call AddDepends/crypto)
328 endef
329
330 $(eval $(call KernelPackage,crypto-deflate))
331
332
333 define KernelPackage/crypto-fcrypt
334 TITLE:=FCRYPT cipher CryptoAPI module
335 KCONFIG:=CONFIG_CRYPTO_FCRYPT
336 FILES:=$(LINUX_DIR)/crypto/fcrypt.ko
337 AUTOLOAD:=$(call AutoLoad,09,fcrypt)
338 $(call AddDepends/crypto)
339 endef
340
341 $(eval $(call KernelPackage,crypto-fcrypt))
342
343 define KernelPackage/crypto-ecb
344 TITLE:=Electronic CodeBook CryptoAPI module
345 DEPENDS:=+kmod-crypto-manager
346 KCONFIG:=CONFIG_CRYPTO_ECB
347 FILES:=$(LINUX_DIR)/crypto/ecb.ko
348 AUTOLOAD:=$(call AutoLoad,09,ecb)
349 $(call AddDepends/crypto)
350 endef
351
352 $(eval $(call KernelPackage,crypto-ecb))
353
354
355 define KernelPackage/crypto-hmac
356 TITLE:=HMAC digest CryptoAPI module
357 DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager
358 KCONFIG:=CONFIG_CRYPTO_HMAC
359 FILES:=$(LINUX_DIR)/crypto/hmac.ko
360 AUTOLOAD:=$(call AutoLoad,09,hmac)
361 $(call AddDepends/crypto)
362 endef
363
364 $(eval $(call KernelPackage,crypto-hmac))
365
366
367 define KernelPackage/crypto-cmac
368 TITLE:=Support for Cipher-based Message Authentication Code (CMAC)
369 DEPENDS:=+kmod-crypto-hash
370 KCONFIG:=CONFIG_CRYPTO_CMAC
371 FILES:=$(LINUX_DIR)/crypto/cmac.ko
372 AUTOLOAD:=$(call AutoLoad,09,cmac)
373 $(call AddDepends/crypto)
374 endef
375
376 $(eval $(call KernelPackage,crypto-cmac))
377
378
379 define KernelPackage/crypto-gcm
380 TITLE:=GCM/GMAC CryptoAPI module
381 DEPENDS:=+kmod-crypto-ctr +kmod-crypto-ghash +kmod-crypto-null
382 KCONFIG:=CONFIG_CRYPTO_GCM
383 FILES:=$(LINUX_DIR)/crypto/gcm.ko
384 AUTOLOAD:=$(call AutoLoad,09,gcm)
385 $(call AddDepends/crypto)
386 endef
387
388 $(eval $(call KernelPackage,crypto-gcm))
389
390
391 define KernelPackage/crypto-gf128
392 TITLE:=GF(2^128) multiplication functions CryptoAPI module
393 KCONFIG:=CONFIG_CRYPTO_GF128MUL
394 FILES:=$(LINUX_DIR)/crypto/gf128mul.ko
395 AUTOLOAD:=$(call AutoLoad,09,gf128mul)
396 $(call AddDepends/crypto)
397 endef
398
399 $(eval $(call KernelPackage,crypto-gf128))
400
401
402 define KernelPackage/crypto-ghash
403 TITLE:=GHASH digest CryptoAPI module
404 DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-hash
405 KCONFIG:=CONFIG_CRYPTO_GHASH
406 FILES:=$(LINUX_DIR)/crypto/ghash-generic.ko
407 AUTOLOAD:=$(call AutoLoad,09,ghash-generic)
408 $(call AddDepends/crypto)
409 endef
410
411 $(eval $(call KernelPackage,crypto-ghash))
412
413
414 define KernelPackage/crypto-md4
415 TITLE:=MD4 digest CryptoAPI module
416 DEPENDS:=+kmod-crypto-hash
417 KCONFIG:=CONFIG_CRYPTO_MD4
418 FILES:=$(LINUX_DIR)/crypto/md4.ko
419 AUTOLOAD:=$(call AutoLoad,09,md4)
420 $(call AddDepends/crypto)
421 endef
422
423 $(eval $(call KernelPackage,crypto-md4))
424
425
426 define KernelPackage/crypto-md5
427 TITLE:=MD5 digest CryptoAPI module
428 DEPENDS:=+kmod-crypto-hash
429 KCONFIG:= \
430 CONFIG_CRYPTO_MD5 \
431 CONFIG_CRYPTO_MD5_OCTEON
432 FILES:=$(LINUX_DIR)/crypto/md5.ko
433 AUTOLOAD:=$(call AutoLoad,09,md5)
434 $(call AddDepends/crypto)
435 endef
436
437 define KernelPackage/crypto-md5/octeon
438 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-md5.ko
439 AUTOLOAD:=$(call AutoLoad,09,octeon-md5)
440 endef
441
442 $(eval $(call KernelPackage,crypto-md5))
443
444
445 define KernelPackage/crypto-michael-mic
446 TITLE:=Michael MIC keyed digest CryptoAPI module
447 DEPENDS:=+kmod-crypto-hash
448 KCONFIG:=CONFIG_CRYPTO_MICHAEL_MIC
449 FILES:=$(LINUX_DIR)/crypto/michael_mic.ko
450 AUTOLOAD:=$(call AutoLoad,09,michael_mic)
451 $(call AddDepends/crypto)
452 endef
453
454 $(eval $(call KernelPackage,crypto-michael-mic))
455
456
457 define KernelPackage/crypto-sha1
458 TITLE:=SHA1 digest CryptoAPI module
459 DEPENDS:=+kmod-crypto-hash
460 KCONFIG:= \
461 CONFIG_CRYPTO_SHA1 \
462 CONFIG_CRYPTO_SHA1_OCTEON \
463 CONFIG_CRYPTO_SHA1_SSSE3
464 FILES:=$(LINUX_DIR)/crypto/sha1_generic.ko
465 AUTOLOAD:=$(call AutoLoad,09,sha1_generic)
466 $(call AddDepends/crypto)
467 endef
468
469 define KernelPackage/crypto-sha1/octeon
470 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha1.ko
471 AUTOLOAD:=$(call AutoLoad,09,octeon-sha1)
472 endef
473
474 define KernelPackage/crypto-sha1/x86/64
475 FILES+=$(LINUX_DIR)/arch/x86/crypto/sha1-ssse3.ko
476 AUTOLOAD:=$(call AutoLoad,09,sha1-ssse3)
477 endef
478
479 $(eval $(call KernelPackage,crypto-sha1))
480
481
482 define KernelPackage/crypto-sha256
483 TITLE:=SHA224 SHA256 digest CryptoAPI module
484 DEPENDS:=+kmod-crypto-hash
485 KCONFIG:= \
486 CONFIG_CRYPTO_SHA256 \
487 CONFIG_CRYPTO_SHA256_OCTEON \
488 CONFIG_CRYPTO_SHA256_SSSE3
489 FILES:=$(LINUX_DIR)/crypto/sha256_generic.ko
490 AUTOLOAD:=$(call AutoLoad,09,sha256_generic)
491 $(call AddDepends/crypto)
492 endef
493
494 define KernelPackage/crypto-sha256/octeon
495 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha256.ko
496 AUTOLOAD:=$(call AutoLoad,09,octeon-sha256)
497 endef
498
499 define KernelPackage/crypto-sha256/x86/64
500 FILES+=$(LINUX_DIR)/arch/x86/crypto/sha256-ssse3.ko
501 AUTOLOAD:=$(call AutoLoad,09,sha256-ssse3)
502 endef
503
504 $(eval $(call KernelPackage,crypto-sha256))
505
506
507 define KernelPackage/crypto-sha512
508 TITLE:=SHA512 digest CryptoAPI module
509 DEPENDS:=+kmod-crypto-hash
510 KCONFIG:= \
511 CONFIG_CRYPTO_SHA512 \
512 CONFIG_CRYPTO_SHA512_OCTEON \
513 CONFIG_CRYPTO_SHA512_SSSE3
514 FILES:=$(LINUX_DIR)/crypto/sha512_generic.ko
515 AUTOLOAD:=$(call AutoLoad,09,sha512_generic)
516 $(call AddDepends/crypto)
517 endef
518
519 define KernelPackage/crypto-sha512/octeon
520 FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha512.ko
521 AUTOLOAD:=$(call AutoLoad,09,octeon-sha512)
522 endef
523
524 define KernelPackage/crypto-sha512/x86/64
525 FILES+=$(LINUX_DIR)/arch/x86/crypto/sha512-ssse3.ko
526 AUTOLOAD:=$(call AutoLoad,09,sha512-ssse3)
527 endef
528
529 $(eval $(call KernelPackage,crypto-sha512))
530
531
532 define KernelPackage/crypto-misc
533 TITLE:=Other CryptoAPI modules
534 DEPENDS:=+kmod-crypto-manager
535 KCONFIG:= \
536 CONFIG_CRYPTO_ANUBIS \
537 CONFIG_CRYPTO_BLOWFISH \
538 CONFIG_CRYPTO_CAMELLIA \
539 CONFIG_CRYPTO_CAST5 \
540 CONFIG_CRYPTO_CAST6 \
541 CONFIG_CRYPTO_FCRYPT \
542 CONFIG_CRYPTO_KHAZAD \
543 CONFIG_CRYPTO_SERPENT \
544 CONFIG_CRYPTO_TEA \
545 CONFIG_CRYPTO_TGR192 \
546 CONFIG_CRYPTO_TWOFISH \
547 CONFIG_CRYPTO_TWOFISH_COMMON \
548 CONFIG_CRYPTO_TWOFISH_586 \
549 CONFIG_CRYPTO_WP512
550 FILES:= \
551 $(LINUX_DIR)/crypto/anubis.ko \
552 $(LINUX_DIR)/crypto/camellia_generic.ko \
553 $(LINUX_DIR)/crypto/cast_common.ko \
554 $(LINUX_DIR)/crypto/cast5_generic.ko \
555 $(LINUX_DIR)/crypto/cast6_generic.ko \
556 $(LINUX_DIR)/crypto/khazad.ko \
557 $(LINUX_DIR)/crypto/tea.ko \
558 $(LINUX_DIR)/crypto/tgr192.ko \
559 $(LINUX_DIR)/crypto/twofish_common.ko \
560 $(LINUX_DIR)/crypto/wp512.ko \
561 $(LINUX_DIR)/crypto/twofish_generic.ko \
562 $(LINUX_DIR)/crypto/blowfish_common.ko \
563 $(LINUX_DIR)/crypto/blowfish_generic.ko \
564 $(LINUX_DIR)/crypto/serpent_generic.ko
565 $(call AddDepends/crypto)
566 endef
567
568 ifndef CONFIG_TARGET_x86_64
569 define KernelPackage/crypto-misc/x86
570 FILES+=$(LINUX_DIR)/arch/x86/crypto/twofish-i586.ko
571 endef
572 endif
573
574 $(eval $(call KernelPackage,crypto-misc))
575
576
577 define KernelPackage/crypto-null
578 TITLE:=Null CryptoAPI module
579 KCONFIG:=CONFIG_CRYPTO_NULL
580 FILES:=$(LINUX_DIR)/crypto/crypto_null.ko
581 AUTOLOAD:=$(call AutoLoad,09,crypto_null)
582 $(call AddDepends/crypto, +kmod-crypto-hash)
583 endef
584
585 $(eval $(call KernelPackage,crypto-null))
586
587
588 define KernelPackage/crypto-test
589 TITLE:=Test CryptoAPI module
590 KCONFIG:=CONFIG_CRYPTO_TEST
591 FILES:=$(LINUX_DIR)/crypto/tcrypt.ko
592 $(call AddDepends/crypto,+kmod-crypto-manager)
593 endef
594
595 $(eval $(call KernelPackage,crypto-test))
596
597
598 define KernelPackage/crypto-xts
599 TITLE:=XTS cipher CryptoAPI module
600 DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-manager
601 KCONFIG:=CONFIG_CRYPTO_XTS
602 FILES:=$(LINUX_DIR)/crypto/xts.ko
603 AUTOLOAD:=$(call AutoLoad,09,xts)
604 $(call AddDepends/crypto)
605 endef
606
607 $(eval $(call KernelPackage,crypto-xts))