1. 10 7月, 2008 1 次提交
    • H
      crypto: hash - Fixed digest size check · ca786dc7
      Herbert Xu 提交于
      The digest size check on hash algorithms is incorrect.  It's
      perfectly valid for hash algorithms to have a digest length
      longer than their block size.  For example crc32c has a block
      size of 1 and a digest size of 4.  Rather than having it lie
      about its block size, this patch fixes the checks to do what
      they really should which is to bound the digest size so that
      code placing the digest on the stack continue to work.
      
      HMAC however still needs to check this as it's only defined
      for such algorithms.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      ca786dc7
  2. 07 5月, 2008 1 次提交
    • H
      [CRYPTO] hmac: Avoid calling virt_to_page on key · 67412f0e
      Herbert Xu 提交于
      When HMAC gets a key longer than the block size of the hash, it needs
      to feed it as input to the hash to reduce it to a fixed length.  As
      it is HMAC converts the key to a scatter and gather list.  However,
      this doesn't work on certain platforms if the key is not allocated
      via kmalloc.  For example, the keys from tcrypt are stored in the
      rodata section and this causes it to fail with HMAC on x86-64.
      
      This patch fixes this by copying the key to memory obtained via
      kmalloc before hashing it.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      67412f0e
  3. 08 2月, 2008 1 次提交
  4. 11 1月, 2008 2 次提交
  5. 26 10月, 2007 2 次提交
  6. 24 10月, 2007 1 次提交
  7. 23 10月, 2007 1 次提交
  8. 02 5月, 2007 1 次提交
    • H
      [CRYPTO] templates: Pass type/mask when creating instances · ebc610e5
      Herbert Xu 提交于
      This patch passes the type/mask along when constructing instances of
      templates.  This is in preparation for templates that may support
      multiple types of instances depending on what is requested.  For example,
      the planned software async crypto driver will use this construct.
      
      For the moment this allows us to check whether the instance constructed
      is of the correct type and avoid returning success if the type does not
      match.
      Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
      ebc610e5
  9. 07 2月, 2007 1 次提交
  10. 24 9月, 2006 2 次提交
  11. 21 9月, 2006 3 次提交
  12. 30 10月, 2005 1 次提交
  13. 07 7月, 2005 1 次提交
  14. 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