[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)
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>

No differences found