Skip to content
Snippets Groups Projects
  1. Jul 10, 2008
    • Herbert Xu's avatar
      crypto: hash - Fixed digest size check · ca786dc7
      Herbert Xu authored
      
      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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      ca786dc7
  2. May 07, 2008
    • Herbert Xu's avatar
      [CRYPTO] hmac: Avoid calling virt_to_page on key · 67412f0e
      Herbert Xu authored
      
      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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      67412f0e
  3. Feb 07, 2008
  4. Jan 10, 2008
  5. Oct 26, 2007
  6. Oct 24, 2007
  7. Oct 22, 2007
  8. May 02, 2007
    • Herbert Xu's avatar
      [CRYPTO] templates: Pass type/mask when creating instances · ebc610e5
      Herbert Xu authored
      
      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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      ebc610e5
  9. Feb 06, 2007
  10. Sep 23, 2006
  11. Sep 21, 2006
  12. Oct 30, 2005
  13. Jul 06, 2005
  14. 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!
      v2.6.12-rc2
      1da177e4
Loading