Skip to content
Snippets Groups Projects
  1. Feb 16, 2010
  2. Oct 10, 2007
  3. Aug 06, 2007
  4. Jul 11, 2007
  5. Feb 06, 2007
  6. Sep 20, 2006
    • 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>
      7226bc87
    • 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
      type.
      
      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>
      5c64097a
    • 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>
      f28776a3
    • 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>
      8f21cf0d
    • 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
      mechanism.
      
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      df89820e
    • 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>
      560c06ae
  7. Jun 26, 2006
    • 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
      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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      6c2bb98b
  8. Jan 09, 2006
  9. Sep 06, 2005
  10. Sep 01, 2005
    • 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>
      64baf3cf
  11. Jul 15, 2005
  12. Jul 06, 2005
  13. Apr 16, 2005
    • 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!
Loading