1. 16 Feb, 2010 1 commit
  2. 10 Oct, 2007 1 commit
  3. 06 Aug, 2007 1 commit
  4. 11 Jul, 2007 1 commit
  5. 06 Feb, 2007 1 commit
  6. 21 Sep, 2006 6 commits
    • Herbert Xu's avatar
      [CRYPTO] api: Mark parts of cipher interface as deprecated · 7226bc87
      Herbert Xu authored
      Mark the parts of the cipher interface that have been replaced by
      block ciphers as deprecated.  Thanks to Andrew Morton for suggesting
      doing this before removing them completely.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    • Herbert Xu's avatar
      [CRYPTO] scatterwalk: Prepare for block ciphers · 5c64097a
      Herbert Xu authored
      This patch prepares the scatterwalk code for use by the new block cipher
      Firstly it halves the size of scatter_walk on 32-bit platforms.  This
      is important as we allocate at least two of these objects on the stack
      for each block cipher operation.
      It also exports the symbols since the block cipher code can be built as
      a module.
      Finally there is a hack in scatterwalk_unmap that relies on progress
      being made.  Unfortunately, for hardware crypto we can't guarantee
      progress to be made since the hardware can fail.
      So this also gets rid of the hack by not advancing the address returned
      by scatterwalk_map.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    • Herbert Xu's avatar
      [CRYPTO] cipher: Added encrypt_one/decrypt_one · f28776a3
      Herbert Xu authored
      This patch adds two new operations for the simple cipher that encrypts or
      decrypts a single block at a time.  This will be the main interface after
      the existing block operations have moved over to the new block ciphers.
      It also adds the crypto_cipher type which is currently only used on the
      new operations but will be extended to setkey as well once existing users
      have been converted to use block ciphers where applicable.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    • Herbert Xu's avatar
      [CRYPTO] api: Feed flag directly to crypto_yield · 8f21cf0d
      Herbert Xu authored
      The sleeping flag used to determine whether crypto_yield can actually
      yield is really a per-operation flag rather than a per-tfm flag.  This
      patch changes crypto_yield to take a flag directly so that we can start
      using a per-operation flag instead the tfm flag.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    • Herbert Xu's avatar
      [CRYPTO] cipher: Removed special IV checks for ECB · df89820e
      Herbert Xu authored
      This patch makes IV operations on ECB fail through nocrypt_iv rather than
      calling BUG().  This is needed to generalise CBC/ECB using the template
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
    • Herbert Xu's avatar
      [CRYPTO] api: Get rid of flags argument to setkey · 560c06ae
      Herbert Xu authored
      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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
  7. 26 Jun, 2006 1 commit
    • Herbert Xu's avatar
      [CRYPTO] all: Pass tfm instead of ctx to algorithms · 6c2bb98b
      Herbert Xu authored
      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
      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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
  8. 09 Jan, 2006 1 commit
  9. 06 Sep, 2005 1 commit
  10. 02 Sep, 2005 1 commit
    • Herbert Xu's avatar
      [CRYPTO]: Added CRYPTO_TFM_REQ_MAY_SLEEP flag · 64baf3cf
      Herbert Xu authored
      The crypto layer currently uses in_atomic() to determine whether it is
      allowed to sleep.  This is incorrect since spin locks don't always cause
      in_atomic() to return true.
      Instead of that, this patch returns to an earlier idea of a per-tfm flag
      which determines whether sleeping is allowed.  Unlike the earlier version,
      the default is to not allow sleeping.  This ensures that no existing code
      can break.
      As usual, this flag may either be set through crypto_alloc_tfm(), or
      just before a specific crypto operation.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
  11. 15 Jul, 2005 1 commit
  12. 06 Jul, 2005 6 commits
  13. 16 Apr, 2005 1 commit
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      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!