]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: api - Do not clear type bits in crypto_larval_lookup
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 22 Nov 2016 12:08:21 +0000 (20:08 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 28 Nov 2016 13:23:18 +0000 (21:23 +0800)
commit4cba87dedad0240b05ee1cf144a2e94d24d3a5f1
tree3c83f6dbef0297e85cb64fb1139cec7179ce5668
parent8a006845e89405bd4d4d417bdc2a1c1ac6f10e6b
crypto: api - Do not clear type bits in crypto_larval_lookup

Currently all bits not set in mask are cleared in crypto_larval_lookup.
This is unnecessary as wherever the type bits are used it is always
masked anyway.

This patch removes the clearing so that we may use bits set in the
type but not in the mask for special purposes, e.g., picking up
internal algorithms.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/api.c