Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | # |
| 3 | # Cryptographic API |
| 4 | # |
| 5 | |
Sebastian Siewior | c3715cb9 | 2008-03-30 16:36:09 +0800 | [diff] [blame] | 6 | obj-$(CONFIG_CRYPTO) += crypto.o |
James Yonan | 6bf37e5 | 2013-09-26 02:20:39 -0600 | [diff] [blame] | 7 | crypto-y := api.o cipher.o compress.o memneq.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | |
Baolin Wang | 735d37b | 2016-01-26 20:25:39 +0800 | [diff] [blame] | 9 | obj-$(CONFIG_CRYPTO_ENGINE) += crypto_engine.o |
Neil Horman | ccb778e | 2008-08-05 14:13:08 +0800 | [diff] [blame] | 10 | obj-$(CONFIG_CRYPTO_FIPS) += fips.o |
| 11 | |
Herbert Xu | cce9e06 | 2006-08-21 21:08:13 +1000 | [diff] [blame] | 12 | crypto_algapi-$(CONFIG_PROC_FS) += proc.o |
Tracey Dent | 21ea28a | 2010-11-27 16:32:57 +0800 | [diff] [blame] | 13 | crypto_algapi-y := algapi.o scatterwalk.o $(crypto_algapi-y) |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 14 | obj-$(CONFIG_CRYPTO_ALGAPI2) += crypto_algapi.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 16 | obj-$(CONFIG_CRYPTO_AEAD2) += aead.o |
Herbert Xu | 20cc01b | 2019-11-08 18:41:58 +0800 | [diff] [blame] | 17 | obj-$(CONFIG_CRYPTO_AEAD2) += geniv.o |
Herbert Xu | 653ebd9c | 2007-11-27 19:48:27 +0800 | [diff] [blame] | 18 | |
Ard Biesheuvel | d63007e | 2019-11-09 18:09:53 +0100 | [diff] [blame] | 19 | obj-$(CONFIG_CRYPTO_SKCIPHER2) += skcipher.o |
Herbert Xu | 0a27032 | 2007-11-30 21:38:37 +1100 | [diff] [blame] | 20 | obj-$(CONFIG_CRYPTO_SEQIV) += seqiv.o |
Herbert Xu | a10f554 | 2015-05-21 15:11:15 +0800 | [diff] [blame] | 21 | obj-$(CONFIG_CRYPTO_ECHAINIV) += echainiv.o |
Herbert Xu | 5cde0af | 2006-08-22 00:07:53 +1000 | [diff] [blame] | 22 | |
Tracey Dent | 21ea28a | 2010-11-27 16:32:57 +0800 | [diff] [blame] | 23 | crypto_hash-y += ahash.o |
| 24 | crypto_hash-y += shash.o |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 25 | obj-$(CONFIG_CRYPTO_HASH2) += crypto_hash.o |
Herbert Xu | 055bcee | 2006-08-19 22:24:23 +1000 | [diff] [blame] | 26 | |
Tadeusz Struk | 3c339ab | 2015-06-16 10:30:55 -0700 | [diff] [blame] | 27 | obj-$(CONFIG_CRYPTO_AKCIPHER2) += akcipher.o |
Salvatore Benedetto | 4e5f2c4 | 2016-06-22 17:49:13 +0100 | [diff] [blame] | 28 | obj-$(CONFIG_CRYPTO_KPP2) += kpp.o |
Geert Uytterhoeven | a1d2f09 | 2009-03-04 15:05:33 +0800 | [diff] [blame] | 29 | |
Salvatore Benedetto | 802c7f1 | 2016-06-22 17:49:14 +0100 | [diff] [blame] | 30 | dh_generic-y := dh.o |
| 31 | dh_generic-y += dh_helper.o |
| 32 | obj-$(CONFIG_CRYPTO_DH) += dh_generic.o |
| 33 | |
Masahiro Yamada | 4fa8bc9 | 2018-03-23 22:04:37 +0900 | [diff] [blame] | 34 | $(obj)/rsapubkey.asn1.o: $(obj)/rsapubkey.asn1.c $(obj)/rsapubkey.asn1.h |
| 35 | $(obj)/rsaprivkey.asn1.o: $(obj)/rsaprivkey.asn1.c $(obj)/rsaprivkey.asn1.h |
| 36 | $(obj)/rsa_helper.o: $(obj)/rsapubkey.asn1.h $(obj)/rsaprivkey.asn1.h |
Tadeusz Struk | cfc2bb3 | 2015-06-16 10:31:01 -0700 | [diff] [blame] | 37 | |
Masahiro Yamada | 4fa8bc9 | 2018-03-23 22:04:37 +0900 | [diff] [blame] | 38 | rsa_generic-y := rsapubkey.asn1.o |
| 39 | rsa_generic-y += rsaprivkey.asn1.o |
Tadeusz Struk | cfc2bb3 | 2015-06-16 10:31:01 -0700 | [diff] [blame] | 40 | rsa_generic-y += rsa.o |
| 41 | rsa_generic-y += rsa_helper.o |
Andrzej Zaborowski | 3d5b1ec | 2015-12-05 17:09:34 +0100 | [diff] [blame] | 42 | rsa_generic-y += rsa-pkcs1pad.o |
Tadeusz Struk | cfc2bb3 | 2015-06-16 10:31:01 -0700 | [diff] [blame] | 43 | obj-$(CONFIG_CRYPTO_RSA) += rsa_generic.o |
| 44 | |
Tianjia Zhang | ea7ecb6 | 2020-09-21 00:20:57 +0800 | [diff] [blame] | 45 | $(obj)/sm2signature.asn1.o: $(obj)/sm2signature.asn1.c $(obj)/sm2signature.asn1.h |
| 46 | $(obj)/sm2.o: $(obj)/sm2signature.asn1.h |
| 47 | |
| 48 | sm2_generic-y += sm2signature.asn1.o |
| 49 | sm2_generic-y += sm2.o |
| 50 | |
| 51 | obj-$(CONFIG_CRYPTO_SM2) += sm2_generic.o |
| 52 | |
Stefan Berger | 4e66029 | 2021-03-16 17:07:32 -0400 | [diff] [blame] | 53 | $(obj)/ecdsasignature.asn1.o: $(obj)/ecdsasignature.asn1.c $(obj)/ecdsasignature.asn1.h |
| 54 | $(obj)/ecdsa.o: $(obj)/ecdsasignature.asn1.h |
| 55 | ecdsa_generic-y += ecdsa.o |
| 56 | ecdsa_generic-y += ecdsasignature.asn1.o |
| 57 | obj-$(CONFIG_CRYPTO_ECDSA) += ecdsa_generic.o |
| 58 | |
Giovanni Cabiddu | 6c0f400 | 2016-10-26 10:56:45 +0100 | [diff] [blame] | 59 | crypto_acompress-y := acompress.o |
| 60 | crypto_acompress-y += scompress.o |
| 61 | obj-$(CONFIG_CRYPTO_ACOMP2) += crypto_acompress.o |
Giovanni Cabiddu | 2ebda74 | 2016-10-21 13:19:47 +0100 | [diff] [blame] | 62 | |
Tracey Dent | 21ea28a | 2010-11-27 16:32:57 +0800 | [diff] [blame] | 63 | cryptomgr-y := algboss.o testmgr.o |
Herbert Xu | da7f033 | 2008-07-31 17:08:25 +0800 | [diff] [blame] | 64 | |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 65 | obj-$(CONFIG_CRYPTO_MANAGER2) += cryptomgr.o |
Steffen Klassert | a38f790 | 2011-09-27 07:23:50 +0200 | [diff] [blame] | 66 | obj-$(CONFIG_CRYPTO_USER) += crypto_user.o |
Corentin Labbe | 2ced260 | 2018-11-29 14:42:16 +0000 | [diff] [blame] | 67 | crypto_user-y := crypto_user_base.o |
| 68 | crypto_user-$(CONFIG_CRYPTO_STATS) += crypto_user_stat.o |
Jussi Kivilinna | 93b5e86 | 2013-04-08 10:48:44 +0300 | [diff] [blame] | 69 | obj-$(CONFIG_CRYPTO_CMAC) += cmac.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 70 | obj-$(CONFIG_CRYPTO_HMAC) += hmac.o |
Shane Wang | f1939f7 | 2009-09-02 20:05:22 +1000 | [diff] [blame] | 71 | obj-$(CONFIG_CRYPTO_VMAC) += vmac.o |
Kazunori MIYAZAWA | 333b0d7 | 2006-10-28 13:15:24 +1000 | [diff] [blame] | 72 | obj-$(CONFIG_CRYPTO_XCBC) += xcbc.o |
Herbert Xu | a26bcb0 | 2015-08-17 17:45:27 +0800 | [diff] [blame] | 73 | obj-$(CONFIG_CRYPTO_NULL2) += crypto_null.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 74 | obj-$(CONFIG_CRYPTO_MD4) += md4.o |
| 75 | obj-$(CONFIG_CRYPTO_MD5) += md5.o |
Adrian-Ken Rueegsegger | c6580eb | 2008-05-07 22:14:10 +0800 | [diff] [blame] | 76 | obj-$(CONFIG_CRYPTO_RMD160) += rmd160.o |
Sebastian Siewior | ad5d278 | 2007-10-08 11:45:10 +0800 | [diff] [blame] | 77 | obj-$(CONFIG_CRYPTO_SHA1) += sha1_generic.o |
| 78 | obj-$(CONFIG_CRYPTO_SHA256) += sha256_generic.o |
Jan Glauber | 78f8b3a | 2008-03-06 19:55:38 +0800 | [diff] [blame] | 79 | obj-$(CONFIG_CRYPTO_SHA512) += sha512_generic.o |
Jeff Garzik | 53964b9 | 2016-06-17 10:30:35 +0530 | [diff] [blame] | 80 | obj-$(CONFIG_CRYPTO_SHA3) += sha3_generic.o |
Gilad Ben-Yossef | 4f0fc16 | 2017-08-21 13:51:28 +0300 | [diff] [blame] | 81 | obj-$(CONFIG_CRYPTO_SM3) += sm3_generic.o |
Vitaly Chikunov | fe18957 | 2018-11-07 00:00:01 +0300 | [diff] [blame] | 82 | obj-$(CONFIG_CRYPTO_STREEBOG) += streebog_generic.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 83 | obj-$(CONFIG_CRYPTO_WP512) += wp512.o |
Arnd Bergmann | 7d6e910 | 2017-02-03 23:33:23 +0100 | [diff] [blame] | 84 | CFLAGS_wp512.o := $(call cc-option,-fno-schedule-insns) # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79149 |
David Sterba | 91d6893 | 2019-10-24 18:28:31 +0200 | [diff] [blame] | 85 | obj-$(CONFIG_CRYPTO_BLAKE2B) += blake2b_generic.o |
Ard Biesheuvel | 7f9b088 | 2019-11-08 13:22:30 +0100 | [diff] [blame] | 86 | obj-$(CONFIG_CRYPTO_BLAKE2S) += blake2s_generic.o |
Rik Snel | c494e07 | 2006-11-29 18:59:44 +1100 | [diff] [blame] | 87 | obj-$(CONFIG_CRYPTO_GF128MUL) += gf128mul.o |
Herbert Xu | db131ef | 2006-09-21 11:44:08 +1000 | [diff] [blame] | 88 | obj-$(CONFIG_CRYPTO_ECB) += ecb.o |
| 89 | obj-$(CONFIG_CRYPTO_CBC) += cbc.o |
James Bottomley | a7d85e0 | 2018-03-01 14:36:17 -0800 | [diff] [blame] | 90 | obj-$(CONFIG_CRYPTO_CFB) += cfb.o |
David Howells | 91652be | 2006-12-16 12:09:02 +1100 | [diff] [blame] | 91 | obj-$(CONFIG_CRYPTO_PCBC) += pcbc.o |
Kevin Coffman | 76cb952 | 2008-03-24 21:26:16 +0800 | [diff] [blame] | 92 | obj-$(CONFIG_CRYPTO_CTS) += cts.o |
Rik Snel | 64470f1 | 2006-11-26 09:43:10 +1100 | [diff] [blame] | 93 | obj-$(CONFIG_CRYPTO_LRW) += lrw.o |
Rik Snel | f19f511 | 2007-09-19 20:23:13 +0800 | [diff] [blame] | 94 | obj-$(CONFIG_CRYPTO_XTS) += xts.o |
Joy Latten | 23e353c | 2007-10-23 08:50:32 +0800 | [diff] [blame] | 95 | obj-$(CONFIG_CRYPTO_CTR) += ctr.o |
Stephan Mueller | 1c49678e | 2015-09-21 20:58:56 +0200 | [diff] [blame] | 96 | obj-$(CONFIG_CRYPTO_KEYWRAP) += keywrap.o |
Eric Biggers | 059c2a4 | 2018-11-16 17:26:31 -0800 | [diff] [blame] | 97 | obj-$(CONFIG_CRYPTO_ADIANTUM) += adiantum.o |
Eric Biggers | 26609a2 | 2018-11-16 17:26:29 -0800 | [diff] [blame] | 98 | obj-$(CONFIG_CRYPTO_NHPOLY1305) += nhpoly1305.o |
Mikko Herranen | 28db8e3 | 2007-11-26 22:24:11 +0800 | [diff] [blame] | 99 | obj-$(CONFIG_CRYPTO_GCM) += gcm.o |
Joy Latten | 4a49b49 | 2007-12-12 20:25:13 +0800 | [diff] [blame] | 100 | obj-$(CONFIG_CRYPTO_CCM) += ccm.o |
Martin Willi | 71ebc4d | 2015-06-01 13:44:00 +0200 | [diff] [blame] | 101 | obj-$(CONFIG_CRYPTO_CHACHA20POLY1305) += chacha20poly1305.o |
Ondrej Mosnacek | f606a88 | 2018-05-11 14:12:49 +0200 | [diff] [blame] | 102 | obj-$(CONFIG_CRYPTO_AEGIS128) += aegis128.o |
Ard Biesheuvel | cf3d41a | 2019-08-12 01:59:10 +0300 | [diff] [blame] | 103 | aegis128-y := aegis128-core.o |
Ard Biesheuvel | a439763 | 2019-08-12 01:59:11 +0300 | [diff] [blame] | 104 | |
| 105 | ifeq ($(ARCH),arm) |
Ard Biesheuvel | 2eb2d19 | 2019-09-13 19:36:18 +0100 | [diff] [blame] | 106 | CFLAGS_aegis128-neon-inner.o += -ffreestanding -march=armv8-a -mfloat-abi=softfp |
Ard Biesheuvel | a439763 | 2019-08-12 01:59:11 +0300 | [diff] [blame] | 107 | CFLAGS_aegis128-neon-inner.o += -mfpu=crypto-neon-fp-armv8 |
| 108 | aegis128-$(CONFIG_CRYPTO_AEGIS128_SIMD) += aegis128-neon.o aegis128-neon-inner.o |
| 109 | endif |
| 110 | ifeq ($(ARCH),arm64) |
Ard Biesheuvel | 1984296 | 2019-08-12 01:59:12 +0300 | [diff] [blame] | 111 | aegis128-cflags-y := -ffreestanding -mcpu=generic+crypto |
| 112 | aegis128-cflags-$(CONFIG_CC_IS_GCC) += -ffixed-q16 -ffixed-q17 -ffixed-q18 \ |
| 113 | -ffixed-q19 -ffixed-q20 -ffixed-q21 \ |
| 114 | -ffixed-q22 -ffixed-q23 -ffixed-q24 \ |
| 115 | -ffixed-q25 -ffixed-q26 -ffixed-q27 \ |
| 116 | -ffixed-q28 -ffixed-q29 -ffixed-q30 \ |
| 117 | -ffixed-q31 |
| 118 | CFLAGS_aegis128-neon-inner.o += $(aegis128-cflags-y) |
Ard Biesheuvel | a439763 | 2019-08-12 01:59:11 +0300 | [diff] [blame] | 119 | CFLAGS_REMOVE_aegis128-neon-inner.o += -mgeneral-regs-only |
| 120 | aegis128-$(CONFIG_CRYPTO_AEGIS128_SIMD) += aegis128-neon.o aegis128-neon-inner.o |
| 121 | endif |
Alexey Dobriyan | 04e85bb | 2021-08-02 23:43:15 +0300 | [diff] [blame] | 122 | # Enable <arm_neon.h> |
| 123 | CFLAGS_aegis128-neon-inner.o += -isystem $(shell $(CC) -print-file-name=include) |
Ard Biesheuvel | a439763 | 2019-08-12 01:59:11 +0300 | [diff] [blame] | 124 | |
Steffen Klassert | 5068c7a | 2010-01-07 15:57:19 +1100 | [diff] [blame] | 125 | obj-$(CONFIG_CRYPTO_PCRYPT) += pcrypt.o |
Herbert Xu | 124b53d | 2007-04-16 20:49:20 +1000 | [diff] [blame] | 126 | obj-$(CONFIG_CRYPTO_CRYPTD) += cryptd.o |
Sebastian Siewior | c5a511f | 2007-10-05 16:42:03 +0800 | [diff] [blame] | 127 | obj-$(CONFIG_CRYPTO_DES) += des_generic.o |
David Howells | 9083163 | 2006-12-16 12:13:14 +1100 | [diff] [blame] | 128 | obj-$(CONFIG_CRYPTO_FCRYPT) += fcrypt.o |
Jussi Kivilinna | 3f2a5d2 | 2011-09-02 01:45:12 +0300 | [diff] [blame] | 129 | obj-$(CONFIG_CRYPTO_BLOWFISH) += blowfish_generic.o |
Jussi Kivilinna | 52ba867 | 2011-09-02 01:45:07 +0300 | [diff] [blame] | 130 | obj-$(CONFIG_CRYPTO_BLOWFISH_COMMON) += blowfish_common.o |
Joachim Fritschi | 5b04fc1 | 2010-06-03 21:02:51 +1000 | [diff] [blame] | 131 | obj-$(CONFIG_CRYPTO_TWOFISH) += twofish_generic.o |
Joachim Fritschi | 2729bb4 | 2006-06-20 20:37:23 +1000 | [diff] [blame] | 132 | obj-$(CONFIG_CRYPTO_TWOFISH_COMMON) += twofish_common.o |
Jussi Kivilinna | dd6eec2 | 2011-10-18 00:03:13 +0300 | [diff] [blame] | 133 | obj-$(CONFIG_CRYPTO_SERPENT) += serpent_generic.o |
Arnd Bergmann | 7d6e910 | 2017-02-03 23:33:23 +0100 | [diff] [blame] | 134 | CFLAGS_serpent_generic.o := $(call cc-option,-fsched-pressure) # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79149 |
Sebastian Siewior | f8246af | 2007-10-05 16:52:01 +0800 | [diff] [blame] | 135 | obj-$(CONFIG_CRYPTO_AES) += aes_generic.o |
Arnd Bergmann | 6e36719 | 2018-01-15 17:07:22 +0100 | [diff] [blame] | 136 | CFLAGS_aes_generic.o := $(call cc-option,-fno-code-hoisting) # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83356 |
Gilad Ben-Yossef | 747c8ce | 2018-03-06 09:44:42 +0000 | [diff] [blame] | 137 | obj-$(CONFIG_CRYPTO_SM4) += sm4_generic.o |
Ard Biesheuvel | b5e0b03 | 2017-02-02 16:37:40 +0000 | [diff] [blame] | 138 | obj-$(CONFIG_CRYPTO_AES_TI) += aes_ti.o |
Jussi Kivilinna | 075e39d | 2012-03-05 20:26:32 +0200 | [diff] [blame] | 139 | obj-$(CONFIG_CRYPTO_CAMELLIA) += camellia_generic.o |
Jussi Kivilinna | 044ab52 | 2012-11-13 11:43:14 +0200 | [diff] [blame] | 140 | obj-$(CONFIG_CRYPTO_CAST_COMMON) += cast_common.o |
Johannes Goetzfried | 270b0c6 | 2012-07-11 19:37:04 +0200 | [diff] [blame] | 141 | obj-$(CONFIG_CRYPTO_CAST5) += cast5_generic.o |
Johannes Goetzfried | 2b49b90 | 2012-07-11 19:38:12 +0200 | [diff] [blame] | 142 | obj-$(CONFIG_CRYPTO_CAST6) += cast6_generic.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 143 | obj-$(CONFIG_CRYPTO_ARC4) += arc4.o |
| 144 | obj-$(CONFIG_CRYPTO_TEA) += tea.o |
| 145 | obj-$(CONFIG_CRYPTO_KHAZAD) += khazad.o |
| 146 | obj-$(CONFIG_CRYPTO_ANUBIS) += anubis.o |
Hye-Shik Chang | e2ee95b | 2007-08-21 20:01:03 +0800 | [diff] [blame] | 147 | obj-$(CONFIG_CRYPTO_SEED) += seed.o |
Eric Biggers | 1ca1b91 | 2018-11-16 17:26:21 -0800 | [diff] [blame] | 148 | obj-$(CONFIG_CRYPTO_CHACHA20) += chacha_generic.o |
Martin Willi | f979e01 | 2015-06-01 13:43:58 +0200 | [diff] [blame] | 149 | obj-$(CONFIG_CRYPTO_POLY1305) += poly1305_generic.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 150 | obj-$(CONFIG_CRYPTO_DEFLATE) += deflate.o |
| 151 | obj-$(CONFIG_CRYPTO_MICHAEL_MIC) += michael_mic.o |
Tim Chen | 06e5a1f | 2014-01-23 03:25:47 -0800 | [diff] [blame] | 152 | obj-$(CONFIG_CRYPTO_CRC32C) += crc32c_generic.o |
Herbert Xu | a7c58ac | 2016-01-29 18:20:17 +0800 | [diff] [blame] | 153 | obj-$(CONFIG_CRYPTO_CRC32) += crc32_generic.o |
Herbert Xu | 26052f9 | 2013-09-12 15:31:34 +1000 | [diff] [blame] | 154 | obj-$(CONFIG_CRYPTO_CRCT10DIF) += crct10dif_common.o crct10dif_generic.o |
Steffen Klassert | a5079d0 | 2011-03-08 00:04:58 +0000 | [diff] [blame] | 155 | obj-$(CONFIG_CRYPTO_AUTHENC) += authenc.o authencesn.o |
Dave Rodgman | 45ec975 | 2019-03-07 16:30:44 -0800 | [diff] [blame] | 156 | obj-$(CONFIG_CRYPTO_LZO) += lzo.o lzo-rle.o |
Chanho Min | 0ea8530 | 2013-07-08 16:01:51 -0700 | [diff] [blame] | 157 | obj-$(CONFIG_CRYPTO_LZ4) += lz4.o |
| 158 | obj-$(CONFIG_CRYPTO_LZ4HC) += lz4hc.o |
Nikolay Borisov | 67882e7 | 2019-05-30 09:52:57 +0300 | [diff] [blame] | 159 | obj-$(CONFIG_CRYPTO_XXHASH) += xxhash_generic.o |
Seth Jennings | 35a1fc1 | 2012-07-19 09:42:41 -0500 | [diff] [blame] | 160 | obj-$(CONFIG_CRYPTO_842) += 842.o |
Herbert Xu | 6a0fcbb | 2008-12-10 23:29:44 +1100 | [diff] [blame] | 161 | obj-$(CONFIG_CRYPTO_RNG2) += rng.o |
Neil Horman | 17f0f4a | 2008-08-14 22:15:52 +1000 | [diff] [blame] | 162 | obj-$(CONFIG_CRYPTO_ANSI_CPRNG) += ansi_cprng.o |
Herbert Xu | f2c89a1 | 2014-07-04 22:15:08 +0800 | [diff] [blame] | 163 | obj-$(CONFIG_CRYPTO_DRBG) += drbg.o |
Stephan Mueller | dfc9fa9 | 2015-06-23 16:18:54 +0200 | [diff] [blame] | 164 | obj-$(CONFIG_CRYPTO_JITTERENTROPY) += jitterentropy_rng.o |
| 165 | CFLAGS_jitterentropy.o = -O0 |
Arnd Bergmann | dec0fb3 | 2019-07-24 20:51:55 +0200 | [diff] [blame] | 166 | KASAN_SANITIZE_jitterentropy.o = n |
| 167 | UBSAN_SANITIZE_jitterentropy.o = n |
Stephan Mueller | dfc9fa9 | 2015-06-23 16:18:54 +0200 | [diff] [blame] | 168 | jitterentropy_rng-y := jitterentropy.o jitterentropy-kcapi.o |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 169 | obj-$(CONFIG_CRYPTO_TEST) += tcrypt.o |
Huang Ying | 2cdc689 | 2009-08-06 15:32:38 +1000 | [diff] [blame] | 170 | obj-$(CONFIG_CRYPTO_GHASH) += ghash-generic.o |
Herbert Xu | 03c8efc | 2010-10-19 21:12:39 +0800 | [diff] [blame] | 171 | obj-$(CONFIG_CRYPTO_USER_API) += af_alg.o |
Herbert Xu | fe869cd | 2010-10-19 21:23:00 +0800 | [diff] [blame] | 172 | obj-$(CONFIG_CRYPTO_USER_API_HASH) += algif_hash.o |
Herbert Xu | 8ff5909 | 2010-10-19 21:31:55 +0800 | [diff] [blame] | 173 | obj-$(CONFIG_CRYPTO_USER_API_SKCIPHER) += algif_skcipher.o |
Stephan Mueller | 2f375538 | 2014-12-25 23:00:39 +0100 | [diff] [blame] | 174 | obj-$(CONFIG_CRYPTO_USER_API_RNG) += algif_rng.o |
Stephan Mueller | 44cac4f | 2015-02-28 20:50:40 +0100 | [diff] [blame] | 175 | obj-$(CONFIG_CRYPTO_USER_API_AEAD) += algif_aead.o |
Nick Terrell | d28fc3d | 2018-03-30 12:14:53 -0700 | [diff] [blame] | 176 | obj-$(CONFIG_CRYPTO_ZSTD) += zstd.o |
Gilad Ben-Yossef | e497c51 | 2018-09-20 14:18:39 +0100 | [diff] [blame] | 177 | obj-$(CONFIG_CRYPTO_OFB) += ofb.o |
Vitaly Chikunov | 4a2289d | 2019-04-11 18:51:19 +0300 | [diff] [blame] | 178 | obj-$(CONFIG_CRYPTO_ECC) += ecc.o |
Ard Biesheuvel | be1eb7f | 2019-08-19 17:17:33 +0300 | [diff] [blame] | 179 | obj-$(CONFIG_CRYPTO_ESSIV) += essiv.o |
Ard Biesheuvel | ee772cb | 2019-11-08 13:22:34 +0100 | [diff] [blame] | 180 | obj-$(CONFIG_CRYPTO_CURVE25519) += curve25519-generic.o |
Dan Williams | 685784a | 2007-07-09 11:56:42 -0700 | [diff] [blame] | 181 | |
Tudor-Dan Ambarus | 6755fd2 | 2017-05-30 17:52:48 +0300 | [diff] [blame] | 182 | ecdh_generic-y += ecdh.o |
| 183 | ecdh_generic-y += ecdh_helper.o |
| 184 | obj-$(CONFIG_CRYPTO_ECDH) += ecdh_generic.o |
| 185 | |
Vitaly Chikunov | 0d7a786 | 2019-04-11 18:51:20 +0300 | [diff] [blame] | 186 | $(obj)/ecrdsa_params.asn1.o: $(obj)/ecrdsa_params.asn1.c $(obj)/ecrdsa_params.asn1.h |
| 187 | $(obj)/ecrdsa_pub_key.asn1.o: $(obj)/ecrdsa_pub_key.asn1.c $(obj)/ecrdsa_pub_key.asn1.h |
| 188 | $(obj)/ecrdsa.o: $(obj)/ecrdsa_params.asn1.h $(obj)/ecrdsa_pub_key.asn1.h |
| 189 | ecrdsa_generic-y += ecrdsa.o |
| 190 | ecrdsa_generic-y += ecrdsa_params.asn1.o |
| 191 | ecrdsa_generic-y += ecrdsa_pub_key.asn1.o |
| 192 | obj-$(CONFIG_CRYPTO_ECRDSA) += ecrdsa_generic.o |
| 193 | |
Dan Williams | 685784a | 2007-07-09 11:56:42 -0700 | [diff] [blame] | 194 | # |
| 195 | # generic algorithms and the async_tx api |
| 196 | # |
| 197 | obj-$(CONFIG_XOR_BLOCKS) += xor.o |
Dan Williams | 9bc89cd | 2007-01-02 11:10:44 -0700 | [diff] [blame] | 198 | obj-$(CONFIG_ASYNC_CORE) += async_tx/ |
David Howells | 964f3b3 | 2012-09-13 15:17:21 +0100 | [diff] [blame] | 199 | obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys/ |
Dmitry Kasatkin | ee08997 | 2013-05-06 15:40:01 +0300 | [diff] [blame] | 200 | obj-$(CONFIG_CRYPTO_HASH_INFO) += hash_info.o |
Herbert Xu | 266d051 | 2016-11-22 20:08:25 +0800 | [diff] [blame] | 201 | crypto_simd-y := simd.o |
| 202 | obj-$(CONFIG_CRYPTO_SIMD) += crypto_simd.o |
Stephan Müller | 026a733 | 2021-11-19 07:55:58 +0100 | [diff] [blame] | 203 | |
| 204 | # |
| 205 | # Key derivation function |
| 206 | # |
| 207 | obj-$(CONFIG_CRYPTO_KDF800108_CTR) += kdf_sp800108.o |