crypto.mk 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643
  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. CRYPTO_MENU:=Cryptographic API modules
  8. CRYPTO_MODULES = \
  9. ALGAPI2=crypto_algapi \
  10. BLKCIPHER2=crypto_blkcipher
  11. crypto_confvar=CONFIG_CRYPTO_$(word 1,$(subst =,$(space),$(1)))
  12. crypto_file=$(LINUX_DIR)/crypto/$(word 2,$(subst =,$(space),$(1))).ko
  13. crypto_name=$(if $(findstring y,$($(call crypto_confvar,$(1)))),,$(word 2,$(subst =,$(space),$(1))))
  14. define KernelPackage/crypto-core
  15. SUBMENU:=$(CRYPTO_MENU)
  16. TITLE:=Core CryptoAPI modules
  17. KCONFIG:= \
  18. CONFIG_CRYPTO=y \
  19. CONFIG_CRYPTO_HW=y \
  20. CONFIG_CRYPTO_BLKCIPHER \
  21. CONFIG_CRYPTO_ALGAPI \
  22. $(foreach mod,$(CRYPTO_MODULES),$(call crypto_confvar,$(mod)))
  23. FILES:=$(foreach mod,$(CRYPTO_MODULES),$(call crypto_file,$(mod)))
  24. endef
  25. $(eval $(call KernelPackage,crypto-core))
  26. define AddDepends/crypto
  27. SUBMENU:=$(CRYPTO_MENU)
  28. DEPENDS+=+kmod-crypto-core $(1)
  29. endef
  30. define KernelPackage/crypto-aead
  31. TITLE:=CryptoAPI AEAD support
  32. KCONFIG:= \
  33. CONFIG_CRYPTO_AEAD \
  34. CONFIG_CRYPTO_AEAD2
  35. FILES:=$(LINUX_DIR)/crypto/aead.ko
  36. AUTOLOAD:=$(call AutoLoad,09,aead,1)
  37. $(call AddDepends/crypto)
  38. endef
  39. $(eval $(call KernelPackage,crypto-aead))
  40. define KernelPackage/crypto-hash
  41. TITLE:=CryptoAPI hash support
  42. KCONFIG:=CONFIG_CRYPTO_HASH
  43. FILES:=$(LINUX_DIR)/crypto/crypto_hash.ko
  44. AUTOLOAD:=$(call AutoLoad,02,crypto_hash,1)
  45. $(call AddDepends/crypto)
  46. endef
  47. $(eval $(call KernelPackage,crypto-hash))
  48. define KernelPackage/crypto-manager
  49. TITLE:=CryptoAPI algorithm manager
  50. DEPENDS:=+kmod-crypto-aead +kmod-crypto-hash +kmod-crypto-pcompress
  51. KCONFIG:= \
  52. CONFIG_CRYPTO_MANAGER \
  53. CONFIG_CRYPTO_MANAGER2
  54. FILES:=$(LINUX_DIR)/crypto/cryptomgr.ko
  55. $(call AddDepends/crypto)
  56. endef
  57. $(eval $(call KernelPackage,crypto-manager))
  58. define KernelPackage/crypto-pcompress
  59. TITLE:=CryptoAPI Partial (de)compression operations
  60. KCONFIG:= \
  61. CONFIG_CRYPTO_PCOMP=y \
  62. CONFIG_CRYPTO_PCOMP2
  63. FILES:=$(LINUX_DIR)/crypto/pcompress.ko
  64. AUTOLOAD:=$(call AutoLoad,09,pcompress)
  65. $(call AddDepends/crypto)
  66. endef
  67. $(eval $(call KernelPackage,crypto-pcompress))
  68. define KernelPackage/crypto-user
  69. TITLE:=CryptoAPI userspace interface
  70. DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager
  71. KCONFIG:= \
  72. CONFIG_CRYPTO_USER_API \
  73. CONFIG_CRYPTO_USER_API_HASH \
  74. CONFIG_CRYPTO_USER_API_SKCIPHER
  75. FILES:= \
  76. $(LINUX_DIR)/crypto/af_alg.ko \
  77. $(LINUX_DIR)/crypto/algif_hash.ko \
  78. $(LINUX_DIR)/crypto/algif_skcipher.ko
  79. AUTOLOAD:=$(call AutoLoad,09,af_alg algif_hash algif_skcipher)
  80. $(call AddDepends/crypto)
  81. endef
  82. $(eval $(call KernelPackage,crypto-user))
  83. define KernelPackage/crypto-wq
  84. TITLE:=CryptoAPI work queue handling
  85. KCONFIG:=CONFIG_CRYPTO_WORKQUEUE
  86. FILES:=$(LINUX_DIR)/crypto/crypto_wq.ko
  87. AUTOLOAD:=$(call AutoLoad,09,crypto_wq)
  88. $(call AddDepends/crypto)
  89. endef
  90. $(eval $(call KernelPackage,crypto-wq))
  91. define KernelPackage/crypto-rng
  92. TITLE:=CryptoAPI random number generation
  93. KCONFIG:=CONFIG_CRYPTO_RNG2
  94. FILES:= \
  95. $(LINUX_DIR)/crypto/rng.ko \
  96. $(LINUX_DIR)/crypto/krng.ko
  97. AUTOLOAD:=$(call AutoLoad,09,rng krng)
  98. $(call AddDepends/crypto)
  99. endef
  100. $(eval $(call KernelPackage,crypto-rng))
  101. define KernelPackage/crypto-iv
  102. TITLE:=CryptoAPI initialization vectors
  103. DEPENDS:=+kmod-crypto-manager +kmod-crypto-rng +kmod-crypto-wq
  104. KCONFIG:= CONFIG_CRYPTO_BLKCIPHER2
  105. FILES:= \
  106. $(LINUX_DIR)/crypto/eseqiv.ko \
  107. $(LINUX_DIR)/crypto/chainiv.ko
  108. AUTOLOAD:=$(call AutoLoad,10,eseqiv chainiv)
  109. $(call AddDepends/crypto)
  110. endef
  111. $(eval $(call KernelPackage,crypto-iv))
  112. define KernelPackage/crypto-seqiv
  113. TITLE:=CryptoAPI Sequence Number IV Generator
  114. DEPENDS:=+kmod-crypto-aead +kmod-crypto-rng
  115. KCONFIG:=CONFIG_CRYPTO_SEQIV
  116. FILES:=$(LINUX_DIR)/crypto/seqiv.ko
  117. AUTOLOAD:=$(call AutoLoad,09,seqiv)
  118. $(call AddDepends/crypto)
  119. endef
  120. $(eval $(call KernelPackage,crypto-seqiv))
  121. define KernelPackage/crypto-hw-talitos
  122. TITLE:=Freescale integrated security engine (SEC) driver
  123. DEPENDS:=+kmod-crypto-aes +kmod-crypto-manager +kmod-crypto-hash +kmod-random-core +kmod-crypto-authenc
  124. KCONFIG:= \
  125. CONFIG_CRYPTO_DEV_TALITOS
  126. FILES:= \
  127. $(LINUX_DIR)/drivers/crypto/talitos.ko
  128. AUTOLOAD:=$(call AutoLoad,09,talitos)
  129. $(call AddDepends/crypto)
  130. endef
  131. $(eval $(call KernelPackage,crypto-hw-talitos))
  132. define KernelPackage/crypto-hw-padlock
  133. TITLE:=VIA PadLock ACE with AES/SHA hw crypto module
  134. DEPENDS:=+kmod-crypto-aes +kmod-crypto-manager
  135. KCONFIG:= \
  136. CONFIG_CRYPTO_DEV_PADLOCK \
  137. CONFIG_CRYPTO_DEV_PADLOCK_AES \
  138. CONFIG_CRYPTO_DEV_PADLOCK_SHA
  139. FILES:= \
  140. $(LINUX_DIR)/drivers/crypto/padlock-aes.ko \
  141. $(LINUX_DIR)/drivers/crypto/padlock-sha.ko
  142. AUTOLOAD:=$(call AutoLoad,09,padlock-aes padlock-sha)
  143. $(call AddDepends/crypto)
  144. endef
  145. $(eval $(call KernelPackage,crypto-hw-padlock))
  146. define KernelPackage/crypto-hw-geode
  147. TITLE:=AMD Geode hardware crypto module
  148. DEPENDS:=+kmod-crypto-manager
  149. KCONFIG:= \
  150. CONFIG_CRYPTO_DEV_GEODE
  151. FILES:=$(LINUX_DIR)/drivers/crypto/geode-aes.ko
  152. AUTOLOAD:=$(call AutoLoad,09,geode-aes)
  153. $(call AddDepends/crypto)
  154. endef
  155. $(eval $(call KernelPackage,crypto-hw-geode))
  156. define KernelPackage/crypto-hw-hifn-795x
  157. TITLE:=HIFN 795x crypto accelerator
  158. DEPENDS:=+kmod-random-core +kmod-crypto-manager
  159. KCONFIG:= \
  160. CONFIG_CRYPTO_DEV_HIFN_795X \
  161. CONFIG_CRYPTO_DEV_HIFN_795X_RNG=y
  162. FILES:=$(LINUX_DIR)/drivers/crypto/hifn_795x.ko
  163. AUTOLOAD:=$(call AutoLoad,09,hifn_795x)
  164. $(call AddDepends/crypto,+kmod-crypto-des)
  165. endef
  166. $(eval $(call KernelPackage,crypto-hw-hifn-795x))
  167. define KernelPackage/crypto-hw-ppc4xx
  168. TITLE:=AMCC PPC4xx hardware crypto module
  169. DEPENDS:=@TARGET_ppc40x||TARGET_ppc44x
  170. KCONFIG:= \
  171. CONFIG_CRYPTO_DEV_PPC4XX
  172. FILES:=$(LINUX_DIR)/drivers/crypto/amcc/crypto4xx.ko
  173. AUTOLOAD:=$(call AutoLoad,90,crypto4xx)
  174. $(call AddDepends/crypto,+kmod-crypto-manager +kmod-crypto-hash)
  175. endef
  176. define KernelPackage/crypto-hw-ppc4xx/description
  177. Kernel support for the AMCC PPC4xx HW crypto engine.
  178. endef
  179. $(eval $(call KernelPackage,crypto-hw-ppc4xx))
  180. define KernelPackage/crypto-hw-omap
  181. TITLE:=TI OMAP hardware crypto modules
  182. DEPENDS:=@TARGET_omap
  183. KCONFIG:= \
  184. CONFIG_CRYPTO_DEV_OMAP_AES \
  185. CONFIG_CRYPTO_DEV_OMAP_DES \
  186. CONFIG_CRYPTO_DEV_OMAP_SHAM
  187. ifneq ($(wildcard $(LINUX_DIR)/drivers/crypto/omap-des.ko),)
  188. FILES:= \
  189. $(LINUX_DIR)/drivers/crypto/omap-aes.ko \
  190. $(LINUX_DIR)/drivers/crypto/omap-des.ko \
  191. $(LINUX_DIR)/drivers/crypto/omap-sham.ko
  192. AUTOLOAD:=$(call AutoLoad,90,omap-aes omap-des omap-sham)
  193. else
  194. FILES:= \
  195. $(LINUX_DIR)/drivers/crypto/omap-aes.ko \
  196. $(LINUX_DIR)/drivers/crypto/omap-sham.ko
  197. AUTOLOAD:=$(call AutoLoad,90,omap-aes omap-sham)
  198. endif
  199. $(call AddDepends/crypto,+kmod-crypto-manager +kmod-crypto-hash)
  200. endef
  201. define KernelPackage/crypto-hw-omap/description
  202. Kernel support for the TI OMAP HW crypto engine.
  203. endef
  204. $(eval $(call KernelPackage,crypto-hw-omap))
  205. define KernelPackage/crypto-aes
  206. TITLE:=AES cipher CryptoAPI module
  207. KCONFIG:=CONFIG_CRYPTO_AES CONFIG_CRYPTO_AES_586
  208. FILES:=$(LINUX_DIR)/crypto/aes_generic.ko
  209. AUTOLOAD:=$(call AutoLoad,09,aes_generic)
  210. $(call AddDepends/crypto)
  211. endef
  212. ifndef CONFIG_TARGET_x86_64
  213. define KernelPackage/crypto-aes/x86
  214. FILES+=$(LINUX_DIR)/arch/x86/crypto/aes-i586.ko
  215. AUTOLOAD:=$(call AutoLoad,09,aes-i586)
  216. endef
  217. endif
  218. $(eval $(call KernelPackage,crypto-aes))
  219. define KernelPackage/crypto-arc4
  220. TITLE:=ARC4 (RC4) cipher CryptoAPI module
  221. KCONFIG:=CONFIG_CRYPTO_ARC4
  222. FILES:=$(LINUX_DIR)/crypto/arc4.ko
  223. AUTOLOAD:=$(call AutoLoad,09,arc4)
  224. $(call AddDepends/crypto)
  225. endef
  226. $(eval $(call KernelPackage,crypto-arc4))
  227. define KernelPackage/crypto-authenc
  228. TITLE:=Combined mode wrapper for IPsec
  229. DEPENDS:=+kmod-crypto-manager
  230. KCONFIG:=CONFIG_CRYPTO_AUTHENC
  231. FILES:=$(LINUX_DIR)/crypto/authenc.ko
  232. AUTOLOAD:=$(call AutoLoad,09,authenc)
  233. $(call AddDepends/crypto)
  234. endef
  235. $(eval $(call KernelPackage,crypto-authenc))
  236. define KernelPackage/crypto-cbc
  237. TITLE:=Cipher Block Chaining CryptoAPI module
  238. DEPENDS:=+kmod-crypto-manager
  239. KCONFIG:=CONFIG_CRYPTO_CBC
  240. FILES:=$(LINUX_DIR)/crypto/cbc.ko
  241. AUTOLOAD:=$(call AutoLoad,09,cbc)
  242. $(call AddDepends/crypto)
  243. endef
  244. $(eval $(call KernelPackage,crypto-cbc))
  245. define KernelPackage/crypto-ctr
  246. TITLE:=Counter Mode CryptoAPI module
  247. DEPENDS:=+kmod-crypto-manager +kmod-crypto-seqiv +kmod-crypto-iv
  248. KCONFIG:=CONFIG_CRYPTO_CTR
  249. FILES:=$(LINUX_DIR)/crypto/ctr.ko
  250. AUTOLOAD:=$(call AutoLoad,09,ctr)
  251. $(call AddDepends/crypto)
  252. endef
  253. $(eval $(call KernelPackage,crypto-ctr))
  254. define KernelPackage/crypto-ccm
  255. TITLE:=Support for Counter with CBC MAC (CCM)
  256. DEPENDS:=+kmod-crypto-ctr +kmod-crypto-aead
  257. KCONFIG:=CONFIG_CRYPTO_CCM
  258. FILES:=$(LINUX_DIR)/crypto/ccm.ko
  259. AUTOLOAD:=$(call AutoLoad,09,ccm)
  260. $(call AddDepends/crypto)
  261. endef
  262. $(eval $(call KernelPackage,crypto-ccm))
  263. define KernelPackage/crypto-pcbc
  264. TITLE:=Propagating Cipher Block Chaining CryptoAPI module
  265. DEPENDS:=+kmod-crypto-manager
  266. KCONFIG:=CONFIG_CRYPTO_PCBC
  267. FILES:=$(LINUX_DIR)/crypto/pcbc.ko
  268. AUTOLOAD:=$(call AutoLoad,09,pcbc)
  269. $(call AddDepends/crypto)
  270. endef
  271. $(eval $(call KernelPackage,crypto-pcbc))
  272. define KernelPackage/crypto-crc32c
  273. TITLE:=CRC32c CRC module
  274. DEPENDS:=+kmod-crypto-hash
  275. KCONFIG:=CONFIG_CRYPTO_CRC32C
  276. FILES:=$(LINUX_DIR)/crypto/crc32c_generic.ko
  277. AUTOLOAD:=$(call AutoLoad,04,crc32c_generic,1)
  278. $(call AddDepends/crypto)
  279. endef
  280. $(eval $(call KernelPackage,crypto-crc32c))
  281. define KernelPackage/crypto-des
  282. TITLE:=DES/3DES cipher CryptoAPI module
  283. KCONFIG:=CONFIG_CRYPTO_DES
  284. FILES:=$(LINUX_DIR)/crypto/des_generic.ko
  285. AUTOLOAD:=$(call AutoLoad,09,des_generic)
  286. $(call AddDepends/crypto)
  287. endef
  288. $(eval $(call KernelPackage,crypto-des))
  289. define KernelPackage/crypto-deflate
  290. TITLE:=Deflate compression CryptoAPI module
  291. DEPENDS:=+kmod-lib-zlib
  292. KCONFIG:=CONFIG_CRYPTO_DEFLATE
  293. FILES:=$(LINUX_DIR)/crypto/deflate.ko
  294. AUTOLOAD:=$(call AutoLoad,09,deflate)
  295. $(call AddDepends/crypto)
  296. endef
  297. $(eval $(call KernelPackage,crypto-deflate))
  298. define KernelPackage/crypto-fcrypt
  299. TITLE:=FCRYPT cipher CryptoAPI module
  300. KCONFIG:=CONFIG_CRYPTO_FCRYPT
  301. FILES:=$(LINUX_DIR)/crypto/fcrypt.ko
  302. AUTOLOAD:=$(call AutoLoad,09,fcrypt)
  303. $(call AddDepends/crypto)
  304. endef
  305. $(eval $(call KernelPackage,crypto-fcrypt))
  306. define KernelPackage/crypto-ecb
  307. TITLE:=Electronic CodeBook CryptoAPI module
  308. DEPENDS:=+kmod-crypto-manager
  309. KCONFIG:=CONFIG_CRYPTO_ECB
  310. FILES:=$(LINUX_DIR)/crypto/ecb.ko
  311. AUTOLOAD:=$(call AutoLoad,09,ecb)
  312. $(call AddDepends/crypto)
  313. endef
  314. $(eval $(call KernelPackage,crypto-ecb))
  315. define KernelPackage/crypto-hmac
  316. TITLE:=HMAC digest CryptoAPI module
  317. DEPENDS:=+kmod-crypto-hash
  318. KCONFIG:=CONFIG_CRYPTO_HMAC
  319. FILES:=$(LINUX_DIR)/crypto/hmac.ko
  320. DEPENDS:=+kmod-crypto-manager
  321. AUTOLOAD:=$(call AutoLoad,09,hmac)
  322. $(call AddDepends/crypto)
  323. endef
  324. $(eval $(call KernelPackage,crypto-hmac))
  325. define KernelPackage/crypto-gcm
  326. TITLE:=GCM/GMAC CryptoAPI module
  327. DEPENDS:=+kmod-crypto-ctr +kmod-crypto-ghash +kmod-crypto-null
  328. KCONFIG:=CONFIG_CRYPTO_GCM
  329. FILES:=$(LINUX_DIR)/crypto/gcm.ko
  330. AUTOLOAD:=$(call AutoLoad,09,gcm)
  331. $(call AddDepends/crypto)
  332. endef
  333. $(eval $(call KernelPackage,crypto-gcm))
  334. define KernelPackage/crypto-gf128
  335. TITLE:=GF(2^128) multiplication functions CryptoAPI module
  336. KCONFIG:=CONFIG_CRYPTO_GF128MUL
  337. FILES:=$(LINUX_DIR)/crypto/gf128mul.ko
  338. AUTOLOAD:=$(call AutoLoad,09,gf128mul)
  339. $(call AddDepends/crypto)
  340. endef
  341. $(eval $(call KernelPackage,crypto-gf128))
  342. define KernelPackage/crypto-ghash
  343. TITLE:=GHASH digest CryptoAPI module
  344. DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-hash
  345. KCONFIG:=CONFIG_CRYPTO_GHASH
  346. FILES:=$(LINUX_DIR)/crypto/ghash-generic.ko
  347. AUTOLOAD:=$(call AutoLoad,09,ghash-generic)
  348. $(call AddDepends/crypto)
  349. endef
  350. $(eval $(call KernelPackage,crypto-ghash))
  351. define KernelPackage/crypto-md4
  352. TITLE:=MD4 digest CryptoAPI module
  353. DEPENDS:=+kmod-crypto-hash
  354. KCONFIG:=CONFIG_CRYPTO_MD4
  355. FILES:=$(LINUX_DIR)/crypto/md4.ko
  356. AUTOLOAD:=$(call AutoLoad,09,md4)
  357. $(call AddDepends/crypto)
  358. endef
  359. $(eval $(call KernelPackage,crypto-md4))
  360. define KernelPackage/crypto-md5
  361. TITLE:=MD5 digest CryptoAPI module
  362. DEPENDS:=+kmod-crypto-hash
  363. KCONFIG:=CONFIG_CRYPTO_MD5
  364. FILES:=$(LINUX_DIR)/crypto/md5.ko
  365. AUTOLOAD:=$(call AutoLoad,09,md5)
  366. $(call AddDepends/crypto)
  367. endef
  368. $(eval $(call KernelPackage,crypto-md5))
  369. define KernelPackage/crypto-michael-mic
  370. TITLE:=Michael MIC keyed digest CryptoAPI module
  371. DEPENDS:=+kmod-crypto-hash
  372. KCONFIG:=CONFIG_CRYPTO_MICHAEL_MIC
  373. FILES:=$(LINUX_DIR)/crypto/michael_mic.ko
  374. AUTOLOAD:=$(call AutoLoad,09,michael_mic)
  375. $(call AddDepends/crypto)
  376. endef
  377. $(eval $(call KernelPackage,crypto-michael-mic))
  378. define KernelPackage/crypto-sha1
  379. TITLE:=SHA1 digest CryptoAPI module
  380. DEPENDS:=+kmod-crypto-hash
  381. KCONFIG:=CONFIG_CRYPTO_SHA1
  382. FILES:=$(LINUX_DIR)/crypto/sha1_generic.ko
  383. AUTOLOAD:=$(call AutoLoad,09,sha1_generic)
  384. $(call AddDepends/crypto)
  385. endef
  386. $(eval $(call KernelPackage,crypto-sha1))
  387. define KernelPackage/crypto-sha256
  388. TITLE:=SHA224 SHA256 digest CryptoAPI module
  389. DEPENDS:=+kmod-crypto-hash
  390. KCONFIG:=CONFIG_CRYPTO_SHA256
  391. FILES:=$(LINUX_DIR)/crypto/sha256_generic.ko
  392. AUTOLOAD:=$(call AutoLoad,09,sha256_generic)
  393. $(call AddDepends/crypto)
  394. endef
  395. $(eval $(call KernelPackage,crypto-sha256))
  396. define KernelPackage/crypto-misc
  397. TITLE:=Other CryptoAPI modules
  398. DEPENDS:=+kmod-crypto-manager
  399. KCONFIG:= \
  400. CONFIG_CRYPTO_ANUBIS \
  401. CONFIG_CRYPTO_BLOWFISH \
  402. CONFIG_CRYPTO_CAMELLIA \
  403. CONFIG_CRYPTO_CAST5 \
  404. CONFIG_CRYPTO_CAST6 \
  405. CONFIG_CRYPTO_FCRYPT \
  406. CONFIG_CRYPTO_KHAZAD \
  407. CONFIG_CRYPTO_SERPENT \
  408. CONFIG_CRYPTO_SHA512 \
  409. CONFIG_CRYPTO_TEA \
  410. CONFIG_CRYPTO_TGR192 \
  411. CONFIG_CRYPTO_TWOFISH \
  412. CONFIG_CRYPTO_TWOFISH_COMMON \
  413. CONFIG_CRYPTO_TWOFISH_586 \
  414. CONFIG_CRYPTO_WP512
  415. FILES:= \
  416. $(LINUX_DIR)/crypto/anubis.ko \
  417. $(LINUX_DIR)/crypto/camellia_generic.ko \
  418. $(LINUX_DIR)/crypto/cast_common.ko \
  419. $(LINUX_DIR)/crypto/cast5_generic.ko \
  420. $(LINUX_DIR)/crypto/cast6_generic.ko \
  421. $(LINUX_DIR)/crypto/khazad.ko \
  422. $(LINUX_DIR)/crypto/sha512_generic.ko \
  423. $(LINUX_DIR)/crypto/tea.ko \
  424. $(LINUX_DIR)/crypto/tgr192.ko \
  425. $(LINUX_DIR)/crypto/twofish_common.ko \
  426. $(LINUX_DIR)/crypto/wp512.ko \
  427. $(LINUX_DIR)/crypto/twofish_generic.ko \
  428. $(LINUX_DIR)/crypto/blowfish_common.ko \
  429. $(LINUX_DIR)/crypto/blowfish_generic.ko \
  430. $(LINUX_DIR)/crypto/serpent_generic.ko
  431. $(call AddDepends/crypto)
  432. endef
  433. ifndef CONFIG_TARGET_x86_64
  434. define KernelPackage/crypto-misc/x86
  435. FILES+=$(LINUX_DIR)/arch/x86/crypto/twofish-i586.ko
  436. endef
  437. endif
  438. $(eval $(call KernelPackage,crypto-misc))
  439. define KernelPackage/crypto-ocf
  440. TITLE:=OCF modules
  441. DEPENDS:=+@OPENSSL_ENGINE_CRYPTO @!TARGET_uml +kmod-crypto-manager
  442. KCONFIG:= \
  443. CONFIG_OCF_OCF \
  444. CONFIG_OCF_CRYPTODEV \
  445. CONFIG_OCF_CRYPTOSOFT \
  446. CONFIG_OCF_FIPS=y \
  447. CONFIG_OCF_RANDOMHARVEST=y
  448. FILES:= \
  449. $(LINUX_DIR)/crypto/ocf/ocf.ko \
  450. $(LINUX_DIR)/crypto/ocf/cryptodev.ko \
  451. $(LINUX_DIR)/crypto/ocf/cryptosoft.ko
  452. AUTOLOAD:=$(call AutoLoad,09, \
  453. ocf \
  454. cryptodev \
  455. cryptosoft \
  456. )
  457. $(call AddDepends/crypto)
  458. endef
  459. $(eval $(call KernelPackage,crypto-ocf))
  460. define KernelPackage/crypto-ocf-hifn7751
  461. TITLE:=OCF support for Hifn 6500/7751/7811/795x, Invertex AEON and NetSec 7751 devices
  462. DEPENDS:=+@OPENSSL_ENGINE_CRYPTO @PCI_SUPPORT @!TARGET_uml kmod-crypto-ocf
  463. KCONFIG:=CONFIG_OCF_HIFN
  464. FILES:=$(LINUX_DIR)/crypto/ocf/hifn/hifn7751.ko
  465. AUTOLOAD:=$(call AutoLoad,10,hifn7751)
  466. $(call AddDepends/crypto)
  467. endef
  468. $(eval $(call KernelPackage,crypto-ocf-hifn7751))
  469. define KernelPackage/crypto-ocf-hifnhipp
  470. TITLE:=OCF support for Hifn 7855/8155 devices
  471. DEPENDS:=+@OPENSSL_ENGINE_CRYPTO @PCI_SUPPORT @!TARGET_uml kmod-crypto-ocf
  472. KCONFIG:=CONFIG_OCF_HIFNHIPP
  473. FILES:=$(LINUX_DIR)/crypto/ocf/hifn/hifnHIPP.ko
  474. AUTOLOAD:=$(call AutoLoad,10,hifnHIPP)
  475. $(call AddDepends/crypto)
  476. endef
  477. $(eval $(call KernelPackage,crypto-ocf-hifnhipp))
  478. define KernelPackage/crypto-null
  479. TITLE:=Null CryptoAPI module
  480. KCONFIG:=CONFIG_CRYPTO_NULL
  481. FILES:=$(LINUX_DIR)/crypto/crypto_null.ko
  482. AUTOLOAD:=$(call AutoLoad,09,crypto_null)
  483. $(call AddDepends/crypto,+kmod-crypto-manager)
  484. endef
  485. $(eval $(call KernelPackage,crypto-null))
  486. define KernelPackage/crypto-test
  487. TITLE:=Test CryptoAPI module
  488. KCONFIG:=CONFIG_CRYPTO_TEST
  489. FILES:=$(LINUX_DIR)/crypto/tcrypt.ko
  490. $(call AddDepends/crypto,+kmod-crypto-manager)
  491. endef
  492. $(eval $(call KernelPackage,crypto-test))
  493. define KernelPackage/crypto-xts
  494. TITLE:=XTS cipher CryptoAPI module
  495. DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-manager
  496. KCONFIG:=CONFIG_CRYPTO_XTS
  497. FILES:=$(LINUX_DIR)/crypto/xts.ko
  498. AUTOLOAD:=$(call AutoLoad,09,xts)
  499. $(call AddDepends/crypto)
  500. endef
  501. $(eval $(call KernelPackage,crypto-xts))
  502. define KernelPackage/crypto-mv-cesa
  503. TITLE:=Marvell crypto engine
  504. DEPENDS:=+kmod-crypto-manager +kmod-crypto-aes @TARGET_kirkwood||TARGET_orion||TARGET_mvebu
  505. KCONFIG:=CONFIG_CRYPTO_DEV_MV_CESA
  506. FILES:=$(LINUX_DIR)/drivers/crypto/mv_cesa.ko
  507. AUTOLOAD:=$(call AutoLoad,09,mv_cesa)
  508. $(call AddDepends/crypto)
  509. endef
  510. $(eval $(call KernelPackage,crypto-mv-cesa))