Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 551a09a7 authored by Herbert Xu's avatar Herbert Xu
Browse files

[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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 5e553110
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment