1. 13 Sep, 2024 3 commits
  2. 06 Sep, 2024 15 commits
  3. 03 Sep, 2024 1 commit
  4. 30 Aug, 2024 17 commits
  5. 24 Aug, 2024 4 commits
    • Herbert Xu's avatar
      crypto: simd - Do not call crypto_alloc_tfm during registration · 3c44d31c
      Herbert Xu authored
      Algorithm registration is usually carried out during module init,
      where as little work as possible should be carried out.  The SIMD
      code violated this rule by allocating a tfm, this then triggers a
      full test of the algorithm which may dead-lock in certain cases.
      
      SIMD is only allocating the tfm to get at the alg object, which is
      in fact already available as it is what we are registering.  Use
      that directly and remove the crypto_alloc_tfm call.
      
      Also remove some obsolete and unused SIMD API.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      3c44d31c
    • Herbert Xu's avatar
      crypto: api - Do not wait for tests during registration · 37da5d0f
      Herbert Xu authored
      As registration is usually carried out during module init, this
      is a context where as little work as possible should be carried
      out.  Testing may trigger module loads of underlying components,
      which could even lead back to the module that is registering at
      the moment.  This may lead to dead-locks outside of the Crypto API.
      
      Avoid this by not waiting for the tests to complete.  They will
      be scheduled but completion will be asynchronous.  Any users will
      still wait for completion.
      Reported-by: default avatarRussell King <linux@armlinux.org.uk>
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      37da5d0f
    • Herbert Xu's avatar
      crypto: api - Remove instance larval fulfilment · 96ad5955
      Herbert Xu authored
      In order to allow testing to complete asynchronously after the
      registration process, instance larvals need to complete prior
      to having a test result.  Support this by redoing the lookup for
      instance larvals after completion.   This should locate the pending
      test larval and then repeat the wait on that (if it is still pending).
      
      As the lookup is now repeated there is no longer any need to compute
      the fulfilment status and all that code can be removed.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      96ad5955
    • Herbert Xu's avatar
      crypto: octeontx2 - Fix authenc setkey · 7ccb750d
      Herbert Xu authored
      Use the generic crypto_authenc_extractkeys helper instead of custom
      parsing code that is slightly broken.  Also fix a number of memory
      leaks by moving memory allocation from setkey to init_tfm (setkey
      can be called multiple times over the life of a tfm).
      
      Finally accept all hash key lengths by running the digest over
      extra-long keys.
      Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
      7ccb750d