1
0

crypto.mk 18 KB

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