OpenWrt – Blame information for rev 3

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