2
0

crypto.mk 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607
  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-talitos
  129. TITLE:=Freescale integrated security engine (SEC) driver
  130. DEPENDS:=+kmod-crypto-manager +kmod-crypto-hash +kmod-random-core +kmod-crypto-authenc
  131. KCONFIG:= \
  132. CONFIG_CRYPTO_HW=y \
  133. CONFIG_CRYPTO_DEV_TALITOS \
  134. CONFIG_CRYPTO_DEV_TALITOS1=y \
  135. CONFIG_CRYPTO_DEV_TALITOS2=y
  136. FILES:= \
  137. $(LINUX_DIR)/drivers/crypto/talitos.ko
  138. AUTOLOAD:=$(call AutoLoad,09,talitos)
  139. $(call AddDepends/crypto)
  140. endef
  141. $(eval $(call KernelPackage,crypto-hw-talitos))
  142. define KernelPackage/crypto-hw-padlock
  143. TITLE:=VIA PadLock ACE with AES/SHA hw crypto module
  144. DEPENDS:=+kmod-crypto-manager
  145. KCONFIG:= \
  146. CONFIG_CRYPTO_HW=y \
  147. CONFIG_CRYPTO_DEV_PADLOCK \
  148. CONFIG_CRYPTO_DEV_PADLOCK_AES \
  149. CONFIG_CRYPTO_DEV_PADLOCK_SHA
  150. FILES:= \
  151. $(LINUX_DIR)/drivers/crypto/padlock-aes.ko \
  152. $(LINUX_DIR)/drivers/crypto/padlock-sha.ko
  153. AUTOLOAD:=$(call AutoLoad,09,padlock-aes padlock-sha)
  154. $(call AddDepends/crypto)
  155. endef
  156. $(eval $(call KernelPackage,crypto-hw-padlock))
  157. define KernelPackage/crypto-hw-ccp
  158. TITLE:=AMD Cryptographic Coprocessor
  159. DEPENDS:=+kmod-crypto-authenc +kmod-crypto-hash +kmod-crypto-manager +kmod-random-core
  160. KCONFIG:= \
  161. CONFIG_CRYPTO_HW=y \
  162. CONFIG_CRYPTO_DEV_CCP=y \
  163. CONFIG_CRYPTO_DEV_CCP_CRYPTO \
  164. CONFIG_CRYPTO_DEV_CCP_DD
  165. FILES:= \
  166. $(LINUX_DIR)/drivers/crypto/ccp/ccp.ko \
  167. $(LINUX_DIR)/drivers/crypto/ccp/ccp-crypto.ko
  168. AUTOLOAD:=$(call AutoLoad,09,ccp ccp-crypto)
  169. $(call AddDepends/crypto)
  170. endef
  171. $(eval $(call KernelPackage,crypto-hw-ccp))
  172. define KernelPackage/crypto-hw-geode
  173. TITLE:=AMD Geode hardware crypto module
  174. DEPENDS:=+kmod-crypto-manager
  175. KCONFIG:= \
  176. CONFIG_CRYPTO_HW=y \
  177. CONFIG_CRYPTO_DEV_GEODE
  178. FILES:=$(LINUX_DIR)/drivers/crypto/geode-aes.ko
  179. AUTOLOAD:=$(call AutoLoad,09,geode-aes)
  180. $(call AddDepends/crypto)
  181. endef
  182. $(eval $(call KernelPackage,crypto-hw-geode))
  183. define KernelPackage/crypto-hw-hifn-795x
  184. TITLE:=HIFN 795x crypto accelerator
  185. DEPENDS:=+kmod-random-core +kmod-crypto-manager
  186. KCONFIG:= \
  187. CONFIG_CRYPTO_HW=y \
  188. CONFIG_CRYPTO_DEV_HIFN_795X \
  189. CONFIG_CRYPTO_DEV_HIFN_795X_RNG=y
  190. FILES:=$(LINUX_DIR)/drivers/crypto/hifn_795x.ko
  191. AUTOLOAD:=$(call AutoLoad,09,hifn_795x)
  192. $(call AddDepends/crypto,+kmod-crypto-des)
  193. endef
  194. $(eval $(call KernelPackage,crypto-hw-hifn-795x))
  195. define KernelPackage/crypto-authenc
  196. TITLE:=Combined mode wrapper for IPsec
  197. DEPENDS:=+kmod-crypto-manager +LINUX_4_4:kmod-crypto-null
  198. KCONFIG:=CONFIG_CRYPTO_AUTHENC
  199. FILES:=$(LINUX_DIR)/crypto/authenc.ko
  200. AUTOLOAD:=$(call AutoLoad,09,authenc)
  201. $(call AddDepends/crypto)
  202. endef
  203. $(eval $(call KernelPackage,crypto-authenc))
  204. define KernelPackage/crypto-cbc
  205. TITLE:=Cipher Block Chaining CryptoAPI module
  206. DEPENDS:=+kmod-crypto-manager
  207. KCONFIG:=CONFIG_CRYPTO_CBC
  208. FILES:=$(LINUX_DIR)/crypto/cbc.ko
  209. AUTOLOAD:=$(call AutoLoad,09,cbc)
  210. $(call AddDepends/crypto)
  211. endef
  212. $(eval $(call KernelPackage,crypto-cbc))
  213. define KernelPackage/crypto-ctr
  214. TITLE:=Counter Mode CryptoAPI module
  215. DEPENDS:=+kmod-crypto-manager +kmod-crypto-seqiv +kmod-crypto-iv
  216. KCONFIG:=CONFIG_CRYPTO_CTR
  217. FILES:=$(LINUX_DIR)/crypto/ctr.ko
  218. AUTOLOAD:=$(call AutoLoad,09,ctr)
  219. $(call AddDepends/crypto)
  220. endef
  221. $(eval $(call KernelPackage,crypto-ctr))
  222. define KernelPackage/crypto-ccm
  223. TITLE:=Support for Counter with CBC MAC (CCM)
  224. DEPENDS:=+kmod-crypto-ctr +kmod-crypto-aead
  225. KCONFIG:=CONFIG_CRYPTO_CCM
  226. FILES:=$(LINUX_DIR)/crypto/ccm.ko
  227. AUTOLOAD:=$(call AutoLoad,09,ccm)
  228. $(call AddDepends/crypto)
  229. endef
  230. $(eval $(call KernelPackage,crypto-ccm))
  231. define KernelPackage/crypto-pcbc
  232. TITLE:=Propagating Cipher Block Chaining CryptoAPI module
  233. DEPENDS:=+kmod-crypto-manager
  234. KCONFIG:=CONFIG_CRYPTO_PCBC
  235. FILES:=$(LINUX_DIR)/crypto/pcbc.ko
  236. AUTOLOAD:=$(call AutoLoad,09,pcbc)
  237. $(call AddDepends/crypto)
  238. endef
  239. $(eval $(call KernelPackage,crypto-pcbc))
  240. define KernelPackage/crypto-crc32c
  241. TITLE:=CRC32c CRC module
  242. DEPENDS:=+kmod-crypto-hash
  243. KCONFIG:=CONFIG_CRYPTO_CRC32C
  244. FILES:=$(LINUX_DIR)/crypto/crc32c_generic.ko
  245. AUTOLOAD:=$(call AutoLoad,04,crc32c_generic,1)
  246. $(call AddDepends/crypto)
  247. endef
  248. $(eval $(call KernelPackage,crypto-crc32c))
  249. define KernelPackage/crypto-des
  250. TITLE:=DES/3DES cipher CryptoAPI module
  251. KCONFIG:=CONFIG_CRYPTO_DES
  252. FILES:=$(LINUX_DIR)/crypto/des_generic.ko
  253. AUTOLOAD:=$(call AutoLoad,09,des_generic)
  254. $(call AddDepends/crypto)
  255. endef
  256. $(eval $(call KernelPackage,crypto-des))
  257. define KernelPackage/crypto-deflate
  258. TITLE:=Deflate compression CryptoAPI module
  259. DEPENDS:=+kmod-lib-zlib-inflate +kmod-lib-zlib-deflate
  260. KCONFIG:=CONFIG_CRYPTO_DEFLATE
  261. FILES:=$(LINUX_DIR)/crypto/deflate.ko
  262. AUTOLOAD:=$(call AutoLoad,09,deflate)
  263. $(call AddDepends/crypto)
  264. endef
  265. $(eval $(call KernelPackage,crypto-deflate))
  266. define KernelPackage/crypto-fcrypt
  267. TITLE:=FCRYPT cipher CryptoAPI module
  268. KCONFIG:=CONFIG_CRYPTO_FCRYPT
  269. FILES:=$(LINUX_DIR)/crypto/fcrypt.ko
  270. AUTOLOAD:=$(call AutoLoad,09,fcrypt)
  271. $(call AddDepends/crypto)
  272. endef
  273. $(eval $(call KernelPackage,crypto-fcrypt))
  274. define KernelPackage/crypto-ecb
  275. TITLE:=Electronic CodeBook CryptoAPI module
  276. DEPENDS:=+kmod-crypto-manager
  277. KCONFIG:=CONFIG_CRYPTO_ECB
  278. FILES:=$(LINUX_DIR)/crypto/ecb.ko
  279. AUTOLOAD:=$(call AutoLoad,09,ecb)
  280. $(call AddDepends/crypto)
  281. endef
  282. $(eval $(call KernelPackage,crypto-ecb))
  283. define KernelPackage/crypto-hmac
  284. TITLE:=HMAC digest CryptoAPI module
  285. DEPENDS:=+kmod-crypto-hash +kmod-crypto-manager
  286. KCONFIG:=CONFIG_CRYPTO_HMAC
  287. FILES:=$(LINUX_DIR)/crypto/hmac.ko
  288. AUTOLOAD:=$(call AutoLoad,09,hmac)
  289. $(call AddDepends/crypto)
  290. endef
  291. $(eval $(call KernelPackage,crypto-hmac))
  292. define KernelPackage/crypto-cmac
  293. TITLE:=Support for Cipher-based Message Authentication Code (CMAC)
  294. DEPENDS:=+kmod-crypto-hash
  295. KCONFIG:=CONFIG_CRYPTO_CMAC
  296. FILES:=$(LINUX_DIR)/crypto/cmac.ko
  297. AUTOLOAD:=$(call AutoLoad,09,cmac)
  298. $(call AddDepends/crypto)
  299. endef
  300. $(eval $(call KernelPackage,crypto-cmac))
  301. define KernelPackage/crypto-gcm
  302. TITLE:=GCM/GMAC CryptoAPI module
  303. DEPENDS:=+kmod-crypto-ctr +kmod-crypto-ghash +kmod-crypto-null
  304. KCONFIG:=CONFIG_CRYPTO_GCM
  305. FILES:=$(LINUX_DIR)/crypto/gcm.ko
  306. AUTOLOAD:=$(call AutoLoad,09,gcm)
  307. $(call AddDepends/crypto)
  308. endef
  309. $(eval $(call KernelPackage,crypto-gcm))
  310. define KernelPackage/crypto-gf128
  311. TITLE:=GF(2^128) multiplication functions CryptoAPI module
  312. KCONFIG:=CONFIG_CRYPTO_GF128MUL
  313. FILES:=$(LINUX_DIR)/crypto/gf128mul.ko
  314. AUTOLOAD:=$(call AutoLoad,09,gf128mul)
  315. $(call AddDepends/crypto)
  316. endef
  317. $(eval $(call KernelPackage,crypto-gf128))
  318. define KernelPackage/crypto-ghash
  319. TITLE:=GHASH digest CryptoAPI module
  320. DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-hash
  321. KCONFIG:=CONFIG_CRYPTO_GHASH
  322. FILES:=$(LINUX_DIR)/crypto/ghash-generic.ko
  323. AUTOLOAD:=$(call AutoLoad,09,ghash-generic)
  324. $(call AddDepends/crypto)
  325. endef
  326. $(eval $(call KernelPackage,crypto-ghash))
  327. define KernelPackage/crypto-md4
  328. TITLE:=MD4 digest CryptoAPI module
  329. DEPENDS:=+kmod-crypto-hash
  330. KCONFIG:=CONFIG_CRYPTO_MD4
  331. FILES:=$(LINUX_DIR)/crypto/md4.ko
  332. AUTOLOAD:=$(call AutoLoad,09,md4)
  333. $(call AddDepends/crypto)
  334. endef
  335. $(eval $(call KernelPackage,crypto-md4))
  336. define KernelPackage/crypto-md5
  337. TITLE:=MD5 digest CryptoAPI module
  338. DEPENDS:=+kmod-crypto-hash
  339. KCONFIG:= \
  340. CONFIG_CRYPTO_MD5 \
  341. CONFIG_CRYPTO_MD5_OCTEON
  342. FILES:=$(LINUX_DIR)/crypto/md5.ko
  343. AUTOLOAD:=$(call AutoLoad,09,md5)
  344. $(call AddDepends/crypto)
  345. endef
  346. define KernelPackage/crypto-md5/octeon
  347. FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-md5.ko
  348. AUTOLOAD+=$(call AutoLoad,09,octeon-md5)
  349. endef
  350. $(eval $(call KernelPackage,crypto-md5))
  351. define KernelPackage/crypto-michael-mic
  352. TITLE:=Michael MIC keyed digest CryptoAPI module
  353. DEPENDS:=+kmod-crypto-hash
  354. KCONFIG:=CONFIG_CRYPTO_MICHAEL_MIC
  355. FILES:=$(LINUX_DIR)/crypto/michael_mic.ko
  356. AUTOLOAD:=$(call AutoLoad,09,michael_mic)
  357. $(call AddDepends/crypto)
  358. endef
  359. $(eval $(call KernelPackage,crypto-michael-mic))
  360. define KernelPackage/crypto-sha1
  361. TITLE:=SHA1 digest CryptoAPI module
  362. DEPENDS:=+kmod-crypto-hash
  363. KCONFIG:= \
  364. CONFIG_CRYPTO_SHA1 \
  365. CONFIG_CRYPTO_SHA1_OCTEON \
  366. CONFIG_CRYPTO_SHA1_SSSE3
  367. FILES:=$(LINUX_DIR)/crypto/sha1_generic.ko
  368. AUTOLOAD:=$(call AutoLoad,09,sha1_generic)
  369. $(call AddDepends/crypto)
  370. endef
  371. define KernelPackage/crypto-sha1/octeon
  372. FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha1.ko
  373. AUTOLOAD+=$(call AutoLoad,09,octeon-sha1)
  374. endef
  375. define KernelPackage/crypto-sha1/x86/64
  376. FILES+=$(LINUX_DIR)/arch/x86/crypto/sha1-ssse3.ko
  377. AUTOLOAD+=$(call AutoLoad,09,sha1-ssse3)
  378. endef
  379. $(eval $(call KernelPackage,crypto-sha1))
  380. define KernelPackage/crypto-sha256
  381. TITLE:=SHA224 SHA256 digest CryptoAPI module
  382. DEPENDS:=+kmod-crypto-hash
  383. KCONFIG:= \
  384. CONFIG_CRYPTO_SHA256 \
  385. CONFIG_CRYPTO_SHA256_OCTEON \
  386. CONFIG_CRYPTO_SHA256_SSSE3
  387. FILES:=$(LINUX_DIR)/crypto/sha256_generic.ko
  388. AUTOLOAD:=$(call AutoLoad,09,sha256_generic)
  389. $(call AddDepends/crypto)
  390. endef
  391. define KernelPackage/crypto-sha256/octeon
  392. FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha256.ko
  393. AUTOLOAD+=$(call AutoLoad,09,octeon-sha256)
  394. endef
  395. define KernelPackage/crypto-sha256/x86/64
  396. FILES+=$(LINUX_DIR)/arch/x86/crypto/sha256-ssse3.ko
  397. AUTOLOAD+=$(call AutoLoad,09,sha256-ssse3)
  398. endef
  399. $(eval $(call KernelPackage,crypto-sha256))
  400. define KernelPackage/crypto-sha512
  401. TITLE:=SHA512 digest CryptoAPI module
  402. DEPENDS:=+kmod-crypto-hash
  403. KCONFIG:= \
  404. CONFIG_CRYPTO_SHA512 \
  405. CONFIG_CRYPTO_SHA512_OCTEON \
  406. CONFIG_CRYPTO_SHA512_SSSE3
  407. FILES:=$(LINUX_DIR)/crypto/sha512_generic.ko
  408. AUTOLOAD:=$(call AutoLoad,09,sha512_generic)
  409. $(call AddDepends/crypto)
  410. endef
  411. define KernelPackage/crypto-sha512/octeon
  412. FILES+=$(LINUX_DIR)/arch/mips/cavium-octeon/crypto/octeon-sha512.ko
  413. AUTOLOAD+=$(call AutoLoad,09,octeon-sha512)
  414. endef
  415. define KernelPackage/crypto-sha512/x86/64
  416. FILES+=$(LINUX_DIR)/arch/x86/crypto/sha512-ssse3.ko
  417. AUTOLOAD+=$(call AutoLoad,09,sha512-ssse3)
  418. endef
  419. $(eval $(call KernelPackage,crypto-sha512))
  420. define KernelPackage/crypto-misc
  421. TITLE:=Other CryptoAPI modules
  422. DEPENDS:=+kmod-crypto-manager
  423. KCONFIG:= \
  424. CONFIG_CRYPTO_ANUBIS \
  425. CONFIG_CRYPTO_BLOWFISH \
  426. CONFIG_CRYPTO_CAMELLIA \
  427. CONFIG_CRYPTO_CAST5 \
  428. CONFIG_CRYPTO_CAST6 \
  429. CONFIG_CRYPTO_FCRYPT \
  430. CONFIG_CRYPTO_KHAZAD \
  431. CONFIG_CRYPTO_SERPENT \
  432. CONFIG_CRYPTO_TEA \
  433. CONFIG_CRYPTO_TGR192 \
  434. CONFIG_CRYPTO_TWOFISH \
  435. CONFIG_CRYPTO_TWOFISH_COMMON \
  436. CONFIG_CRYPTO_TWOFISH_586 \
  437. CONFIG_CRYPTO_WP512
  438. FILES:= \
  439. $(LINUX_DIR)/crypto/anubis.ko \
  440. $(LINUX_DIR)/crypto/camellia_generic.ko \
  441. $(LINUX_DIR)/crypto/cast_common.ko \
  442. $(LINUX_DIR)/crypto/cast5_generic.ko \
  443. $(LINUX_DIR)/crypto/cast6_generic.ko \
  444. $(LINUX_DIR)/crypto/khazad.ko \
  445. $(LINUX_DIR)/crypto/tea.ko \
  446. $(LINUX_DIR)/crypto/tgr192.ko \
  447. $(LINUX_DIR)/crypto/twofish_common.ko \
  448. $(LINUX_DIR)/crypto/wp512.ko \
  449. $(LINUX_DIR)/crypto/twofish_generic.ko \
  450. $(LINUX_DIR)/crypto/blowfish_common.ko \
  451. $(LINUX_DIR)/crypto/blowfish_generic.ko \
  452. $(LINUX_DIR)/crypto/serpent_generic.ko
  453. $(call AddDepends/crypto)
  454. endef
  455. ifndef CONFIG_TARGET_x86_64
  456. define KernelPackage/crypto-misc/x86
  457. FILES+=$(LINUX_DIR)/arch/x86/crypto/twofish-i586.ko
  458. endef
  459. endif
  460. $(eval $(call KernelPackage,crypto-misc))
  461. define KernelPackage/crypto-null
  462. TITLE:=Null CryptoAPI module
  463. KCONFIG:=CONFIG_CRYPTO_NULL
  464. FILES:=$(LINUX_DIR)/crypto/crypto_null.ko
  465. AUTOLOAD:=$(call AutoLoad,09,crypto_null)
  466. $(call AddDepends/crypto, +kmod-crypto-hash)
  467. endef
  468. $(eval $(call KernelPackage,crypto-null))
  469. define KernelPackage/crypto-test
  470. TITLE:=Test CryptoAPI module
  471. KCONFIG:=CONFIG_CRYPTO_TEST
  472. FILES:=$(LINUX_DIR)/crypto/tcrypt.ko
  473. $(call AddDepends/crypto,+kmod-crypto-manager)
  474. endef
  475. $(eval $(call KernelPackage,crypto-test))
  476. define KernelPackage/crypto-xts
  477. TITLE:=XTS cipher CryptoAPI module
  478. DEPENDS:=+kmod-crypto-gf128 +kmod-crypto-manager
  479. KCONFIG:=CONFIG_CRYPTO_XTS
  480. FILES:=$(LINUX_DIR)/crypto/xts.ko
  481. AUTOLOAD:=$(call AutoLoad,09,xts)
  482. $(call AddDepends/crypto)
  483. endef
  484. $(eval $(call KernelPackage,crypto-xts))