Makefile 4.81 KB
Newer Older
Linus Torvalds's avatar
Linus Torvalds committed
1 2 3 4
#
# Cryptographic API
#

5
obj-$(CONFIG_CRYPTO) += crypto.o
6
crypto-y := api.o cipher.o compress.o memneq.o
Linus Torvalds's avatar
Linus Torvalds committed
7

8 9
obj-$(CONFIG_CRYPTO_WORKQUEUE) += crypto_wq.o

10
obj-$(CONFIG_CRYPTO_ENGINE) += crypto_engine.o
11 12
obj-$(CONFIG_CRYPTO_FIPS) += fips.o

13
crypto_algapi-$(CONFIG_PROC_FS) += proc.o
Tracey Dent's avatar
Tracey Dent committed
14
crypto_algapi-y := algapi.o scatterwalk.o $(crypto_algapi-y)
15
obj-$(CONFIG_CRYPTO_ALGAPI2) += crypto_algapi.o
Linus Torvalds's avatar
Linus Torvalds committed
16

17
obj-$(CONFIG_CRYPTO_AEAD2) += aead.o
18

Tracey Dent's avatar
Tracey Dent committed
19 20
crypto_blkcipher-y := ablkcipher.o
crypto_blkcipher-y += blkcipher.o
21
crypto_blkcipher-y += skcipher.o
22 23 24
obj-$(CONFIG_CRYPTO_BLKCIPHER2) += crypto_blkcipher.o
obj-$(CONFIG_CRYPTO_BLKCIPHER2) += chainiv.o
obj-$(CONFIG_CRYPTO_BLKCIPHER2) += eseqiv.o
25
obj-$(CONFIG_CRYPTO_SEQIV) += seqiv.o
26
obj-$(CONFIG_CRYPTO_ECHAINIV) += echainiv.o
27

Tracey Dent's avatar
Tracey Dent committed
28 29
crypto_hash-y += ahash.o
crypto_hash-y += shash.o
30
obj-$(CONFIG_CRYPTO_HASH2) += crypto_hash.o
31

32
obj-$(CONFIG_CRYPTO_AKCIPHER2) += akcipher.o
33

34 35 36 37
$(obj)/rsapubkey-asn1.o: $(obj)/rsapubkey-asn1.c $(obj)/rsapubkey-asn1.h
$(obj)/rsaprivkey-asn1.o: $(obj)/rsaprivkey-asn1.c $(obj)/rsaprivkey-asn1.h
clean-files += rsapubkey-asn1.c rsapubkey-asn1.h
clean-files += rsaprivkey-asn1.c rsaprivkey-asn1.h
38

39 40
rsa_generic-y := rsapubkey-asn1.o
rsa_generic-y += rsaprivkey-asn1.o
41 42
rsa_generic-y += rsa.o
rsa_generic-y += rsa_helper.o
43
rsa_generic-y += rsa-pkcs1pad.o
44 45
obj-$(CONFIG_CRYPTO_RSA) += rsa_generic.o

Tracey Dent's avatar
Tracey Dent committed
46
cryptomgr-y := algboss.o testmgr.o
47

