diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2006-07-30 01:41:01 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2006-09-20 21:46:14 -0400 |
commit | 6b7326c8497f954c2cfcb4c49fe42be5b80887bc (patch) | |
tree | 5739c37f7a72d1ef281fbbb5bbc1483226eec198 /net/xfrm/xfrm_algo.c | |
parent | 04ff12609445c7b462d7fc7f2d30dad442c922f3 (diff) |
[IPSEC] ESP: Use block ciphers where applicable
This patch converts IPSec/ESP to use the new block cipher type where
applicable. Similar to the HMAC conversion, existing algorithm names
have been kept for compatibility.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'net/xfrm/xfrm_algo.c')
-rw-r--r-- | net/xfrm/xfrm_algo.c | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/net/xfrm/xfrm_algo.c b/net/xfrm/xfrm_algo.c index b68974b38741..9b03d8497fba 100644 --- a/net/xfrm/xfrm_algo.c +++ b/net/xfrm/xfrm_algo.c | |||
@@ -118,7 +118,8 @@ static struct xfrm_algo_desc aalg_list[] = { | |||
118 | 118 | ||
119 | static struct xfrm_algo_desc ealg_list[] = { | 119 | static struct xfrm_algo_desc ealg_list[] = { |
120 | { | 120 | { |
121 | .name = "cipher_null", | 121 | .name = "ecb(cipher_null)", |
122 | .compat = "cipher_null", | ||
122 | 123 | ||
123 | .uinfo = { | 124 | .uinfo = { |
124 | .encr = { | 125 | .encr = { |
@@ -135,7 +136,8 @@ static struct xfrm_algo_desc ealg_list[] = { | |||
135 | } | 136 | } |
136 | }, | 137 | }, |
137 | { | 138 | { |
138 | .name = "des", | 139 | .name = "cbc(des)", |
140 | .compat = "des", | ||
139 | 141 | ||
140 | .uinfo = { | 142 | .uinfo = { |
141 | .encr = { | 143 | .encr = { |
@@ -152,7 +154,8 @@ static struct xfrm_algo_desc ealg_list[] = { | |||
152 | } | 154 | } |
153 | }, | 155 | }, |
154 | { | 156 | { |
155 | .name = "des3_ede", | 157 | .name = "cbc(des3_ede)", |
158 | .compat = "des3_ede", | ||
156 | 159 | ||
157 | .uinfo = { | 160 | .uinfo = { |
158 | .encr = { | 161 | .encr = { |
@@ -169,7 +172,8 @@ static struct xfrm_algo_desc ealg_list[] = { | |||
169 | } | 172 | } |
170 | }, | 173 | }, |
171 | { | 174 | { |
172 | .name = "cast128", | 175 | .name = "cbc(cast128)", |
176 | .compat = "cast128", | ||
173 | 177 | ||
174 | .uinfo = { | 178 | .uinfo = { |
175 | .encr = { | 179 | .encr = { |
@@ -186,7 +190,8 @@ static struct xfrm_algo_desc ealg_list[] = { | |||
186 | } | 190 | } |
187 | }, | 191 | }, |
188 | { | 192 | { |
189 | .name = "blowfish", | 193 | .name = "cbc(blowfish)", |
194 | .compat = "blowfish", | ||
190 | 195 | ||
191 | .uinfo = { | 196 | .uinfo = { |
192 | .encr = { | 197 | .encr = { |
@@ -203,7 +208,8 @@ static struct xfrm_algo_desc ealg_list[] = { | |||
203 | } | 208 | } |
204 | }, | 209 | }, |
205 | { | 210 | { |
206 | .name = "aes", | 211 | .name = "cbc(aes)", |
212 | .compat = "aes", | ||
207 | 213 | ||
208 | .uinfo = { | 214 | .uinfo = { |
209 | .encr = { | 215 | .encr = { |
@@ -220,7 +226,8 @@ static struct xfrm_algo_desc ealg_list[] = { | |||
220 | } | 226 | } |
221 | }, | 227 | }, |
222 | { | 228 | { |
223 | .name = "serpent", | 229 | .name = "cbc(serpent)", |
230 | .compat = "serpent", | ||
224 | 231 | ||
225 | .uinfo = { | 232 | .uinfo = { |
226 | .encr = { | 233 | .encr = { |
@@ -237,7 +244,8 @@ static struct xfrm_algo_desc ealg_list[] = { | |||
237 | } | 244 | } |
238 | }, | 245 | }, |
239 | { | 246 | { |
240 | .name = "twofish", | 247 | .name = "cbc(twofish)", |
248 | .compat = "twofish", | ||
241 | 249 | ||
242 | .uinfo = { | 250 | .uinfo = { |
243 | .encr = { | 251 | .encr = { |