2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 CRYPTO_MENU
:=Cryptographic API modules
11 # XXX: added CRYPTO_GENERIC as a workaround for modules renamed in 2.6.24:
14 # - sha1 > sha1_generic
15 # - sha256 > sha256_generic
16 ifeq ($(KERNEL_PATCHVER
),2.6.24)
17 CRYPTO_GENERIC
:=_generic
21 # XXX: added CONFIG_CRYPTO_HMAC to KCONFIG so that CONFIG_CRYPTO_HASH is
22 # always set, even if no hash modules are selected
23 define KernelPackage
/crypto-core
24 SUBMENU
:=$(CRYPTO_MENU
)
25 TITLE
:=Core CryptoAPI modules
28 CONFIG_CRYPTO_ALGAPI \
29 CONFIG_CRYPTO_BLKCIPHER \
31 CONFIG_CRYPTO_DEFLATE \
37 $(LINUX_DIR
)/crypto
/crypto_algapi.
$(LINUX_KMOD_SUFFIX
) \
38 $(LINUX_DIR
)/crypto
/blkcipher.
$(LINUX_KMOD_SUFFIX
) \
39 $(LINUX_DIR
)/crypto
/cbc.
$(LINUX_KMOD_SUFFIX
) \
40 $(LINUX_DIR
)/crypto
/deflate.
$(LINUX_KMOD_SUFFIX
) \
41 $(LINUX_DIR
)/crypto
/ecb.
$(LINUX_KMOD_SUFFIX
) \
42 $(LINUX_DIR
)/crypto
/crypto_hash.
$(LINUX_KMOD_SUFFIX
) \
43 $(LINUX_DIR
)/crypto
/cryptomgr.
$(LINUX_KMOD_SUFFIX
)
44 AUTOLOAD
:=$(call AutoLoad
,01, \
55 define KernelPackage
/crypto-core
/2.4
56 FILES
:=$(LINUX_DIR
)/crypto
/deflate.
$(LINUX_KMOD_SUFFIX
)
57 AUTOLOAD
:=$(call AutoLoad
,01, deflate
)
60 $(eval
$(call KernelPackage
,crypto-core
))
63 define KernelPackage
/crypto-aes
64 SUBMENU
:=$(CRYPTO_MENU
)
65 TITLE
:=AES cipher CryptoAPI module
66 DEPENDS
:=+kmod-crypto-core
70 FILES
:=$(LINUX_DIR
)/crypto
/aes
$(CRYPTO_GENERIC
).
$(LINUX_KMOD_SUFFIX
)
71 AUTOLOAD
:=$(call AutoLoad
,09,aes
$(CRYPTO_GENERIC
))
74 define KernelPackage
/crypto-aes
/x86-2.6
75 KCONFIG
:=CONFIG_CRYPTO_AES_586
76 FILES
:=$(LINUX_DIR
)/arch
/x86
/crypto
/aes-i586.
$(LINUX_KMOD_SUFFIX
)
77 AUTOLOAD
:=$(call AutoLoad
,09,aes-i586
)
80 $(eval
$(call KernelPackage
,crypto-aes
))
83 define KernelPackage
/crypto-arc4
84 SUBMENU
:=$(CRYPTO_MENU
)
85 TITLE
:=ARC4
(RC4
) cipher CryptoAPI module
86 DEPENDS
:=+kmod-crypto-core
87 KCONFIG
:=CONFIG_CRYPTO_ARC4
88 FILES
:=$(LINUX_DIR
)/crypto
/arc4.
$(LINUX_KMOD_SUFFIX
)
89 AUTOLOAD
:=$(call AutoLoad
,09,arc4
)
92 $(eval
$(call KernelPackage
,crypto-arc4
))
95 define KernelPackage
/crypto-des
96 SUBMENU
:=$(CRYPTO_MENU
)
97 TITLE
:=DES
/3DES cipher CryptoAPI module
98 DEPENDS
:=+kmod-crypto-core
99 KCONFIG
:=CONFIG_CRYPTO_DES
100 FILES
:=$(LINUX_DIR
)/crypto
/des
$(CRYPTO_GENERIC
).
$(LINUX_KMOD_SUFFIX
)
101 AUTOLOAD
:=$(call AutoLoad
,09,des
$(CRYPTO_GENERIC
))
104 $(eval
$(call KernelPackage
,crypto-des
))
107 define KernelPackage
/crypto-hmac
108 SUBMENU
:=$(CRYPTO_MENU
)
109 TITLE
:=HMAC digest CryptoAPI module
110 DEPENDS
:=+kmod-crypto-core
111 KCONFIG
:=CONFIG_CRYPTO_HMAC
112 FILES
:=$(LINUX_DIR
)/crypto
/hmac.
$(LINUX_KMOD_SUFFIX
)
113 AUTOLOAD
:=$(call AutoLoad
,09,hmac
)
116 $(eval
$(call KernelPackage
,crypto-hmac
))
119 define KernelPackage
/crypto-md5
120 SUBMENU
:=$(CRYPTO_MENU
)
121 TITLE
:=MD5 digest CryptoAPI module
122 DEPENDS
:=+kmod-crypto-core
123 KCONFIG
:=CONFIG_CRYPTO_MD5
124 FILES
:=$(LINUX_DIR
)/crypto
/md5.
$(LINUX_KMOD_SUFFIX
)
125 AUTOLOAD
:=$(call AutoLoad
,09,md5
)
128 $(eval
$(call KernelPackage
,crypto-md5
))
131 define KernelPackage
/crypto-michael-mic
132 SUBMENU
:=$(CRYPTO_MENU
)
133 TITLE
:=Michael MIC keyed digest CryptoAPI module
134 DEPENDS
:=+kmod-crypto-core
135 KCONFIG
:=CONFIG_CRYPTO_MICHAEL_MIC
136 FILES
:=$(LINUX_DIR
)/crypto
/michael_mic.
$(LINUX_KMOD_SUFFIX
)
137 AUTOLOAD
:=$(call AutoLoad
,09,michael_mic
)
140 $(eval
$(call KernelPackage
,crypto-michael-mic
))
143 define KernelPackage
/crypto-sha1
144 SUBMENU
:=$(CRYPTO_MENU
)
145 TITLE
:=SHA1 digest CryptoAPI module
146 DEPENDS
:=+kmod-crypto-core
147 KCONFIG
:=CONFIG_CRYPTO_SHA1
148 FILES
:=$(LINUX_DIR
)/crypto
/sha1
$(CRYPTO_GENERIC
).
$(LINUX_KMOD_SUFFIX
)
149 AUTOLOAD
:=$(call AutoLoad
,09,sha1
$(CRYPTO_GENERIC
))
152 $(eval
$(call KernelPackage
,crypto-sha1
))
155 define KernelPackage
/crypto-misc
156 SUBMENU
:=$(CRYPTO_MENU
)
157 TITLE
:=Other CryptoAPI modules
158 DEPENDS
:=+kmod-crypto-core
160 CONFIG_CRYPTO_ANUBIS \
161 CONFIG_CRYPTO_BLOWFISH \
162 CONFIG_CRYPTO_CAMELLIA \
163 CONFIG_CRYPTO_CAST5 \
164 CONFIG_CRYPTO_CAST6 \
165 CONFIG_CRYPTO_CRC32C \
166 CONFIG_CRYPTO_FCRYPT \
167 CONFIG_CRYPTO_KHAZAD \
169 CONFIG_CRYPTO_SERPENT \
170 CONFIG_CRYPTO_SHA256 \
171 CONFIG_CRYPTO_SHA512 \
173 CONFIG_CRYPTO_TGR192 \
174 CONFIG_CRYPTO_TWOFISH \
175 CONFIG_CRYPTO_TWOFISH_586 \
178 $(LINUX_DIR
)/crypto
/anubis.
$(LINUX_KMOD_SUFFIX
) \
179 $(LINUX_DIR
)/crypto
/blowfish.
$(LINUX_KMOD_SUFFIX
) \
180 $(LINUX_DIR
)/crypto
/cast5.
$(LINUX_KMOD_SUFFIX
) \
181 $(LINUX_DIR
)/crypto
/cast6.
$(LINUX_KMOD_SUFFIX
) \
182 $(LINUX_DIR
)/crypto
/khazad.
$(LINUX_KMOD_SUFFIX
) \
183 $(LINUX_DIR
)/crypto
/md4.
$(LINUX_KMOD_SUFFIX
) \
184 $(LINUX_DIR
)/crypto
/serpent.
$(LINUX_KMOD_SUFFIX
) \
185 $(LINUX_DIR
)/crypto
/sha256
$(CRYPTO_GENERIC
).
$(LINUX_KMOD_SUFFIX
) \
186 $(LINUX_DIR
)/crypto
/sha512.
$(LINUX_KMOD_SUFFIX
) \
187 $(LINUX_DIR
)/crypto
/tea.
$(LINUX_KMOD_SUFFIX
) \
188 $(LINUX_DIR
)/crypto
/twofish.
$(LINUX_KMOD_SUFFIX
) \
189 $(LINUX_DIR
)/crypto
/wp512.
$(LINUX_KMOD_SUFFIX
)
192 define KernelPackage
/crypto-misc
/2.6
194 $(LINUX_DIR
)/crypto
/camellia.
$(LINUX_KMOD_SUFFIX
) \
195 $(LINUX_DIR
)/crypto
/crc32c.
$(LINUX_KMOD_SUFFIX
) \
196 $(LINUX_DIR
)/crypto
/fcrypt.
$(LINUX_KMOD_SUFFIX
) \
197 $(LINUX_DIR
)/crypto
/tgr192.
$(LINUX_KMOD_SUFFIX
)
200 $(eval
$(call KernelPackage
,crypto-misc
))
203 define KernelPackage
/crypto-null
204 SUBMENU
:=$(CRYPTO_MENU
)
205 TITLE
:=Null CryptoAPI module
206 DEPENDS
:=+kmod-crypto-core
207 KCONFIG
:=CONFIG_CRYPTO_NULL
208 FILES
:=$(LINUX_DIR
)/crypto
/crypto_null.
$(LINUX_KMOD_SUFFIX
)
209 AUTOLOAD
:=$(call AutoLoad
,09,crypto_null
)
212 $(eval
$(call KernelPackage
,crypto-null
))
215 define KernelPackage
/crypto-test
216 SUBMENU
:=$(CRYPTO_MENU
)
217 TITLE
:=Test CryptoAPI module
218 DEPENDS
:=+kmod-crypto-core
219 KCONFIG
:=CONFIG_CRYPTO_TEST
220 FILES
:=$(LINUX_DIR
)/crypto
/tcrypt.
$(LINUX_KMOD_SUFFIX
)
221 AUTOLOAD
:=$(call AutoLoad
,09,tcrypt
)
224 $(eval
$(call KernelPackage
,crypto-test
))