48
obj-$(CONFIG_CRYPTO_MANAGER2) += cryptomgr.o
49
obj-$(CONFIG_CRYPTO_USER) += crypto_user.o
50
obj-$(CONFIG_CRYPTO_CMAC) += cmac.o
Linus Torvalds's avatar
Linus Torvalds committed
51
obj-$(CONFIG_CRYPTO_HMAC) += hmac.o
52
obj-$(CONFIG_CRYPTO_VMAC) += vmac.o
53
obj-$(CONFIG_CRYPTO_XCBC) += xcbc.o
54
obj-$(CONFIG_CRYPTO_NULL2) += crypto_null.o
Linus Torvalds's avatar
Linus Torvalds committed
55 56
obj-$(CONFIG_CRYPTO_MD4) += md4.o
obj-$(CONFIG_CRYPTO_MD5) += md5.o
57 58
obj-$(CONFIG_CRYPTO_RMD128) += rmd128.o
obj-$(CONFIG_CRYPTO_RMD160) += rmd160.o
59 60
obj-$(CONFIG_CRYPTO_RMD256) += rmd256.o
obj-$(CONFIG_CRYPTO_RMD320) += rmd320.o
61 62
obj-$(CONFIG_CRYPTO_SHA1) += sha1_generic.o
obj-$(CONFIG_CRYPTO_SHA256) += sha256_generic.o
63
obj-$(CONFIG_CRYPTO_SHA512) += sha512_generic.o
Linus Torvalds's avatar
Linus Torvalds committed
64 65
obj-$(CONFIG_CRYPTO_WP512) += wp512.o
obj-$(CONFIG_CRYPTO_TGR192) += tgr192.o
66
obj-$(CONFIG_CRYPTO_GF128MUL) += gf128mul.o
67 68
obj-$(CONFIG_CRYPTO_ECB) += ecb.o
obj-$(CONFIG_CRYPTO_CBC) += cbc.o
69
obj-$(CONFIG_CRYPTO_PCBC) += pcbc.o
70
obj-$(CONFIG_CRYPTO_CTS) += cts.o
71
obj-$(CONFIG_CRYPTO_LRW) += lrw.o
72
obj-$(CONFIG_CRYPTO_XTS) += xts.o
73
obj-$(CONFIG_CRYPTO_CTR) += ctr.o
74
obj-$(CONFIG_CRYPTO_KEYWRAP) += keywrap.o
Mikko Herranen's avatar
Mikko Herranen committed
75
obj-$(CONFIG_CRYPTO_GCM) += gcm.o
Joy Latten's avatar
Joy Latten committed
76
obj-$(CONFIG_CRYPTO_CCM) += ccm.o
77
obj-$(CONFIG_CRYPTO_CHACHA20POLY1305) += chacha20poly1305.o
78
obj-$(CONFIG_CRYPTO_PCRYPT) += pcrypt.o
79
obj-$(CONFIG_CRYPTO_CRYPTD) += cryptd.o
80
obj-$(CONFIG_CRYPTO_MCRYPTD) += mcryptd.o
81
obj-$(CONFIG_CRYPTO_DES) += des_generic.o
82
obj-$(CONFIG_CRYPTO_FCRYPT) += fcrypt.o
83
obj-$(CONFIG_CRYPTO_BLOWFISH) += blowfish_generic.o
84
obj-$(CONFIG_CRYPTO_BLOWFISH_COMMON) += blowfish_common.o
85
obj-$(CONFIG_CRYPTO_TWOFISH) += twofish_generic.o
86
obj-$(CONFIG_CRYPTO_TWOFISH_COMMON) += twofish_common.o
87
obj-$(CONFIG_CRYPTO_SERPENT) += serpent_generic.o
88
obj-$(CONFIG_CRYPTO_AES) += aes_generic.o
89
obj-$(CONFIG_CRYPTO_CAMELLIA) += camellia_generic.o
90
obj-$(CONFIG_CRYPTO_CAST_COMMON) += cast_common.o
91
obj-$(CONFIG_CRYPTO_CAST5) += cast5_generic.o
92
obj-$(CONFIG_CRYPTO_CAST6) += cast6_generic.o
Linus Torvalds's avatar
Linus Torvalds committed
93 94 95 96
obj-$(CONFIG_CRYPTO_ARC4) += arc4.o
obj-$(CONFIG_CRYPTO_TEA) += tea.o
obj-$(CONFIG_CRYPTO_KHAZAD) += khazad.o
obj-$(CONFIG_CRYPTO_ANUBIS) += anubis.o
97
obj-$(CONFIG_CRYPTO_SEED) += seed.o
98
obj-$(CONFIG_CRYPTO_SALSA20) += salsa20_generic.o
99
obj-$(CONFIG_CRYPTO_CHACHA20) += chacha20_generic.o
100
obj-$(CONFIG_CRYPTO_POLY1305) += poly1305_generic.o
Linus Torvalds's avatar
Linus Torvalds committed
101 102
obj-$(CONFIG_CRYPTO_DEFLATE) += deflate.o
obj-$(CONFIG_CRYPTO_MICHAEL_MIC) += michael_mic.o
103
obj-$(CONFIG_CRYPTO_CRC32C) += crc32c_generic.o
104
obj-$(CONFIG_CRYPTO_CRC32) += crc32_generic.o
105
obj-$(CONFIG_CRYPTO_CRCT10DIF) += crct10dif_common.o crct10dif_generic.o
106
obj-$(CONFIG_CRYPTO_AUTHENC) += authenc.o authencesn.o
107
obj-$(CONFIG_CRYPTO_LZO) += lzo.o
108 109
obj-$(CONFIG_CRYPTO_LZ4) += lz4.o
obj-$(CONFIG_CRYPTO_LZ4HC) += lz4hc.o
110
obj-$(CONFIG_CRYPTO_842) += 842.o
111
obj-$(CONFIG_CRYPTO_RNG2) += rng.o
112
obj-$(CONFIG_CRYPTO_ANSI_CPRNG) += ansi_cprng.o
113
obj-$(CONFIG_CRYPTO_DRBG) += drbg.o
114 115 116
obj-$(CONFIG_CRYPTO_JITTERENTROPY) += jitterentropy_rng.o
CFLAGS_jitterentropy.o = -O0
jitterentropy_rng-y := jitterentropy.o jitterentropy-kcapi.o
Linus Torvalds's avatar
Linus Torvalds committed
117
obj-$(CONFIG_CRYPTO_TEST) += tcrypt.o
118
obj-$(CONFIG_CRYPTO_GHASH) += ghash-generic.o
119
obj-$(CONFIG_CRYPTO_USER_API) += af_alg.o
120
obj-$(CONFIG_CRYPTO_USER_API_HASH) += algif_hash.o
121
obj-$(CONFIG_CRYPTO_USER_API_SKCIPHER) += algif_skcipher.o
122
obj-$(CONFIG_CRYPTO_USER_API_RNG) += algif_rng.o
123
obj-$(CONFIG_CRYPTO_USER_API_AEAD) += algif_aead.o
124 125 126 127 128

#
# generic algorithms and the async_tx api
#
obj-$(CONFIG_XOR_BLOCKS) += xor.o
129
obj-$(CONFIG_ASYNC_CORE) += async_tx/
130
obj-$(CONFIG_ASYMMETRIC_KEY_TYPE) += asymmetric_keys/
131
obj-$(CONFIG_CRYPTO_HASH_INFO) += hash_info.o
132
obj-$(CONFIG_CRYPTO_ABLK_HELPER) += ablk_helper.o