xref: /openbmc/linux/crypto/Makefile (revision 3c4b2390)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Cryptographic API
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
5c3715cb9SSebastian Siewiorobj-$(CONFIG_CRYPTO) += crypto.o
66bf37e5aSJames Yonancrypto-y := api.o cipher.o compress.o memneq.o
71da177e4SLinus Torvalds
825c38d3fSHuang Yingobj-$(CONFIG_CRYPTO_WORKQUEUE) += crypto_wq.o
925c38d3fSHuang Ying
10735d37b5SBaolin Wangobj-$(CONFIG_CRYPTO_ENGINE) += crypto_engine.o
11ccb778e1SNeil Hormanobj-$(CONFIG_CRYPTO_FIPS) += fips.o
12ccb778e1SNeil Horman
13cce9e06dSHerbert Xucrypto_algapi-$(CONFIG_PROC_FS) += proc.o
1421ea28abSTracey Dentcrypto_algapi-y := algapi.o scatterwalk.o $(crypto_algapi-y)
156a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_ALGAPI2) += crypto_algapi.o
161da177e4SLinus Torvalds
176a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_AEAD2) += aead.o
18653ebd9cSHerbert Xu
1921ea28abSTracey Dentcrypto_blkcipher-y := ablkcipher.o
2021ea28abSTracey Dentcrypto_blkcipher-y += blkcipher.o
217a7ffe65SHerbert Xucrypto_blkcipher-y += skcipher.o
226a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_BLKCIPHER2) += crypto_blkcipher.o
236a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_BLKCIPHER2) += chainiv.o
246a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_BLKCIPHER2) += eseqiv.o
250a270321SHerbert Xuobj-$(CONFIG_CRYPTO_SEQIV) += seqiv.o
26a10f554fSHerbert Xuobj-$(CONFIG_CRYPTO_ECHAINIV) += echainiv.o
275cde0af2SHerbert Xu
2821ea28abSTracey Dentcrypto_hash-y += ahash.o
2921ea28abSTracey Dentcrypto_hash-y += shash.o
306a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_HASH2) += crypto_hash.o
31055bcee3SHerbert Xu
323c339ab8STadeusz Strukobj-$(CONFIG_CRYPTO_AKCIPHER2) += akcipher.o
334e5f2c40SSalvatore Benedettoobj-$(CONFIG_CRYPTO_KPP2) += kpp.o
34a1d2f095SGeert Uytterhoeven
35802c7f1cSSalvatore Benedettodh_generic-y := dh.o
36802c7f1cSSalvatore Benedettodh_generic-y += dh_helper.o
37802c7f1cSSalvatore Benedettoobj-$(CONFIG_CRYPTO_DH) += dh_generic.o
383c4b2390SSalvatore Benedettoecdh_generic-y := ecc.o
393c4b2390SSalvatore Benedettoecdh_generic-y += ecdh.o
403c4b2390SSalvatore Benedettoecdh_generic-y += ecdh_helper.o
413c4b2390SSalvatore Benedettoobj-$(CONFIG_CRYPTO_ECDH) += ecdh_generic.o
42802c7f1cSSalvatore Benedetto
4322287b0bSTadeusz Struk$(obj)/rsapubkey-asn1.o: $(obj)/rsapubkey-asn1.c $(obj)/rsapubkey-asn1.h
4422287b0bSTadeusz Struk$(obj)/rsaprivkey-asn1.o: $(obj)/rsaprivkey-asn1.c $(obj)/rsaprivkey-asn1.h
4522287b0bSTadeusz Strukclean-files += rsapubkey-asn1.c rsapubkey-asn1.h
4622287b0bSTadeusz Strukclean-files += rsaprivkey-asn1.c rsaprivkey-asn1.h
47cfc2bb32STadeusz Struk
4822287b0bSTadeusz Strukrsa_generic-y := rsapubkey-asn1.o
4922287b0bSTadeusz Strukrsa_generic-y += rsaprivkey-asn1.o
50cfc2bb32STadeusz Strukrsa_generic-y += rsa.o
51cfc2bb32STadeusz Strukrsa_generic-y += rsa_helper.o
523d5b1ecdSAndrzej Zaborowskirsa_generic-y += rsa-pkcs1pad.o
53cfc2bb32STadeusz Strukobj-$(CONFIG_CRYPTO_RSA) += rsa_generic.o
54cfc2bb32STadeusz Struk
5521ea28abSTracey Dentcryptomgr-y := algboss.o testmgr.o
56da7f033dSHerbert Xu
576a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_MANAGER2) += cryptomgr.o
58a38f7907SSteffen Klassertobj-$(CONFIG_CRYPTO_USER) += crypto_user.o
5993b5e86aSJussi Kivilinnaobj-$(CONFIG_CRYPTO_CMAC) += cmac.o
601da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_HMAC) += hmac.o
61f1939f7cSShane Wangobj-$(CONFIG_CRYPTO_VMAC) += vmac.o
62333b0d7eSKazunori MIYAZAWAobj-$(CONFIG_CRYPTO_XCBC) += xcbc.o
63a26bcb04SHerbert Xuobj-$(CONFIG_CRYPTO_NULL2) += crypto_null.o
641da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_MD4) += md4.o
651da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_MD5) += md5.o
66c6580eb8SAdrian-Ken Rueegseggerobj-$(CONFIG_CRYPTO_RMD128) += rmd128.o
67c6580eb8SAdrian-Ken Rueegseggerobj-$(CONFIG_CRYPTO_RMD160) += rmd160.o
68c555c28dSAdrian-Ken Rueegseggerobj-$(CONFIG_CRYPTO_RMD256) += rmd256.o
69c555c28dSAdrian-Ken Rueegseggerobj-$(CONFIG_CRYPTO_RMD320) += rmd320.o
70ad5d2789SSebastian Siewiorobj-$(CONFIG_CRYPTO_SHA1) += sha1_generic.o
71ad5d2789SSebastian Siewiorobj-$(CONFIG_CRYPTO_SHA256) += sha256_generic.o
7278f8b3a2SJan Glauberobj-$(CONFIG_CRYPTO_SHA512) += sha512_generic.o
7353964b9eSJeff Garzikobj-$(CONFIG_CRYPTO_SHA3) += sha3_generic.o
741da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_WP512) += wp512.o
751da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_TGR192) += tgr192.o
76c494e070SRik Snelobj-$(CONFIG_CRYPTO_GF128MUL) += gf128mul.o
77db131ef9SHerbert Xuobj-$(CONFIG_CRYPTO_ECB) += ecb.o
78db131ef9SHerbert Xuobj-$(CONFIG_CRYPTO_CBC) += cbc.o
7991652be5SDavid Howellsobj-$(CONFIG_CRYPTO_PCBC) += pcbc.o
8076cb9521SKevin Coffmanobj-$(CONFIG_CRYPTO_CTS) += cts.o
8164470f1bSRik Snelobj-$(CONFIG_CRYPTO_LRW) += lrw.o
82f19f5111SRik Snelobj-$(CONFIG_CRYPTO_XTS) += xts.o
8323e353c8SJoy Lattenobj-$(CONFIG_CRYPTO_CTR) += ctr.o
841c49678eSStephan Muellerobj-$(CONFIG_CRYPTO_KEYWRAP) += keywrap.o
8528db8e3eSMikko Herranenobj-$(CONFIG_CRYPTO_GCM) += gcm.o
864a49b499SJoy Lattenobj-$(CONFIG_CRYPTO_CCM) += ccm.o
8771ebc4d1SMartin Williobj-$(CONFIG_CRYPTO_CHACHA20POLY1305) += chacha20poly1305.o
885068c7a8SSteffen Klassertobj-$(CONFIG_CRYPTO_PCRYPT) += pcrypt.o
89124b53d0SHerbert Xuobj-$(CONFIG_CRYPTO_CRYPTD) += cryptd.o
901e65b81aSTim Chenobj-$(CONFIG_CRYPTO_MCRYPTD) += mcryptd.o
91c5a511f1SSebastian Siewiorobj-$(CONFIG_CRYPTO_DES) += des_generic.o
9290831639SDavid Howellsobj-$(CONFIG_CRYPTO_FCRYPT) += fcrypt.o
933f2a5d2dSJussi Kivilinnaobj-$(CONFIG_CRYPTO_BLOWFISH) += blowfish_generic.o
9452ba867cSJussi Kivilinnaobj-$(CONFIG_CRYPTO_BLOWFISH_COMMON) += blowfish_common.o
955b04fc17SJoachim Fritschiobj-$(CONFIG_CRYPTO_TWOFISH) += twofish_generic.o
962729bb42SJoachim Fritschiobj-$(CONFIG_CRYPTO_TWOFISH_COMMON) += twofish_common.o
97dd6eec24SJussi Kivilinnaobj-$(CONFIG_CRYPTO_SERPENT) += serpent_generic.o
98f8246af0SSebastian Siewiorobj-$(CONFIG_CRYPTO_AES) += aes_generic.o
99075e39dfSJussi Kivilinnaobj-$(CONFIG_CRYPTO_CAMELLIA) += camellia_generic.o
100044ab525SJussi Kivilinnaobj-$(CONFIG_CRYPTO_CAST_COMMON) += cast_common.o
101270b0c6bSJohannes Goetzfriedobj-$(CONFIG_CRYPTO_CAST5) += cast5_generic.o
1022b49b906SJohannes Goetzfriedobj-$(CONFIG_CRYPTO_CAST6) += cast6_generic.o
1031da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_ARC4) += arc4.o
1041da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_TEA) += tea.o
1051da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_KHAZAD) += khazad.o
1061da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_ANUBIS) += anubis.o
107e2ee95b8SHye-Shik Changobj-$(CONFIG_CRYPTO_SEED) += seed.o
1082407d608STan Swee Hengobj-$(CONFIG_CRYPTO_SALSA20) += salsa20_generic.o
109c08d0e64SMartin Williobj-$(CONFIG_CRYPTO_CHACHA20) += chacha20_generic.o
110f979e014SMartin Williobj-$(CONFIG_CRYPTO_POLY1305) += poly1305_generic.o
1111da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_DEFLATE) += deflate.o
1121da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_MICHAEL_MIC) += michael_mic.o
11306e5a1f2STim Chenobj-$(CONFIG_CRYPTO_CRC32C) += crc32c_generic.o
114a7c58ac0SHerbert Xuobj-$(CONFIG_CRYPTO_CRC32) += crc32_generic.o
11526052f9bSHerbert Xuobj-$(CONFIG_CRYPTO_CRCT10DIF) += crct10dif_common.o crct10dif_generic.o
116a5079d08SSteffen Klassertobj-$(CONFIG_CRYPTO_AUTHENC) += authenc.o authencesn.o
1170b77abb3SZoltan Sogorobj-$(CONFIG_CRYPTO_LZO) += lzo.o
1180ea8530dSChanho Minobj-$(CONFIG_CRYPTO_LZ4) += lz4.o
1190ea8530dSChanho Minobj-$(CONFIG_CRYPTO_LZ4HC) += lz4hc.o
12035a1fc18SSeth Jenningsobj-$(CONFIG_CRYPTO_842) += 842.o
1216a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_RNG2) += rng.o
12217f0f4a4SNeil Hormanobj-$(CONFIG_CRYPTO_ANSI_CPRNG) += ansi_cprng.o
123f2c89a10SHerbert Xuobj-$(CONFIG_CRYPTO_DRBG) += drbg.o
124dfc9fa91SStephan Muellerobj-$(CONFIG_CRYPTO_JITTERENTROPY) += jitterentropy_rng.o
125dfc9fa91SStephan MuellerCFLAGS_jitterentropy.o = -O0
126dfc9fa91SStephan Muellerjitterentropy_rng-y := jitterentropy.o jitterentropy-kcapi.o
1271da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_TEST) += tcrypt.o
1282cdc6899SHuang Yingobj-$(CONFIG_CRYPTO_GHASH) += ghash-generic.o
12903c8efc1SHerbert Xuobj-$(CONFIG_CRYPTO_USER_API) += af_alg.o
130fe869cdbSHerbert Xuobj-$(CONFIG_CRYPTO_USER_API_HASH) += algif_hash.o
1318ff59090SHerbert Xuobj-$(CONFIG_CRYPTO_USER_API_SKCIPHER) += algif_skcipher.o
1322f375538SStephan Muellerobj-$(CONFIG_CRYPTO_USER_API_RNG) += algif_rng.o
13344cac4fcSStephan Muellerobj-$(CONFIG_CRYPTO_USER_API_AEAD) += algif_aead.o
134685784aaSDan Williams
135685784aaSDan Williams#
136685784aaSDan Williams# generic algorithms and the async_tx api
137685784aaSDan Williams#
138685784aaSDan Williamsobj-$(CONFIG_XOR_BLOCKS) += xor.o
1399bc89cd8SDan Williamsobj-$(CONFIG_ASYNC_CORE) += async_tx/
140964f3b3bSDavid Howellsobj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys/
141ee08997fSDmitry Kasatkinobj-$(CONFIG_CRYPTO_HASH_INFO) += hash_info.o
142a62b01cdSArd Biesheuvelobj-$(CONFIG_CRYPTO_ABLK_HELPER) += ablk_helper.o
143