]>
Commit | Line | Data |
---|---|---|
b2441318 | 1 | # SPDX-License-Identifier: GPL-2.0 |
1da177e4 LT |
2 | # |
3 | # Cryptographic API | |
4 | # | |
5 | ||
c3715cb9 | 6 | obj-$(CONFIG_CRYPTO) += crypto.o |
6bf37e5a | 7 | crypto-y := api.o cipher.o compress.o memneq.o |
1da177e4 | 8 | |
25c38d3f HY |
9 | obj-$(CONFIG_CRYPTO_WORKQUEUE) += crypto_wq.o |
10 | ||
735d37b5 | 11 | obj-$(CONFIG_CRYPTO_ENGINE) += crypto_engine.o |
ccb778e1 NH |
12 | obj-$(CONFIG_CRYPTO_FIPS) += fips.o |
13 | ||
cce9e06d | 14 | crypto_algapi-$(CONFIG_PROC_FS) += proc.o |
21ea28ab | 15 | crypto_algapi-y := algapi.o scatterwalk.o $(crypto_algapi-y) |
6a0fcbb4 | 16 | obj-$(CONFIG_CRYPTO_ALGAPI2) += crypto_algapi.o |
1da177e4 | 17 | |
6a0fcbb4 | 18 | obj-$(CONFIG_CRYPTO_AEAD2) += aead.o |
653ebd9c | 19 | |
21ea28ab TD |
20 | crypto_blkcipher-y := ablkcipher.o |
21 | crypto_blkcipher-y += blkcipher.o | |
7a7ffe65 | 22 | crypto_blkcipher-y += skcipher.o |
6a0fcbb4 | 23 | obj-$(CONFIG_CRYPTO_BLKCIPHER2) += crypto_blkcipher.o |
0a270321 | 24 | obj-$(CONFIG_CRYPTO_SEQIV) += seqiv.o |
a10f554f | 25 | obj-$(CONFIG_CRYPTO_ECHAINIV) += echainiv.o |
5cde0af2 | 26 | |
21ea28ab TD |
27 | crypto_hash-y += ahash.o |
28 | crypto_hash-y += shash.o | |
6a0fcbb4 | 29 | obj-$(CONFIG_CRYPTO_HASH2) += crypto_hash.o |
055bcee3 | 30 | |
3c339ab8 | 31 | obj-$(CONFIG_CRYPTO_AKCIPHER2) += akcipher.o |
4e5f2c40 | 32 | obj-$(CONFIG_CRYPTO_KPP2) += kpp.o |
a1d2f095 | 33 | |
802c7f1c SB |
34 | dh_generic-y := dh.o |
35 | dh_generic-y += dh_helper.o | |
36 | obj-$(CONFIG_CRYPTO_DH) += dh_generic.o | |
37 | ||
4fa8bc94 MY |
38 | $(obj)/rsapubkey.asn1.o: $(obj)/rsapubkey.asn1.c $(obj)/rsapubkey.asn1.h |
39 | $(obj)/rsaprivkey.asn1.o: $(obj)/rsaprivkey.asn1.c $(obj)/rsaprivkey.asn1.h | |
40 | $(obj)/rsa_helper.o: $(obj)/rsapubkey.asn1.h $(obj)/rsaprivkey.asn1.h | |
cfc2bb32 | 41 | |
4fa8bc94 MY |
42 | rsa_generic-y := rsapubkey.asn1.o |
43 | rsa_generic-y += rsaprivkey.asn1.o | |
cfc2bb32 TS |
44 | rsa_generic-y += rsa.o |
45 | rsa_generic-y += rsa_helper.o | |
3d5b1ecd | 46 | rsa_generic-y += rsa-pkcs1pad.o |
cfc2bb32 TS |
47 | obj-$(CONFIG_CRYPTO_RSA) += rsa_generic.o |
48 | ||
6c0f4000 GC |
49 | crypto_acompress-y := acompress.o |
50 | crypto_acompress-y += scompress.o | |
51 | obj-$(CONFIG_CRYPTO_ACOMP2) += crypto_acompress.o | |
2ebda74f | 52 | |
21ea28ab | 53 | cryptomgr-y := algboss.o testmgr.o |
da7f033d | 54 | |
6a0fcbb4 | 55 | obj-$(CONFIG_CRYPTO_MANAGER2) += cryptomgr.o |
a38f7907 | 56 | obj-$(CONFIG_CRYPTO_USER) += crypto_user.o |
cac5818c | 57 | crypto_user-y := crypto_user_base.o crypto_user_stat.o |
93b5e86a | 58 | obj-$(CONFIG_CRYPTO_CMAC) += cmac.o |
1da177e4 | 59 | obj-$(CONFIG_CRYPTO_HMAC) += hmac.o |
f1939f7c | 60 | obj-$(CONFIG_CRYPTO_VMAC) += vmac.o |
333b0d7e | 61 | obj-$(CONFIG_CRYPTO_XCBC) += xcbc.o |
a26bcb04 | 62 | obj-$(CONFIG_CRYPTO_NULL2) += crypto_null.o |
1da177e4 LT |
63 | obj-$(CONFIG_CRYPTO_MD4) += md4.o |
64 | obj-$(CONFIG_CRYPTO_MD5) += md5.o | |
c6580eb8 AKR |
65 | obj-$(CONFIG_CRYPTO_RMD128) += rmd128.o |
66 | obj-$(CONFIG_CRYPTO_RMD160) += rmd160.o | |
c555c28d AKR |
67 | obj-$(CONFIG_CRYPTO_RMD256) += rmd256.o |
68 | obj-$(CONFIG_CRYPTO_RMD320) += rmd320.o | |
ad5d2789 SS |
69 | obj-$(CONFIG_CRYPTO_SHA1) += sha1_generic.o |
70 | obj-$(CONFIG_CRYPTO_SHA256) += sha256_generic.o | |
78f8b3a2 | 71 | obj-$(CONFIG_CRYPTO_SHA512) += sha512_generic.o |
53964b9e | 72 | obj-$(CONFIG_CRYPTO_SHA3) += sha3_generic.o |
4f0fc160 | 73 | obj-$(CONFIG_CRYPTO_SM3) += sm3_generic.o |
1da177e4 | 74 | obj-$(CONFIG_CRYPTO_WP512) += wp512.o |
7d6e9105 | 75 | CFLAGS_wp512.o := $(call cc-option,-fno-schedule-insns) # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79149 |
1da177e4 | 76 | obj-$(CONFIG_CRYPTO_TGR192) += tgr192.o |
c494e070 | 77 | obj-$(CONFIG_CRYPTO_GF128MUL) += gf128mul.o |
db131ef9 HX |
78 | obj-$(CONFIG_CRYPTO_ECB) += ecb.o |
79 | obj-$(CONFIG_CRYPTO_CBC) += cbc.o | |
a7d85e06 | 80 | obj-$(CONFIG_CRYPTO_CFB) += cfb.o |
91652be5 | 81 | obj-$(CONFIG_CRYPTO_PCBC) += pcbc.o |
76cb9521 | 82 | obj-$(CONFIG_CRYPTO_CTS) += cts.o |
64470f1b | 83 | obj-$(CONFIG_CRYPTO_LRW) += lrw.o |
f19f5111 | 84 | obj-$(CONFIG_CRYPTO_XTS) += xts.o |
23e353c8 | 85 | obj-$(CONFIG_CRYPTO_CTR) += ctr.o |
1c49678e | 86 | obj-$(CONFIG_CRYPTO_KEYWRAP) += keywrap.o |
28db8e3e | 87 | obj-$(CONFIG_CRYPTO_GCM) += gcm.o |
4a49b499 | 88 | obj-$(CONFIG_CRYPTO_CCM) += ccm.o |
71ebc4d1 | 89 | obj-$(CONFIG_CRYPTO_CHACHA20POLY1305) += chacha20poly1305.o |
f606a88e OM |
90 | obj-$(CONFIG_CRYPTO_AEGIS128) += aegis128.o |
91 | obj-$(CONFIG_CRYPTO_AEGIS128L) += aegis128l.o | |
92 | obj-$(CONFIG_CRYPTO_AEGIS256) += aegis256.o | |
396be41f OM |
93 | obj-$(CONFIG_CRYPTO_MORUS640) += morus640.o |
94 | obj-$(CONFIG_CRYPTO_MORUS1280) += morus1280.o | |
5068c7a8 | 95 | obj-$(CONFIG_CRYPTO_PCRYPT) += pcrypt.o |
124b53d0 | 96 | obj-$(CONFIG_CRYPTO_CRYPTD) += cryptd.o |
c5a511f1 | 97 | obj-$(CONFIG_CRYPTO_DES) += des_generic.o |
90831639 | 98 | obj-$(CONFIG_CRYPTO_FCRYPT) += fcrypt.o |
3f2a5d2d | 99 | obj-$(CONFIG_CRYPTO_BLOWFISH) += blowfish_generic.o |
52ba867c | 100 | obj-$(CONFIG_CRYPTO_BLOWFISH_COMMON) += blowfish_common.o |
5b04fc17 | 101 | obj-$(CONFIG_CRYPTO_TWOFISH) += twofish_generic.o |
2729bb42 | 102 | obj-$(CONFIG_CRYPTO_TWOFISH_COMMON) += twofish_common.o |
dd6eec24 | 103 | obj-$(CONFIG_CRYPTO_SERPENT) += serpent_generic.o |
7d6e9105 | 104 | CFLAGS_serpent_generic.o := $(call cc-option,-fsched-pressure) # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79149 |
f8246af0 | 105 | obj-$(CONFIG_CRYPTO_AES) += aes_generic.o |
6e36719f | 106 | CFLAGS_aes_generic.o := $(call cc-option,-fno-code-hoisting) # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83356 |
747c8ce4 | 107 | obj-$(CONFIG_CRYPTO_SM4) += sm4_generic.o |
b5e0b032 | 108 | obj-$(CONFIG_CRYPTO_AES_TI) += aes_ti.o |
075e39df | 109 | obj-$(CONFIG_CRYPTO_CAMELLIA) += camellia_generic.o |
044ab525 | 110 | obj-$(CONFIG_CRYPTO_CAST_COMMON) += cast_common.o |
270b0c6b | 111 | obj-$(CONFIG_CRYPTO_CAST5) += cast5_generic.o |
2b49b906 | 112 | obj-$(CONFIG_CRYPTO_CAST6) += cast6_generic.o |
1da177e4 LT |
113 | obj-$(CONFIG_CRYPTO_ARC4) += arc4.o |
114 | obj-$(CONFIG_CRYPTO_TEA) += tea.o | |
115 | obj-$(CONFIG_CRYPTO_KHAZAD) += khazad.o | |
116 | obj-$(CONFIG_CRYPTO_ANUBIS) += anubis.o | |
e2ee95b8 | 117 | obj-$(CONFIG_CRYPTO_SEED) += seed.o |
2407d608 | 118 | obj-$(CONFIG_CRYPTO_SALSA20) += salsa20_generic.o |
c08d0e64 | 119 | obj-$(CONFIG_CRYPTO_CHACHA20) += chacha20_generic.o |
f979e014 | 120 | obj-$(CONFIG_CRYPTO_POLY1305) += poly1305_generic.o |
1da177e4 LT |
121 | obj-$(CONFIG_CRYPTO_DEFLATE) += deflate.o |
122 | obj-$(CONFIG_CRYPTO_MICHAEL_MIC) += michael_mic.o | |
06e5a1f2 | 123 | obj-$(CONFIG_CRYPTO_CRC32C) += crc32c_generic.o |
a7c58ac0 | 124 | obj-$(CONFIG_CRYPTO_CRC32) += crc32_generic.o |
26052f9b | 125 | obj-$(CONFIG_CRYPTO_CRCT10DIF) += crct10dif_common.o crct10dif_generic.o |
a5079d08 | 126 | obj-$(CONFIG_CRYPTO_AUTHENC) += authenc.o authencesn.o |
0b77abb3 | 127 | obj-$(CONFIG_CRYPTO_LZO) += lzo.o |
0ea8530d CM |
128 | obj-$(CONFIG_CRYPTO_LZ4) += lz4.o |
129 | obj-$(CONFIG_CRYPTO_LZ4HC) += lz4hc.o | |
35a1fc18 | 130 | obj-$(CONFIG_CRYPTO_842) += 842.o |
6a0fcbb4 | 131 | obj-$(CONFIG_CRYPTO_RNG2) += rng.o |
17f0f4a4 | 132 | obj-$(CONFIG_CRYPTO_ANSI_CPRNG) += ansi_cprng.o |
f2c89a10 | 133 | obj-$(CONFIG_CRYPTO_DRBG) += drbg.o |
dfc9fa91 SM |
134 | obj-$(CONFIG_CRYPTO_JITTERENTROPY) += jitterentropy_rng.o |
135 | CFLAGS_jitterentropy.o = -O0 | |
136 | jitterentropy_rng-y := jitterentropy.o jitterentropy-kcapi.o | |
1da177e4 | 137 | obj-$(CONFIG_CRYPTO_TEST) += tcrypt.o |
2cdc6899 | 138 | obj-$(CONFIG_CRYPTO_GHASH) += ghash-generic.o |
03c8efc1 | 139 | obj-$(CONFIG_CRYPTO_USER_API) += af_alg.o |
fe869cdb | 140 | obj-$(CONFIG_CRYPTO_USER_API_HASH) += algif_hash.o |
8ff59090 | 141 | obj-$(CONFIG_CRYPTO_USER_API_SKCIPHER) += algif_skcipher.o |
2f375538 | 142 | obj-$(CONFIG_CRYPTO_USER_API_RNG) += algif_rng.o |
44cac4fc | 143 | obj-$(CONFIG_CRYPTO_USER_API_AEAD) += algif_aead.o |
d28fc3db | 144 | obj-$(CONFIG_CRYPTO_ZSTD) += zstd.o |
685784aa | 145 | |
6755fd26 TDA |
146 | ecdh_generic-y := ecc.o |
147 | ecdh_generic-y += ecdh.o | |
148 | ecdh_generic-y += ecdh_helper.o | |
149 | obj-$(CONFIG_CRYPTO_ECDH) += ecdh_generic.o | |
150 | ||
685784aa DW |
151 | # |
152 | # generic algorithms and the async_tx api | |
153 | # | |
154 | obj-$(CONFIG_XOR_BLOCKS) += xor.o | |
9bc89cd8 | 155 | obj-$(CONFIG_ASYNC_CORE) += async_tx/ |
964f3b3b | 156 | obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys/ |
ee08997f | 157 | obj-$(CONFIG_CRYPTO_HASH_INFO) += hash_info.o |
266d0516 HX |
158 | crypto_simd-y := simd.o |
159 | obj-$(CONFIG_CRYPTO_SIMD) += crypto_simd.o |