]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[CRYPTO] api: Sanitise mask when allocating ablkcipher/hash
authorHerbert Xu <herbert@gondor.apana.org.au>
Sat, 1 Dec 2007 10:47:07 +0000 (21:47 +1100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jan 2008 21:16:39 +0000 (08:16 +1100)
commit551a09a7a954f720067f207657bbbd26a3fe156a
tree083daf83f8f7e67e7541f53bd888a2238ffe8b88
parent5e553110f27ff77591ec7305c6216ad6949f7a95
[CRYPTO] api: Sanitise mask when allocating ablkcipher/hash

When allocating ablkcipher/hash objects, we use a mask that's wider than
the usual type mask.  This patch sanitises the mask supplied by the user
so we don't end up using a narrower mask which may lead to unintended
results.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/linux/crypto.h