Skip to content

crypto: api - priorize tested algorithms in lookup

Nicolai Stange linux-crypto lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8crypto: af_alg - reject requests for untested algorithmscrypto/af_alg.c+9 -00 replies
2/8crypto: user - reject requests for untested algorithmscrypto/crypto_user_base.c+3 -00 replies
3/8crypto: api - only support lookups for specific CRYPTO_ALG_TESTED statuscrypto/api.c+3 -10 replies
4/8crypto: api - don't add larvals for !(type & CRYPTO_ALG_TESTED) lookupscrypto/api.c+16 -20 replies
5/8crypto: api - always set CRYPTO_ALG_TESTED in lookup larvals' ->mask/typecrypto/api.c+7 -70 replies
6/8crypto: api - make crypto_alg_lookup() consistently check for failed algoscrypto/api.c+11 -50 replies
7/8crypto: api - lift common mask + type adjustment to crypto_larval_lookup()crypto/api.c+6 -120 replies
8/8crypto: api - make the algorithm lookup priorize non-larvalscrypto/api.c+20 -15 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] crypto: api - priorize tested algorithms in lookup

Hi all,

my initial goal had been to make the algorithm lookup prefer usable instances over ones where the tests are still pending. In my first attempt I realized that the code in crypto_alg_lookup() became quite convoluted and that it could get streamlined somewhat by consolidating CRYPTO_ALG_TESTED handling for lookup larvals a bit.

This cleanup can be found in [1/8] - [7/8] and might perhaps be worth considering on its own, independent of whether or not you deem the final [8/8], the patch implementing my original goal of priorizing algorithms in working state, suitable for upstream inclusion.

This series is based on current herbert/cryptodev-2.6 master.

All patches have been tested with tcrypt.ko as well as the kernel/crypto testcases from LTP.

Thanks!

Nicolai

Nicolai Stange (8):
crypto: af_alg - reject requests for untested algorithms
crypto: user - reject requests for untested algorithms
crypto: api - only support lookups for specific CRYPTO_ALG_TESTED
status
crypto: api - don't add larvals for !(type & CRYPTO_ALG_TESTED)
lookups
crypto: api - always set CRYPTO_ALG_TESTED in lookup larvals'

    ->mask/type

crypto: api - make crypto_alg_lookup() consistently check for failed
algos
crypto: api - lift common mask + type adjustment to
crypto_larval_lookup()
crypto: api - make the algorithm lookup priorize non-larvals

 crypto/af_alg.c           |  9 +++++++
 crypto/api.c              | 53 ++++++++++++++++++++++++++++++++-------
 crypto/crypto_user_base.c |  3 +++
 3 files changed, 56 insertions(+), 9 deletions(-)
Signature · 1 line
2.26.2