1. 21 9月, 2006 1 次提交
    • H
      [CRYPTO] api: Get rid of flags argument to setkey · 560c06ae
      Herbert Xu 提交于
      Now that the tfm is passed directly to setkey instead of the ctx, we no
      longer need to pass the &tfm->crt_flags pointer.
      
      This patch also gets rid of a few unnecessary checks on the key length
      for ciphers as the cipher layer guarantees that the key length is within
      the bounds specified by the algorithm.
      
      Rather than testing dia_setkey every time, this patch does it only once
      during crypto_alloc_tfm.  The redundant check from crypto_digest_setkey
      is also removed.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      560c06ae
  2. 26 6月, 2006 1 次提交
    • H
      [CRYPTO] all: Pass tfm instead of ctx to algorithms · 6c2bb98b
      Herbert Xu 提交于
      Up until now algorithms have been happy to get a context pointer since
      they know everything that's in the tfm already (e.g., alignment, block
      size).
      
      However, once we have parameterised algorithms, such information will
      be specific to each tfm.  So the algorithm API needs to be changed to
      pass the tfm structure instead of the context pointer.
      
      This patch is basically a text substitution.  The only tricky bit is
      the assembly routines that need to get the context pointer offset
      through asm-offsets.h.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      6c2bb98b
  3. 17 5月, 2005 1 次提交
    • P
      [PATCH] crypto: fix null encryption/compression · d0856009
      Patrick McHardy 提交于
      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: NPatrick McHardy <kaber@trash.net>
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: NAndrew Morton <akpm@osdl.org>
      Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
      d0856009
  4. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4