]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: caam/qi2 - create ahash shared descriptors only once
authorHoria Geantă <horia.geanta@nxp.com>
Wed, 22 Jul 2020 12:14:54 +0000 (15:14 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 31 Jul 2020 08:25:27 +0000 (18:25 +1000)
commit58ca85027d5f23d53ed8734d63d18c422ec5bc89
tree8476b44afa431d81c88a78e2c114287daee7a690
parentb537c8e09d6e4a2e06c979535413c5a82b803359
crypto: caam/qi2 - create ahash shared descriptors only once

For keyed hash algorithms, shared descriptors are currently generated
twice:
-at tfm initialization time, in cra_init() callback
-in setkey() callback

Since it's mandatory to call setkey() for keyed algorithms, drop the
generation in cra_init().

This is similar to the change in caamhash (caam/jr top-level library)
commit 384bd4ffa7cd ("crypto: caam - create ahash shared descriptors only once")

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg_qi2.c