1. 06 8月, 2007 1 次提交
  2. 11 7月, 2007 1 次提交
  3. 02 5月, 2007 2 次提交
    • H
      [CRYPTO] api: Add async block cipher interface · 32e3983f
      Herbert Xu 提交于
      This patch adds the frontend interface for asynchronous block ciphers.
      In addition to the usual block cipher parameters, there is a callback
      function pointer and a data pointer.  The callback will be invoked only
      if the encrypt/decrypt handlers return -EINPROGRESS.  In other words,
      if the return value of zero the completion handler (or the equivalent
      code) needs to be invoked by the caller.
      
      The request structure is allocated and freed by the caller.  Its size
      is determined by calling crypto_ablkcipher_reqsize().  The helpers
      ablkcipher_request_alloc/ablkcipher_request_free can be used to manage
      the memory for a request.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      32e3983f
    • H
      [CRYPTO] api: Proc functions should be marked as unused · 03f5d8ce
      Herbert Xu 提交于
      The proc functions were incorrectly marked as used rather than unused.
      They may be unused if proc is disabled.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      03f5d8ce
  4. 07 2月, 2007 2 次提交
  5. 14 12月, 2006 1 次提交
  6. 21 9月, 2006 1 次提交
    • H
      [CRYPTO] cipher: Added block cipher type · 5cde0af2
      Herbert Xu 提交于
      This patch adds the new type of block ciphers.  Unlike current cipher
      algorithms which operate on a single block at a time, block ciphers
      operate on an arbitrarily long linear area of data.  As it is block-based,
      it will skip any data remaining at the end which cannot form a block.
      
      The block cipher has one major difference when compared to the existing
      block cipher implementation.  The sg walking is now performed by the
      algorithm rather than the cipher mid-layer.  This is needed for drivers
      that directly support sg lists.  It also improves performance for all
      algorithms as it reduces the total number of indirect calls by one.
      
      In future the existing cipher algorithm will be converted to only have
      a single-block interface.  This will be done after all existing users
      have switched over to the new block cipher type.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      5cde0af2