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 CONFIG_CRYPTO_HMAC to KCONFIG so that CONFIG_CRYPTO_HASH is
12 # always set, even if no hash modules are selected
13 define KernelPackage
/crypto-core
14 SUBMENU
:=$(CRYPTO_MENU
)
15 TITLE
:=Core CryptoAPI modules
18 CONFIG_CRYPTO_ALGAPI \
19 CONFIG_CRYPTO_BLKCIPHER \
21 CONFIG_CRYPTO_DEFLATE \
27 $(LINUX_DIR
)/crypto
/crypto_algapi.
$(LINUX_KMOD_SUFFIX
) \
28 $(LINUX_DIR
)/crypto
/blkcipher.
$(LINUX_KMOD_SUFFIX
) \
29 $(LINUX_DIR
)/crypto
/cbc.
$(LINUX_KMOD_SUFFIX
) \
30 $(LINUX_DIR
)/crypto
/deflate.
$(LINUX_KMOD_SUFFIX
) \
31 $(LINUX_DIR
)/crypto
/ecb.
$(LINUX_KMOD_SUFFIX
) \
32 $(LINUX_DIR
)/crypto
/crypto_hash.
$(LINUX_KMOD_SUFFIX
) \
33 $(LINUX_DIR
)/crypto
/cryptomgr.
$(LINUX_KMOD_SUFFIX
)
34 AUTOLOAD
:=$(call AutoLoad
,01, \
45 define KernelPackage
/crypto-core
/2.4
46 FILES
:=$(LINUX_DIR
)/crypto
/deflate.
$(LINUX_KMOD_SUFFIX
)
47 AUTOLOAD
:=$(call AutoLoad
,01, deflate
)
50 $(eval
$(call KernelPackage
,crypto-core
))
53 define KernelPackage
/crypto-aes
54 SUBMENU
:=$(CRYPTO_MENU
)
55 TITLE
:=AES cipher CryptoAPI module
56 DEPENDS
:=kmod-crypto-core
60 FILES
:=$(LINUX_DIR
)/crypto
/aes.
$(LINUX_KMOD_SUFFIX
)
61 AUTOLOAD
:=$(call AutoLoad
,09,aes
)
64 define KernelPackage
/crypto-aes
/x86-2.6
65 KCONFIG
:=CONFIG_CRYPTO_AES_586
66 FILES
:=$(LINUX_DIR
)/arch
/i386
/crypto
/aes-i586.
$(LINUX_KMOD_SUFFIX
)
67 AUTOLOAD
:=$(call AutoLoad
,09,aes-i586
)
70 $(eval
$(call KernelPackage
,crypto-aes
))
73 define KernelPackage
/crypto-arc4
74 SUBMENU
:=$(CRYPTO_MENU
)
75 TITLE
:=ARC4
(RC4
) cipher CryptoAPI module
76 DEPENDS
:=kmod-crypto-core
77 KCONFIG
:=CONFIG_CRYPTO_ARC4
78 FILES
:=$(LINUX_DIR
)/crypto
/arc4.
$(LINUX_KMOD_SUFFIX
)
79 AUTOLOAD
:=$(call AutoLoad
,09,arc4
)
82 $(eval
$(call KernelPackage
,crypto-arc4
))
85 define KernelPackage
/crypto-des
86 SUBMENU
:=$(CRYPTO_MENU
)
87 TITLE
:=DES
/3DES cipher CryptoAPI module
88 DEPENDS
:=kmod-crypto-core
89 KCONFIG
:=CONFIG_CRYPTO_AES
90 FILES
:=$(LINUX_DIR
)/crypto
/aes.
$(LINUX_KMOD_SUFFIX
)
91 AUTOLOAD
:=$(call AutoLoad
,09,des
)
94 $(eval
$(call KernelPackage
,crypto-des
))
97 define KernelPackage
/crypto-hmac
98 SUBMENU
:=$(CRYPTO_MENU
)
99 TITLE
:=HMAC digest CryptoAPI module
100 DEPENDS
:=kmod-crypto-core
101 KCONFIG
:=CONFIG_CRYPTO_HMAC
102 FILES
:=$(LINUX_DIR
)/crypto
/hmac.
$(LINUX_KMOD_SUFFIX
)
103 AUTOLOAD
:=$(call AutoLoad
,09,hmac
)
106 $(eval
$(call KernelPackage
,crypto-hmac
))
109 define KernelPackage
/crypto-md5
110 SUBMENU
:=$(CRYPTO_MENU
)
111 TITLE
:=MD5 digest CryptoAPI module
112 DEPENDS
:=kmod-crypto-core
113 KCONFIG
:=CONFIG_CRYPTO_MD5
114 FILES
:=$(LINUX_DIR
)/crypto
/md5.
$(LINUX_KMOD_SUFFIX
)
115 AUTOLOAD
:=$(call AutoLoad
,09,md5
)
118 $(eval
$(call KernelPackage
,crypto-md5
))
121 define KernelPackage
/crypto-michael-mic
122 SUBMENU
:=$(CRYPTO_MENU
)
123 TITLE
:=Michael MIC keyed digest CryptoAPI module
124 DEPENDS
:=kmod-crypto-core
125 KCONFIG
:=CONFIG_CRYPTO_MICHAEL_MIC
126 FILES
:=$(LINUX_DIR
)/crypto
/michael_mic.
$(LINUX_KMOD_SUFFIX
)
127 AUTOLOAD
:=$(call AutoLoad
,09,michael_mic
)
130 $(eval
$(call KernelPackage
,crypto-michael-mic
))
133 define KernelPackage
/crypto-sha1
134 SUBMENU
:=$(CRYPTO_MENU
)
135 TITLE
:=SHA1 digest CryptoAPI module
136 DEPENDS
:=kmod-crypto-core
137 KCONFIG
:=CONFIG_CRYPTO_SHA1
138 FILES
:=$(LINUX_DIR
)/crypto
/sha1.
$(LINUX_KMOD_SUFFIX
)
139 AUTOLOAD
:=$(call AutoLoad
,09,sha1
)
142 $(eval
$(call KernelPackage
,crypto-sha1
))
145 define KernelPackage
/crypto-misc
146 SUBMENU
:=$(CRYPTO_MENU
)
147 TITLE
:=Other CryptoAPI modules
148 DEPENDS
:=kmod-crypto-core
150 CONFIG_CRYPTO_ANUBIS \
151 CONFIG_CRYPTO_BLOWFISH \
152 CONFIG_CRYPTO_CAMELLIA \
153 CONFIG_CRYPTO_CAST5 \
154 CONFIG_CRYPTO_CAST6 \
155 CONFIG_CRYPTO_CRC32C \
156 CONFIG_CRYPTO_FCRYPT \
157 CONFIG_CRYPTO_KHAZAD \
159 CONFIG_CRYPTO_SERPENT \
160 CONFIG_CRYPTO_SHA256 \
161 CONFIG_CRYPTO_SHA512 \
163 CONFIG_CRYPTO_TGR192 \
164 CONFIG_CRYPTO_TWOFISH \
165 CONFIG_CRYPTO_TWOFISH_586 \
168 $(LINUX_DIR
)/crypto
/anubis.
$(LINUX_KMOD_SUFFIX
) \
169 $(LINUX_DIR
)/crypto
/blowfish.
$(LINUX_KMOD_SUFFIX
) \
170 $(LINUX_DIR
)/crypto
/cast5.
$(LINUX_KMOD_SUFFIX
) \
171 $(LINUX_DIR
)/crypto
/cast6.
$(LINUX_KMOD_SUFFIX
) \
172 $(LINUX_DIR
)/crypto
/khazad.
$(LINUX_KMOD_SUFFIX
) \
173 $(LINUX_DIR
)/crypto
/md4.
$(LINUX_KMOD_SUFFIX
) \
174 $(LINUX_DIR
)/crypto
/serpent.
$(LINUX_KMOD_SUFFIX
) \
175 $(LINUX_DIR
)/crypto
/sha256.
$(LINUX_KMOD_SUFFIX
) \
176 $(LINUX_DIR
)/crypto
/sha512.
$(LINUX_KMOD_SUFFIX
) \
177 $(LINUX_DIR
)/crypto
/tea.
$(LINUX_KMOD_SUFFIX
) \
178 $(LINUX_DIR
)/crypto
/twofish.
$(LINUX_KMOD_SUFFIX
) \
179 $(LINUX_DIR
)/crypto
/wp512.
$(LINUX_KMOD_SUFFIX
)
182 define KernelPackage
/crypto-misc
/2.6
184 $(LINUX_DIR
)/crypto
/camellia.
$(LINUX_KMOD_SUFFIX
) \
185 $(LINUX_DIR
)/crypto
/crc32c.
$(LINUX_KMOD_SUFFIX
) \
186 $(LINUX_DIR
)/crypto
/fcrypt.
$(LINUX_KMOD_SUFFIX
) \
187 $(LINUX_DIR
)/crypto
/tgr192.
$(LINUX_KMOD_SUFFIX
)
190 $(eval
$(call KernelPackage
,crypto-misc
))
193 define KernelPackage
/crypto-null
194 SUBMENU
:=$(CRYPTO_MENU
)
195 TITLE
:=Null CryptoAPI module
196 DEPENDS
:=kmod-crypto-core
197 KCONFIG
:=CONFIG_CRYPTO_NULL
198 FILES
:=$(LINUX_DIR
)/crypto
/crypto_null.
$(LINUX_KMOD_SUFFIX
)
199 AUTOLOAD
:=$(call AutoLoad
,09,crypto_null
)
202 $(eval
$(call KernelPackage
,crypto-null
))
205 define KernelPackage
/crypto-test
206 SUBMENU
:=$(CRYPTO_MENU
)
207 TITLE
:=Test CryptoAPI module
208 DEPENDS
:=kmod-crypto-core
209 KCONFIG
:=CONFIG_CRYPTO_NULL
210 FILES
:=$(LINUX_DIR
)/crypto
/tcrypt.
$(LINUX_KMOD_SUFFIX
)
211 AUTOLOAD
:=$(call AutoLoad
,09,tcrypt
)
214 $(eval
$(call KernelPackage
,crypto-test
))