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 define KernelPackage
/crypto-core
12 SUBMENU
:=$(CRYPTO_MENU
)
13 TITLE
:=Core CryptoAPI modules
16 CONFIG_CRYPTO_ALGAPI \
17 CONFIG_CRYPTO_BLKCIPHER \
19 CONFIG_CRYPTO_DEFLATE \
24 $(LINUX_DIR
)/crypto
/crypto_algapi.
$(LINUX_KMOD_SUFFIX
) \
25 $(LINUX_DIR
)/crypto
/blkcipher.
$(LINUX_KMOD_SUFFIX
) \
26 $(LINUX_DIR
)/crypto
/cbc.
$(LINUX_KMOD_SUFFIX
) \
27 $(LINUX_DIR
)/crypto
/deflate.
$(LINUX_KMOD_SUFFIX
) \
28 $(LINUX_DIR
)/crypto
/ecb.
$(LINUX_KMOD_SUFFIX
) \
29 $(LINUX_DIR
)/crypto
/crypto_hash.
$(LINUX_KMOD_SUFFIX
) \
30 $(LINUX_DIR
)/crypto
/cryptomgr.
$(LINUX_KMOD_SUFFIX
)
31 AUTOLOAD
:=$(call AutoLoad
,01, \
42 define KernelPackage
/crypto-core
/2.4
43 FILES
:=$(LINUX_DIR
)/crypto
/deflate.
$(LINUX_KMOD_SUFFIX
)
44 AUTOLOAD
:=$(call AutoLoad
,01, deflate
)
47 $(eval
$(call KernelPackage
,crypto-core
))
50 define KernelPackage
/crypto-aes
51 SUBMENU
:=$(CRYPTO_MENU
)
52 TITLE
:=AES cipher CryptoAPI module
53 DEPENDS
:=kmod-crypto-core
57 FILES
:=$(LINUX_DIR
)/crypto
/aes.
$(LINUX_KMOD_SUFFIX
)
58 AUTOLOAD
:=$(call AutoLoad
,09,aes
)
61 define KernelPackage
/crypto-aes
/x86-2.6
62 KCONFIG
:=CONFIG_CRYPTO_AES_586
63 FILES
:=$(LINUX_DIR
)/arch
/i386
/crypto
/aes-i586.
$(LINUX_KMOD_SUFFIX
)
64 AUTOLOAD
:=$(call AutoLoad
,09,aes-i586
)
67 $(eval
$(call KernelPackage
,crypto-aes
))
70 define KernelPackage
/crypto-arc4
71 SUBMENU
:=$(CRYPTO_MENU
)
72 TITLE
:=ARC4
(RC4
) cipher CryptoAPI module
73 DEPENDS
:=kmod-crypto-core
74 KCONFIG
:=CONFIG_CRYPTO_ARC4
75 FILES
:=$(LINUX_DIR
)/crypto
/arc4.
$(LINUX_KMOD_SUFFIX
)
76 AUTOLOAD
:=$(call AutoLoad
,09,arc4
)
79 $(eval
$(call KernelPackage
,crypto-arc4
))
82 define KernelPackage
/crypto-des
83 SUBMENU
:=$(CRYPTO_MENU
)
84 TITLE
:=DES
/3DES cipher CryptoAPI module
85 DEPENDS
:=kmod-crypto-core
86 KCONFIG
:=CONFIG_CRYPTO_AES
87 FILES
:=$(LINUX_DIR
)/crypto
/aes.
$(LINUX_KMOD_SUFFIX
)
88 AUTOLOAD
:=$(call AutoLoad
,09,des
)
91 $(eval
$(call KernelPackage
,crypto-des
))
94 define KernelPackage
/crypto-hmac
95 SUBMENU
:=$(CRYPTO_MENU
)
96 TITLE
:=HMAC digest CryptoAPI module
97 DEPENDS
:=kmod-crypto-core
98 KCONFIG
:=CONFIG_CRYPTO_HMAC
99 FILES
:=$(LINUX_DIR
)/crypto
/hmac.
$(LINUX_KMOD_SUFFIX
)
100 AUTOLOAD
:=$(call AutoLoad
,09,hmac
)
103 $(eval
$(call KernelPackage
,crypto-hmac
))
106 define KernelPackage
/crypto-md5
107 SUBMENU
:=$(CRYPTO_MENU
)
108 TITLE
:=MD5 digest CryptoAPI module
109 DEPENDS
:=kmod-crypto-core
110 KCONFIG
:=CONFIG_CRYPTO_MD5
111 FILES
:=$(LINUX_DIR
)/crypto
/md5.
$(LINUX_KMOD_SUFFIX
)
112 AUTOLOAD
:=$(call AutoLoad
,09,md5
)
115 $(eval
$(call KernelPackage
,crypto-md5
))
118 define KernelPackage
/crypto-michael-mic
119 SUBMENU
:=$(CRYPTO_MENU
)
120 TITLE
:=Michael MIC keyed digest CryptoAPI module
121 DEPENDS
:=kmod-crypto-core
122 KCONFIG
:=CONFIG_CRYPTO_MICHAEL_MIC
123 FILES
:=$(LINUX_DIR
)/crypto
/michael_mic.
$(LINUX_KMOD_SUFFIX
)
124 AUTOLOAD
:=$(call AutoLoad
,09,michael_mic
)
127 $(eval
$(call KernelPackage
,crypto-michael-mic
))
130 define KernelPackage
/crypto-sha1
131 SUBMENU
:=$(CRYPTO_MENU
)
132 TITLE
:=SHA1 digest CryptoAPI module
133 DEPENDS
:=kmod-crypto-core
134 KCONFIG
:=CONFIG_CRYPTO_SHA1
135 FILES
:=$(LINUX_DIR
)/crypto
/sha1.
$(LINUX_KMOD_SUFFIX
)
136 AUTOLOAD
:=$(call AutoLoad
,09,sha1
)
139 $(eval
$(call KernelPackage
,crypto-sha1
))
142 define KernelPackage
/crypto-misc
143 SUBMENU
:=$(CRYPTO_MENU
)
144 TITLE
:=Other CryptoAPI modules
145 DEPENDS
:=kmod-crypto-core
147 CONFIG_CRYPTO_ANUBIS \
148 CONFIG_CRYPTO_BLOWFISH \
149 CONFIG_CRYPTO_CAMELLIA \
150 CONFIG_CRYPTO_CAST5 \
151 CONFIG_CRYPTO_CAST6 \
152 CONFIG_CRYPTO_CRC32C \
153 CONFIG_CRYPTO_FCRYPT \
154 CONFIG_CRYPTO_KHAZAD \
156 CONFIG_CRYPTO_SERPENT \
157 CONFIG_CRYPTO_SHA256 \
158 CONFIG_CRYPTO_SHA512 \
160 CONFIG_CRYPTO_TGR192 \
161 CONFIG_CRYPTO_TWOFISH \
162 CONFIG_CRYPTO_TWOFISH_586 \
165 $(LINUX_DIR
)/crypto
/anubis.
$(LINUX_KMOD_SUFFIX
) \
166 $(LINUX_DIR
)/crypto
/blowfish.
$(LINUX_KMOD_SUFFIX
) \
167 $(LINUX_DIR
)/crypto
/cast5.
$(LINUX_KMOD_SUFFIX
) \
168 $(LINUX_DIR
)/crypto
/cast6.
$(LINUX_KMOD_SUFFIX
) \
169 $(LINUX_DIR
)/crypto
/khazad.
$(LINUX_KMOD_SUFFIX
) \
170 $(LINUX_DIR
)/crypto
/md4.
$(LINUX_KMOD_SUFFIX
) \
171 $(LINUX_DIR
)/crypto
/serpent.
$(LINUX_KMOD_SUFFIX
) \
172 $(LINUX_DIR
)/crypto
/sha256.
$(LINUX_KMOD_SUFFIX
) \
173 $(LINUX_DIR
)/crypto
/sha512.
$(LINUX_KMOD_SUFFIX
) \
174 $(LINUX_DIR
)/crypto
/tea.
$(LINUX_KMOD_SUFFIX
) \
175 $(LINUX_DIR
)/crypto
/twofish.
$(LINUX_KMOD_SUFFIX
) \
176 $(LINUX_DIR
)/crypto
/wp512.
$(LINUX_KMOD_SUFFIX
)
179 define KernelPackage
/crypto-misc
/2.6
181 $(LINUX_DIR
)/crypto
/camellia.
$(LINUX_KMOD_SUFFIX
) \
182 $(LINUX_DIR
)/crypto
/crc32c.
$(LINUX_KMOD_SUFFIX
) \
183 $(LINUX_DIR
)/crypto
/fcrypt.
$(LINUX_KMOD_SUFFIX
) \
184 $(LINUX_DIR
)/crypto
/tgr192.
$(LINUX_KMOD_SUFFIX
)
187 $(eval
$(call KernelPackage
,crypto-misc
))
190 define KernelPackage
/crypto-null
191 SUBMENU
:=$(CRYPTO_MENU
)
192 TITLE
:=Null CryptoAPI module
193 DEPENDS
:=kmod-crypto-core
194 KCONFIG
:=CONFIG_CRYPTO_NULL
195 FILES
:=$(LINUX_DIR
)/crypto
/crypto_null.
$(LINUX_KMOD_SUFFIX
)
196 AUTOLOAD
:=$(call AutoLoad
,09,crypto_null
)
199 $(eval
$(call KernelPackage
,crypto-null
))
202 define KernelPackage
/crypto-test
203 SUBMENU
:=$(CRYPTO_MENU
)
204 TITLE
:=Test CryptoAPI module
205 DEPENDS
:=kmod-crypto-core
206 KCONFIG
:=CONFIG_CRYPTO_NULL
207 FILES
:=$(LINUX_DIR
)/crypto
/tcrypt.
$(LINUX_KMOD_SUFFIX
)
208 AUTOLOAD
:=$(call AutoLoad
,09,tcrypt
)
211 $(eval
$(call KernelPackage
,crypto-test
))