You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Patrick McHardy
d0856009db
[PATCH] crypto: fix null encryption/compression
null_encrypt() needs to copy the data in case src and dst are disjunct,
null_compress() needs to copy the data in any case as far as I can tell. I
joined compress/decompress and encrypt/decrypt to avoid duplicating code.
Without this patch ESP null_enc packets look like this:
IP (tos 0x0, ttl 64, id 23130, offset 0, flags [DF], length: 128)
10.0.0.1 > 10.0.0.2: ESP(spi=0x0f9ca149,seq=0x4)
0x0000: 4500 0080 5a5a 4000 4032 cbef 0a00 0001 E...ZZ@.@2......
0x0010: 0a00 0002 0f9c a149 0000 0004 0000 0000 .......I........
0x0020: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0030: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0040: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x0050: 0000 ..
IP (tos 0x0, ttl 64, id 256, offset 0, flags [DF], length: 128)
10.0.0.2 > 10.0.0.1: ESP(spi=0x0e4f7b51,seq=0x2)
0x0000: 4500 0080 0100 4000 4032 254a 0a00 0002 E.....@.@2%J....
0x0010: 0a00 0001 0e4f 7b51 0000 0002 a8a8 a8a8 .....O{Q........
0x0020: a8a8 a8a8 a8a8 a8a8 a8a8 a8a8 a8a8 a8a8 ................
0x0030: a8a8 a8a8 a8a8 a8a8 a8a8 a8a8 a8a8 a8a8 ................
0x0040: a8a8 a8a8 a8a8 a8a8 a8a8 a8a8 a8a8 a8a8 ................
0x0050: a8a8 ..
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
|
20 years ago |
.. |
Kconfig
|
[PATCH] uml: support AES i586 crypto driver
|
20 years ago |
Makefile
|
Linux-2.6.12-rc2
|
20 years ago |
aes.c
|
Linux-2.6.12-rc2
|
20 years ago |
anubis.c
|
Linux-2.6.12-rc2
|
20 years ago |
api.c
|
Linux-2.6.12-rc2
|
20 years ago |
arc4.c
|
Linux-2.6.12-rc2
|
20 years ago |
blowfish.c
|
Linux-2.6.12-rc2
|
20 years ago |
cast5.c
|
Linux-2.6.12-rc2
|
20 years ago |
cast6.c
|
Linux-2.6.12-rc2
|
20 years ago |
cipher.c
|
Linux-2.6.12-rc2
|
20 years ago |
compress.c
|
Linux-2.6.12-rc2
|
20 years ago |
crc32c.c
|
Linux-2.6.12-rc2
|
20 years ago |
crypto_null.c
|
[PATCH] crypto: fix null encryption/compression
|
20 years ago |
deflate.c
|
[PATCH] crypto: call zlib end functions on deflate exit path
|
20 years ago |
des.c
|
Linux-2.6.12-rc2
|
20 years ago |
digest.c
|
Linux-2.6.12-rc2
|
20 years ago |
hmac.c
|
Linux-2.6.12-rc2
|
20 years ago |
internal.h
|
Linux-2.6.12-rc2
|
20 years ago |
khazad.c
|
Linux-2.6.12-rc2
|
20 years ago |
md4.c
|
Linux-2.6.12-rc2
|
20 years ago |
md5.c
|
Linux-2.6.12-rc2
|
20 years ago |
michael_mic.c
|
Linux-2.6.12-rc2
|
20 years ago |
proc.c
|
Linux-2.6.12-rc2
|
20 years ago |
scatterwalk.c
|
Linux-2.6.12-rc2
|
20 years ago |
scatterwalk.h
|
Linux-2.6.12-rc2
|
20 years ago |
serpent.c
|
Linux-2.6.12-rc2
|
20 years ago |
sha1.c
|
Linux-2.6.12-rc2
|
20 years ago |
sha256.c
|
Linux-2.6.12-rc2
|
20 years ago |
sha512.c
|
Linux-2.6.12-rc2
|
20 years ago |
tcrypt.c
|
Linux-2.6.12-rc2
|
20 years ago |
tcrypt.h
|
Linux-2.6.12-rc2
|
20 years ago |
tea.c
|
Linux-2.6.12-rc2
|
20 years ago |
tgr192.c
|
Linux-2.6.12-rc2
|
20 years ago |
twofish.c
|
Linux-2.6.12-rc2
|
20 years ago |
wp512.c
|
Linux-2.6.12-rc2
|
20 years ago |