xref: /openbmc/linux/crypto/Makefile (revision dfc9fa91)
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
10ccb778e1SNeil Hormanobj-$(CONFIG_CRYPTO_FIPS) += fips.o
11ccb778e1SNeil Horman
12cce9e06dSHerbert Xucrypto_algapi-$(CONFIG_PROC_FS) += proc.o
1321ea28abSTracey Dentcrypto_algapi-y := algapi.o scatterwalk.o $(crypto_algapi-y)
146a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_ALGAPI2) += crypto_algapi.o
151da177e4SLinus Torvalds
166a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_AEAD2) += aead.o
17653ebd9cSHerbert Xu
1821ea28abSTracey Dentcrypto_blkcipher-y := ablkcipher.o
1921ea28abSTracey Dentcrypto_blkcipher-y += blkcipher.o
206a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_BLKCIPHER2) += crypto_blkcipher.o
216a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_BLKCIPHER2) += chainiv.o
226a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_BLKCIPHER2) += eseqiv.o
230a270321SHerbert Xuobj-$(CONFIG_CRYPTO_SEQIV) += seqiv.o
24a10f554fSHerbert Xuobj-$(CONFIG_CRYPTO_ECHAINIV) += echainiv.o
255cde0af2SHerbert Xu
2621ea28abSTracey Dentcrypto_hash-y += ahash.o
2721ea28abSTracey Dentcrypto_hash-y += shash.o
286a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_HASH2) += crypto_hash.o
29055bcee3SHerbert Xu
30bc94e596SHerbert Xuobj-$(CONFIG_CRYPTO_PCOMP2) += pcompress.o
313c339ab8STadeusz Strukobj-$(CONFIG_CRYPTO_AKCIPHER2) += akcipher.o
32a1d2f095SGeert Uytterhoeven
33cfc2bb32STadeusz Struk$(obj)/rsakey-asn1.o: $(obj)/rsakey-asn1.c $(obj)/rsakey-asn1.h
34cfc2bb32STadeusz Strukclean-files += rsakey-asn1.c rsakey-asn1.h
35cfc2bb32STadeusz Struk
36cfc2bb32STadeusz Strukrsa_generic-y := rsakey-asn1.o
37cfc2bb32STadeusz Strukrsa_generic-y += rsa.o
38cfc2bb32STadeusz Strukrsa_generic-y += rsa_helper.o
39cfc2bb32STadeusz Strukobj-$(CONFIG_CRYPTO_RSA) += rsa_generic.o
40cfc2bb32STadeusz Struk
4121ea28abSTracey Dentcryptomgr-y := algboss.o testmgr.o
42da7f033dSHerbert Xu
436a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_MANAGER2) += cryptomgr.o
44a38f7907SSteffen Klassertobj-$(CONFIG_CRYPTO_USER) += crypto_user.o
4593b5e86aSJussi Kivilinnaobj-$(CONFIG_CRYPTO_CMAC) += cmac.o
461da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_HMAC) += hmac.o
47f1939f7cSShane Wangobj-$(CONFIG_CRYPTO_VMAC) += vmac.o
48333b0d7eSKazunori MIYAZAWAobj-$(CONFIG_CRYPTO_XCBC) += xcbc.o
491da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_NULL) += crypto_null.o
501da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_MD4) += md4.o
511da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_MD5) += md5.o
52c6580eb8SAdrian-Ken Rueegseggerobj-$(CONFIG_CRYPTO_RMD128) += rmd128.o
53c6580eb8SAdrian-Ken Rueegseggerobj-$(CONFIG_CRYPTO_RMD160) += rmd160.o
54c555c28dSAdrian-Ken Rueegseggerobj-$(CONFIG_CRYPTO_RMD256) += rmd256.o
55c555c28dSAdrian-Ken Rueegseggerobj-$(CONFIG_CRYPTO_RMD320) += rmd320.o
56ad5d2789SSebastian Siewiorobj-$(CONFIG_CRYPTO_SHA1) += sha1_generic.o
57ad5d2789SSebastian Siewiorobj-$(CONFIG_CRYPTO_SHA256) += sha256_generic.o
5878f8b3a2SJan Glauberobj-$(CONFIG_CRYPTO_SHA512) += sha512_generic.o
591da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_WP512) += wp512.o
601da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_TGR192) += tgr192.o
61c494e070SRik Snelobj-$(CONFIG_CRYPTO_GF128MUL) += gf128mul.o
62db131ef9SHerbert Xuobj-$(CONFIG_CRYPTO_ECB) += ecb.o
63db131ef9SHerbert Xuobj-$(CONFIG_CRYPTO_CBC) += cbc.o
6491652be5SDavid Howellsobj-$(CONFIG_CRYPTO_PCBC) += pcbc.o
6576cb9521SKevin Coffmanobj-$(CONFIG_CRYPTO_CTS) += cts.o
6664470f1bSRik Snelobj-$(CONFIG_CRYPTO_LRW) += lrw.o
67f19f5111SRik Snelobj-$(CONFIG_CRYPTO_XTS) += xts.o
6823e353c8SJoy Lattenobj-$(CONFIG_CRYPTO_CTR) += ctr.o
6928db8e3eSMikko Herranenobj-$(CONFIG_CRYPTO_GCM) += gcm.o
704a49b499SJoy Lattenobj-$(CONFIG_CRYPTO_CCM) += ccm.o
7171ebc4d1SMartin Williobj-$(CONFIG_CRYPTO_CHACHA20POLY1305) += chacha20poly1305.o
725068c7a8SSteffen Klassertobj-$(CONFIG_CRYPTO_PCRYPT) += pcrypt.o
73124b53d0SHerbert Xuobj-$(CONFIG_CRYPTO_CRYPTD) += cryptd.o
741e65b81aSTim Chenobj-$(CONFIG_CRYPTO_MCRYPTD) += mcryptd.o
75c5a511f1SSebastian Siewiorobj-$(CONFIG_CRYPTO_DES) += des_generic.o
7690831639SDavid Howellsobj-$(CONFIG_CRYPTO_FCRYPT) += fcrypt.o
773f2a5d2dSJussi Kivilinnaobj-$(CONFIG_CRYPTO_BLOWFISH) += blowfish_generic.o
7852ba867cSJussi Kivilinnaobj-$(CONFIG_CRYPTO_BLOWFISH_COMMON) += blowfish_common.o
795b04fc17SJoachim Fritschiobj-$(CONFIG_CRYPTO_TWOFISH) += twofish_generic.o
802729bb42SJoachim Fritschiobj-$(CONFIG_CRYPTO_TWOFISH_COMMON) += twofish_common.o
81dd6eec24SJussi Kivilinnaobj-$(CONFIG_CRYPTO_SERPENT) += serpent_generic.o
82f8246af0SSebastian Siewiorobj-$(CONFIG_CRYPTO_AES) += aes_generic.o
83075e39dfSJussi Kivilinnaobj-$(CONFIG_CRYPTO_CAMELLIA) += camellia_generic.o
84044ab525SJussi Kivilinnaobj-$(CONFIG_CRYPTO_CAST_COMMON) += cast_common.o
85270b0c6bSJohannes Goetzfriedobj-$(CONFIG_CRYPTO_CAST5) += cast5_generic.o
862b49b906SJohannes Goetzfriedobj-$(CONFIG_CRYPTO_CAST6) += cast6_generic.o
871da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_ARC4) += arc4.o
881da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_TEA) += tea.o
891da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_KHAZAD) += khazad.o
901da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_ANUBIS) += anubis.o
91e2ee95b8SHye-Shik Changobj-$(CONFIG_CRYPTO_SEED) += seed.o
922407d608STan Swee Hengobj-$(CONFIG_CRYPTO_SALSA20) += salsa20_generic.o
93c08d0e64SMartin Williobj-$(CONFIG_CRYPTO_CHACHA20) += chacha20_generic.o
94f979e014SMartin Williobj-$(CONFIG_CRYPTO_POLY1305) += poly1305_generic.o
951da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_DEFLATE) += deflate.o
96bf68e65eSGeert Uytterhoevenobj-$(CONFIG_CRYPTO_ZLIB) += zlib.o
971da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_MICHAEL_MIC) += michael_mic.o
9806e5a1f2STim Chenobj-$(CONFIG_CRYPTO_CRC32C) += crc32c_generic.o
9978c37d19SAlexander Boykoobj-$(CONFIG_CRYPTO_CRC32) += crc32.o
10026052f9bSHerbert Xuobj-$(CONFIG_CRYPTO_CRCT10DIF) += crct10dif_common.o crct10dif_generic.o
101a5079d08SSteffen Klassertobj-$(CONFIG_CRYPTO_AUTHENC) += authenc.o authencesn.o
1020b77abb3SZoltan Sogorobj-$(CONFIG_CRYPTO_LZO) += lzo.o
1030ea8530dSChanho Minobj-$(CONFIG_CRYPTO_LZ4) += lz4.o
1040ea8530dSChanho Minobj-$(CONFIG_CRYPTO_LZ4HC) += lz4hc.o
10535a1fc18SSeth Jenningsobj-$(CONFIG_CRYPTO_842) += 842.o
1066a0fcbb4SHerbert Xuobj-$(CONFIG_CRYPTO_RNG2) += rng.o
10717f0f4a4SNeil Hormanobj-$(CONFIG_CRYPTO_ANSI_CPRNG) += ansi_cprng.o
108f2c89a10SHerbert Xuobj-$(CONFIG_CRYPTO_DRBG) += drbg.o
109dfc9fa91SStephan Muellerobj-$(CONFIG_CRYPTO_JITTERENTROPY) += jitterentropy_rng.o
110dfc9fa91SStephan MuellerCFLAGS_jitterentropy.o = -O0
111dfc9fa91SStephan Muellerjitterentropy_rng-y := jitterentropy.o jitterentropy-kcapi.o
1121da177e4SLinus Torvaldsobj-$(CONFIG_CRYPTO_TEST) += tcrypt.o
1132cdc6899SHuang Yingobj-$(CONFIG_CRYPTO_GHASH) += ghash-generic.o
11403c8efc1SHerbert Xuobj-$(CONFIG_CRYPTO_USER_API) += af_alg.o
115fe869cdbSHerbert Xuobj-$(CONFIG_CRYPTO_USER_API_HASH) += algif_hash.o
1168ff59090SHerbert Xuobj-$(CONFIG_CRYPTO_USER_API_SKCIPHER) += algif_skcipher.o
1172f375538SStephan Muellerobj-$(CONFIG_CRYPTO_USER_API_RNG) += algif_rng.o
11844cac4fcSStephan Muellerobj-$(CONFIG_CRYPTO_USER_API_AEAD) += algif_aead.o
119685784aaSDan Williams
120685784aaSDan Williams#
121685784aaSDan Williams# generic algorithms and the async_tx api
122685784aaSDan Williams#
123685784aaSDan Williamsobj-$(CONFIG_XOR_BLOCKS) += xor.o
1249bc89cd8SDan Williamsobj-$(CONFIG_ASYNC_CORE) += async_tx/
125964f3b3bSDavid Howellsobj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys/
126ee08997fSDmitry Kasatkinobj-$(CONFIG_CRYPTO_HASH_INFO) += hash_info.o
127a62b01cdSArd Biesheuvelobj-$(CONFIG_CRYPTO_ABLK_HELPER) += ablk_helper.o
128