commit | 551a09a7a954f720067f207657bbbd26a3fe156a | [log] [tgz] |
---|---|---|
author | Herbert Xu <herbert@gondor.apana.org.au> | Sat Dec 01 21:47:07 2007 +1100 |
committer | Herbert Xu <herbert@gondor.apana.org.au> | Fri Jan 11 08:16:39 2008 +1100 |
tree | 083daf83f8f7e67e7541f53bd888a2238ffe8b88 | |
parent | 5e553110f27ff77591ec7305c6216ad6949f7a95 [diff] |
[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>