blob: 07b0f51bd64569d921cdbf901ec49b60f2e6f580 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# Cryptographic API
3#
4
Sebastian Siewiorc3715cb92008-03-30 16:36:09 +08005obj-$(CONFIG_CRYPTO) += crypto.o
James Yonan6bf37e52013-09-26 02:20:39 -06006crypto-y := api.o cipher.o compress.o memneq.o
Linus Torvalds1da177e2005-04-16 15:20:36 -07007
Huang Ying25c38d32009-02-19 14:33:40 +08008obj-$(CONFIG_CRYPTO_WORKQUEUE) += crypto_wq.o
9
Baolin Wang735d37b2016-01-26 20:25:39 +080010obj-$(CONFIG_CRYPTO_ENGINE) += crypto_engine.o
Neil Hormanccb778e2008-08-05 14:13:08 +080011obj-$(CONFIG_CRYPTO_FIPS) += fips.o
12
Herbert Xucce9e062006-08-21 21:08:13 +100013crypto_algapi-$(CONFIG_PROC_FS) += proc.o
Tracey Dent21ea28a2010-11-27 16:32:57 +080014crypto_algapi-y := algapi.o scatterwalk.o $(crypto_algapi-y)
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110015obj-$(CONFIG_CRYPTO_ALGAPI2) += crypto_algapi.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070016
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110017obj-$(CONFIG_CRYPTO_AEAD2) += aead.o
Herbert Xu653ebd92007-11-27 19:48:27 +080018
Tracey Dent21ea28a2010-11-27 16:32:57 +080019crypto_blkcipher-y := ablkcipher.o
20crypto_blkcipher-y += blkcipher.o
Herbert Xu7a7ffe62015-08-20 15:21:45 +080021crypto_blkcipher-y += skcipher.o
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110022obj-$(CONFIG_CRYPTO_BLKCIPHER2) += crypto_blkcipher.o
23obj-$(CONFIG_CRYPTO_BLKCIPHER2) += chainiv.o
24obj-$(CONFIG_CRYPTO_BLKCIPHER2) += eseqiv.o
Herbert Xu0a270322007-11-30 21:38:37 +110025obj-$(CONFIG_CRYPTO_SEQIV) += seqiv.o
Herbert Xua10f5542015-05-21 15:11:15 +080026obj-$(CONFIG_CRYPTO_ECHAINIV) += echainiv.o
Herbert Xu5cde0af2006-08-22 00:07:53 +100027
Tracey Dent21ea28a2010-11-27 16:32:57 +080028crypto_hash-y += ahash.o
29crypto_hash-y += shash.o
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110030obj-$(CONFIG_CRYPTO_HASH2) += crypto_hash.o
Herbert Xu055bcee2006-08-19 22:24:23 +100031
Tadeusz Struk3c339ab2015-06-16 10:30:55 -070032obj-$(CONFIG_CRYPTO_AKCIPHER2) += akcipher.o
Salvatore Benedetto4e5f2c42016-06-22 17:49:13 +010033obj-$(CONFIG_CRYPTO_KPP2) += kpp.o
Geert Uytterhoevena1d2f092009-03-04 15:05:33 +080034
Tadeusz Struk22287b02015-10-08 09:26:55 -070035$(obj)/rsapubkey-asn1.o: $(obj)/rsapubkey-asn1.c $(obj)/rsapubkey-asn1.h
36$(obj)/rsaprivkey-asn1.o: $(obj)/rsaprivkey-asn1.c $(obj)/rsaprivkey-asn1.h
37clean-files += rsapubkey-asn1.c rsapubkey-asn1.h
38clean-files += rsaprivkey-asn1.c rsaprivkey-asn1.h
Tadeusz Strukcfc2bb32015-06-16 10:31:01 -070039
Tadeusz Struk22287b02015-10-08 09:26:55 -070040rsa_generic-y := rsapubkey-asn1.o
41rsa_generic-y += rsaprivkey-asn1.o
Tadeusz Strukcfc2bb32015-06-16 10:31:01 -070042rsa_generic-y += rsa.o
43rsa_generic-y += rsa_helper.o
Andrzej Zaborowski3d5b1ec2015-12-05 17:09:34 +010044rsa_generic-y += rsa-pkcs1pad.o
Tadeusz Strukcfc2bb32015-06-16 10:31:01 -070045obj-$(CONFIG_CRYPTO_RSA) += rsa_generic.o
46
Tracey Dent21ea28a2010-11-27 16:32:57 +080047cryptomgr-y := algboss.o testmgr.o
Herbert Xuda7f0332008-07-31 17:08:25 +080048
Herbert Xu6a0fcbb2008-12-10 23:29:44 +110049obj-$(CONFIG_CRYPTO_MANAGER2) += cryptomgr.o
Steffen Klasserta38f7902011-09-27 07:23:50 +020050obj-$(CONFIG_CRYPTO_USER) += crypto_user.o
Jussi Kivilinna93b5e862013-04-08 10:48:44 +030051obj-$(CONFIG_CRYPTO_CMAC) += cmac.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070052obj-$(CONFIG_CRYPTO_HMAC) += hmac.o
Shane Wangf1939f72009-09-02 20:05:22 +100053obj-$(CONFIG_CRYPTO_VMAC) += vmac.o
Kazunori MIYAZAWA333b0d72006-10-28 13:15:24 +100054obj-$(CONFIG_CRYPTO_XCBC) += xcbc.o
Herbert Xua26bcb02015-08-17 17:45:27 +080055obj-$(CONFIG_CRYPTO_NULL2) += crypto_null.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070056obj-$(CONFIG_CRYPTO_MD4) += md4.o
57obj-$(CONFIG_CRYPTO_MD5) += md5.o
Adrian-Ken Rueegseggerc6580eb2008-05-07 22:14:10 +080058obj-$(CONFIG_CRYPTO_RMD128) += rmd128.o
59obj-$(CONFIG_CRYPTO_RMD160) += rmd160.o
Adrian-Ken Rueegseggerc555c282008-05-09 21:27:02 +080060obj-$(CONFIG_CRYPTO_RMD256) += rmd256.o
61obj-$(CONFIG_CRYPTO_RMD320) += rmd320.o
Sebastian Siewiorad5d2782007-10-08 11:45:10 +080062obj-$(CONFIG_CRYPTO_SHA1) += sha1_generic.o
63obj-$(CONFIG_CRYPTO_SHA256) += sha256_generic.o
Jan Glauber78f8b3a2008-03-06 19:55:38 +080064obj-$(CONFIG_CRYPTO_SHA512) += sha512_generic.o
Jeff Garzik53964b92016-06-17 10:30:35 +053065obj-$(CONFIG_CRYPTO_SHA3) += sha3_generic.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070066obj-$(CONFIG_CRYPTO_WP512) += wp512.o
67obj-$(CONFIG_CRYPTO_TGR192) += tgr192.o
Rik Snelc494e072006-11-29 18:59:44 +110068obj-$(CONFIG_CRYPTO_GF128MUL) += gf128mul.o
Herbert Xudb131ef2006-09-21 11:44:08 +100069obj-$(CONFIG_CRYPTO_ECB) += ecb.o
70obj-$(CONFIG_CRYPTO_CBC) += cbc.o
David Howells91652be2006-12-16 12:09:02 +110071obj-$(CONFIG_CRYPTO_PCBC) += pcbc.o
Kevin Coffman76cb9522008-03-24 21:26:16 +080072obj-$(CONFIG_CRYPTO_CTS) += cts.o
Rik Snel64470f12006-11-26 09:43:10 +110073obj-$(CONFIG_CRYPTO_LRW) += lrw.o
Rik Snelf19f5112007-09-19 20:23:13 +080074obj-$(CONFIG_CRYPTO_XTS) += xts.o
Joy Latten23e353c2007-10-23 08:50:32 +080075obj-$(CONFIG_CRYPTO_CTR) += ctr.o
Stephan Mueller1c49678e2015-09-21 20:58:56 +020076obj-$(CONFIG_CRYPTO_KEYWRAP) += keywrap.o
Mikko Herranen28db8e32007-11-26 22:24:11 +080077obj-$(CONFIG_CRYPTO_GCM) += gcm.o
Joy Latten4a49b492007-12-12 20:25:13 +080078obj-$(CONFIG_CRYPTO_CCM) += ccm.o
Martin Willi71ebc4d2015-06-01 13:44:00 +020079obj-$(CONFIG_CRYPTO_CHACHA20POLY1305) += chacha20poly1305.o
Steffen Klassert5068c7a2010-01-07 15:57:19 +110080obj-$(CONFIG_CRYPTO_PCRYPT) += pcrypt.o
Herbert Xu124b53d2007-04-16 20:49:20 +100081obj-$(CONFIG_CRYPTO_CRYPTD) += cryptd.o
Tim Chen1e65b812014-07-31 10:29:51 -070082obj-$(CONFIG_CRYPTO_MCRYPTD) += mcryptd.o
Sebastian Siewiorc5a511f2007-10-05 16:42:03 +080083obj-$(CONFIG_CRYPTO_DES) += des_generic.o
David Howells90831632006-12-16 12:13:14 +110084obj-$(CONFIG_CRYPTO_FCRYPT) += fcrypt.o
Jussi Kivilinna3f2a5d22011-09-02 01:45:12 +030085obj-$(CONFIG_CRYPTO_BLOWFISH) += blowfish_generic.o
Jussi Kivilinna52ba8672011-09-02 01:45:07 +030086obj-$(CONFIG_CRYPTO_BLOWFISH_COMMON) += blowfish_common.o
Joachim Fritschi5b04fc12010-06-03 21:02:51 +100087obj-$(CONFIG_CRYPTO_TWOFISH) += twofish_generic.o
Joachim Fritschi2729bb42006-06-20 20:37:23 +100088obj-$(CONFIG_CRYPTO_TWOFISH_COMMON) += twofish_common.o
Jussi Kivilinnadd6eec22011-10-18 00:03:13 +030089obj-$(CONFIG_CRYPTO_SERPENT) += serpent_generic.o
Sebastian Siewiorf8246af2007-10-05 16:52:01 +080090obj-$(CONFIG_CRYPTO_AES) += aes_generic.o
Jussi Kivilinna075e39d2012-03-05 20:26:32 +020091obj-$(CONFIG_CRYPTO_CAMELLIA) += camellia_generic.o
Jussi Kivilinna044ab522012-11-13 11:43:14 +020092obj-$(CONFIG_CRYPTO_CAST_COMMON) += cast_common.o
Johannes Goetzfried270b0c62012-07-11 19:37:04 +020093obj-$(CONFIG_CRYPTO_CAST5) += cast5_generic.o
Johannes Goetzfried2b49b902012-07-11 19:38:12 +020094obj-$(CONFIG_CRYPTO_CAST6) += cast6_generic.o
Linus Torvalds1da177e2005-04-16 15:20:36 -070095obj-$(CONFIG_CRYPTO_ARC4) += arc4.o
96obj-$(CONFIG_CRYPTO_TEA) += tea.o
97obj-$(CONFIG_CRYPTO_KHAZAD) += khazad.o
98obj-$(CONFIG_CRYPTO_ANUBIS) += anubis.o
Hye-Shik Change2ee95b2007-08-21 20:01:03 +080099obj-$(CONFIG_CRYPTO_SEED) += seed.o
Tan Swee Heng2407d602007-11-23 19:45:00 +0800100obj-$(CONFIG_CRYPTO_SALSA20) += salsa20_generic.o
Martin Willic08d0e62015-06-01 13:43:56 +0200101obj-$(CONFIG_CRYPTO_CHACHA20) += chacha20_generic.o
Martin Willif979e012015-06-01 13:43:58 +0200102obj-$(CONFIG_CRYPTO_POLY1305) += poly1305_generic.o
Linus Torvalds1da177e2005-04-16 15:20:36 -0700103obj-$(CONFIG_CRYPTO_DEFLATE) += deflate.o
104obj-$(CONFIG_CRYPTO_MICHAEL_MIC) += michael_mic.o
Tim Chen06e5a1f2014-01-23 03:25:47 -0800105obj-$(CONFIG_CRYPTO_CRC32C) += crc32c_generic.o
Herbert Xua7c58ac2016-01-29 18:20:17 +0800106obj-$(CONFIG_CRYPTO_CRC32) += crc32_generic.o
Herbert Xu26052f92013-09-12 15:31:34 +1000107obj-$(CONFIG_CRYPTO_CRCT10DIF) += crct10dif_common.o crct10dif_generic.o
Steffen Klasserta5079d02011-03-08 00:04:58 +0000108obj-$(CONFIG_CRYPTO_AUTHENC) += authenc.o authencesn.o
Zoltan Sogor0b77abb2007-12-07 16:53:23 +0800109obj-$(CONFIG_CRYPTO_LZO) += lzo.o
Chanho Min0ea85302013-07-08 16:01:51 -0700110obj-$(CONFIG_CRYPTO_LZ4) += lz4.o
111obj-$(CONFIG_CRYPTO_LZ4HC) += lz4hc.o
Seth Jennings35a1fc12012-07-19 09:42:41 -0500112obj-$(CONFIG_CRYPTO_842) += 842.o
Herbert Xu6a0fcbb2008-12-10 23:29:44 +1100113obj-$(CONFIG_CRYPTO_RNG2) += rng.o
Neil Horman17f0f4a2008-08-14 22:15:52 +1000114obj-$(CONFIG_CRYPTO_ANSI_CPRNG) += ansi_cprng.o
Herbert Xuf2c89a12014-07-04 22:15:08 +0800115obj-$(CONFIG_CRYPTO_DRBG) += drbg.o
Stephan Muellerdfc9fa92015-06-23 16:18:54 +0200116obj-$(CONFIG_CRYPTO_JITTERENTROPY) += jitterentropy_rng.o
117CFLAGS_jitterentropy.o = -O0
118jitterentropy_rng-y := jitterentropy.o jitterentropy-kcapi.o
Linus Torvalds1da177e2005-04-16 15:20:36 -0700119obj-$(CONFIG_CRYPTO_TEST) += tcrypt.o
Huang Ying2cdc6892009-08-06 15:32:38 +1000120obj-$(CONFIG_CRYPTO_GHASH) += ghash-generic.o
Herbert Xu03c8efc2010-10-19 21:12:39 +0800121obj-$(CONFIG_CRYPTO_USER_API) += af_alg.o
Herbert Xufe869cd2010-10-19 21:23:00 +0800122obj-$(CONFIG_CRYPTO_USER_API_HASH) += algif_hash.o
Herbert Xu8ff59092010-10-19 21:31:55 +0800123obj-$(CONFIG_CRYPTO_USER_API_SKCIPHER) += algif_skcipher.o
Stephan Mueller2f3755382014-12-25 23:00:39 +0100124obj-$(CONFIG_CRYPTO_USER_API_RNG) += algif_rng.o
Stephan Mueller44cac4f2015-02-28 20:50:40 +0100125obj-$(CONFIG_CRYPTO_USER_API_AEAD) += algif_aead.o
Dan Williams685784a2007-07-09 11:56:42 -0700126
127#
128# generic algorithms and the async_tx api
129#
130obj-$(CONFIG_XOR_BLOCKS) += xor.o
Dan Williams9bc89cd2007-01-02 11:10:44 -0700131obj-$(CONFIG_ASYNC_CORE) += async_tx/
David Howells964f3b32012-09-13 15:17:21 +0100132obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys/
Dmitry Kasatkinee089972013-05-06 15:40:01 +0300133obj-$(CONFIG_CRYPTO_HASH_INFO) += hash_info.o
Ard Biesheuvela62b01c2013-09-20 09:55:40 +0200134obj-$(CONFIG_CRYPTO_ABLK_HELPER) += ablk_helper.o