summaryrefslogtreecommitdiff
path: root/crypto/async_tx
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2008-07-07 20:23:56 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2008-07-10 20:35:17 +0800
commita8f41298907a53f66b8169977d520bcd2d7d26e1 (patch)
tree58448fde199de56eddce0e294d2daddf20490f5b /crypto/async_tx
parentf09d5a6a216ee08d8c3f10a1e1e13f5cda9793a8 (diff)
downloadlinux-crypto-a8f41298907a53f66b8169977d520bcd2d7d26e1.tar.gz
linux-crypto-a8f41298907a53f66b8169977d520bcd2d7d26e1.zip
crypto: hash - Fixed digest size check
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: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/async_tx')
0 files changed, 0 insertions, 0 deletions